java.io.IOException: error=2, No such file or directory eroor in Hadoop streaming

ぃ、小莉子 提交于 2019-12-13 04:43:45

问题


Please help with the "-file" option issue of hadoop streaming (mentioned in the link below). just to update, I know that the jar is already there, I am trying this after I tried hadoop-streaming for a different class file which failed, so to identify if there is something wrong with the class file itself or with the way I am using it. if you need the stderr file please let me know.

Problem with Hadoop Streaming -file option for Java class files.


回答1:


you can't really use -file to send over jars as hadoop doesn't support multiple jars (that were not already in the CLASSPATH), check the 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.




回答2:


To add more than one jar file to the CLASSPATH.. you could use the -libjars options as specified in the hadoop tutorial (search for the word "libjar" on the page).



来源:https://stackoverflow.com/questions/6791467/java-io-ioexception-error-2-no-such-file-or-directory-eroor-in-hadoop-streamin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!