Hi All,

I am new at hadoop.
I started working from following link :


There is an example, I am applying following commands :
  $ mkdir input
  $ cp etc/hadoop/*.xml input
  $ bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.0.jar grep input output 'dfs[a-z.]+'
  $ cat output/*
At 3rd command I got following error :

bin/hadoop: line 171: exec: /usr/bin/java/bin/java: cannot execute: Not a directory

I am using Ubuntu.
JAVA_HOME is set to /usr/bin/java
I also edited etc/hadoop/hadoop-env.sh edited for JAVA_HOME

Why it checks path /usr/bin/java/bin/java although I set JAVA_HOME to /usr/bin/java?

Kadir Beyazlı
GSM : +90 535 821 50 00