【发布时间】:2021-03-21 23:56:11
【问题描述】:
我正在尝试在 Cloudera VM 上运行我的第一个字数统计。我得到了
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at new_pack.word.main(word.java:52)
这个错误在线:
FileInputFormat.setInputPaths(conf, new Path(args[0]));
在驱动程序类中。
我已经复制了这个 Cloudera tutorial 中提到的代码。
【问题讨论】:
-
你有没有传递任何命令行参数?