hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kadir Beyazlı <kadirbeya...@gmail.com>
Subject [hadoop-users] Problem At The Begining Of Study
Date Wed, 03 Jun 2015 19:02:56 GMT
Hi All,

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

*http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html
<http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html>*

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*

Mime
View raw message