在独立模式下运行代码时,
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`
如何消除这些错误?我设置了java_home &正确的路径。我试着在网上搜索,但是找不到。你能发送分配权限所需的命令吗?具体步骤?
进入/home/laxmikant/java/jdk1.7.0_04/bin/
文件夹,执行命令:
$ ls -lh | grep java
查看Java是否有执行权限。如果没有,运行命令:
$ chmod +x java