请帮助解决 hadoop 流式处理的“-file”选项问题(在下面的链接中提到)。只是为了更新,我知道 jar 已经存在,我在尝试 hadoop-streaming 失败的不同类文件后尝试此操作,以便确定类文件本身或我的方式是否有问题使用它。如果您需要 stderr 文件,请告诉我。
Problem with Hadoop Streaming -file option for Java class files .
最佳答案
您不能真正使用 -file 来发送 jar,因为 hadoop 不支持多个 jar(它们不在 CLASSPATH 中),检查 streaming docs :
At least as late as version 0.14, Hadoop does not support multiple jar files. So, when specifying your own custom classes you will have to pack them along with the streaming jar and use the custom jar instead of the default hadoop streaming jar.
关于hadoop - java.io.IOException : error=2, Hadoop 流中没有这样的文件或目录错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6791467/