我曾经使用(这使用 GenericOptionsParser)运行 hadoop mapreduce
hadoop jar app.jar app -files /home/some/file#file
但是在最新版本的hadoop中,我得到了
Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.
那么如何-files
使用 ToolRunner 实现在所有 mapreduce 节点之间共享的选项呢?