Example usage for org.apache.hadoop.fs.shell CommandFactory CommandFactory

List of usage examples for org.apache.hadoop.fs.shell CommandFactory CommandFactory

Introduction

In this page you can find the example usage for org.apache.hadoop.fs.shell CommandFactory CommandFactory.

Prototype

public CommandFactory(Configuration conf) 

Source Link

Document

Factory constructor for commands

Usage

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);
    }
}