List of usage examples for org.apache.hadoop.fs.shell CommandFactory CommandFactory
public CommandFactory(Configuration conf)
From source file:com.ruizhan.hadoop.hdfs.FsShell.java
License:Apache License
protected void init() throws IOException { getConf().setQuietMode(true);//from w w w . ja v a2s . c om if (commandFactory == null) { commandFactory = new CommandFactory(getConf()); commandFactory.addObject(new Help(), "-help"); commandFactory.addObject(new Usage(), "-usage"); registerCommands(commandFactory); } }