hadoop - /usr/local/java/jdk1.8.0_40/jre/bin/bin/java: No such file or directory -
i enter command , gives error
`bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0.jar grep input output 'dfs[a-z.]+'
bin/hadoop: line 144: /usr/local/java/jdk1.8.0_40/jre/bin/bin/java: no such file or directory`
please help.
looks you're trying set hadoop. should find java installed in machine, go to
/etc/<hadoop>/<conf>/hadoop-env.sh
and change java_home
java installed.
in order know java installed, try echo $java_home
(if it's set it'll show path), if not, try search it:
sudo find /usr/ -name *jdk
now i've noticed have double /bin
in path, change java_home
, remove redundant /bin
.
Comments
Post a Comment