linux(centos)提交hadoop任务为啥用删除的jdk中的java执行,不用新装的java执行
提交hadoop任务:/home/gzw/soft/hadoop-1.0.1/hadoop-examples-1.0.1.jarpi41000错误信息:/home/gzw...
提交hadoop任务:/home/gzw/soft/hadoop-1.0.1/hadoop-examples-1.0.1.jar pi 4 1000
错误信息:/home/gzw/soft/hadoop-1.0.1/bin/hadoop: line 321: /home/gzw/soft/jdk1.6.0_33/bin/java: No such file or directory
/home/gzw/soft/hadoop-1.0.1/bin/hadoop: line 387: /home/gzw/soft/jdk1.6.0_33/bin/java: No such file or directory
/home/gzw/soft/hadoop-1.0.1/bin/hadoop: line 387: exec: /home/gzw/soft/jdk1.6.0_33/bin/java: cannot execute: No such file or directory
但是jdk1.6.0_33这个版本我已经删了安装文件了,新装的jdk1.6.0_45
环境变量都配了,为什么hadoop还在用jdk1.6.0_33执行呢
有可能是软链接的问题吗,以前执行ln -s -f /home/gzw/soft/jdk1.6.0_33/jre/bin/java ln -s -f /home/gzw/soft/jdk1.6.0_33/bin/javac
添加软链接的。
菜鸟求解,先谢谢各位大神。QQ1031294046
hadoop提交任务还是这个错误,大神帮忙看看 展开
错误信息:/home/gzw/soft/hadoop-1.0.1/bin/hadoop: line 321: /home/gzw/soft/jdk1.6.0_33/bin/java: No such file or directory
/home/gzw/soft/hadoop-1.0.1/bin/hadoop: line 387: /home/gzw/soft/jdk1.6.0_33/bin/java: No such file or directory
/home/gzw/soft/hadoop-1.0.1/bin/hadoop: line 387: exec: /home/gzw/soft/jdk1.6.0_33/bin/java: cannot execute: No such file or directory
但是jdk1.6.0_33这个版本我已经删了安装文件了,新装的jdk1.6.0_45
环境变量都配了,为什么hadoop还在用jdk1.6.0_33执行呢
有可能是软链接的问题吗,以前执行ln -s -f /home/gzw/soft/jdk1.6.0_33/jre/bin/java ln -s -f /home/gzw/soft/jdk1.6.0_33/bin/javac
添加软链接的。
菜鸟求解,先谢谢各位大神。QQ1031294046
hadoop提交任务还是这个错误,大神帮忙看看 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询