在独立模式下运行代码时,
laxmikant@laxmikant-Inspiron-1464:~/Work/hadoop-0.21.0$ bin/hadoop jar hadoop-mapred examples-0.21.0.jar grep input output '[a-z.]+'
bash: /home/laxmikant/java/jdk1.7.0_04/bin/java: Permission denied
bash: /home/laxmikant/java/jdk1.7.0_04/bin/java: Permission denied`
如何消除这些错误?我已经正确设置了javau home&path。我试图在网上搜索,但找不到。您能否发送分配权限所需的命令和具体步骤?
1条答案
按热度按时间nqwrtyyt1#
去
/home/laxmikant/java/jdk1.7.0_04/bin/
文件夹并执行命令:看看java是否有执行权限。如果不是,请运行以下命令: