ToolRunner
ToolRunner可用于运行实现Tool接口的类。 它与GenericOptionsParser(通用选项解析器)一起工作以解析通用hadoop命令行参数并修改Tool的配置。 应用程序特定的选项将会不经修改就传递。
包含的方法
类型 | 方法 | 描述 |
---|---|---|
static boolean | confirmPrompt(String prompt) | 向用户打印提示,如果用户使用“y”或“yes”响应,则返回true |
static void | printGenericCommandUsage(PrintStream out) | 打印通用命令行参数和使用信息 |
static int | run(Configuration conf, Tool tool, String[] args) | 在使用给定的泛型参数解析之后,通过Tool.run(String [])运行给定的工具 |
static int | run(Tool tool, String[] args) | 运行工具及其配置 |
从类java.lang.Object继承的方法:
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait、