Yixiao created AMBARI-6617:
------------------------------

             Summary: Hadoop Config shell script sets wrong environment if had 
previous hadoop path
                 Key: AMBARI-6617
                 URL: https://issues.apache.org/jira/browse/AMBARI-6617
             Project: Ambari
          Issue Type: Bug
          Components: client, controller
    Affects Versions: 1.6.0
         Environment: RHEL6
            Reporter: Yixiao


I have previously installed Hadoop and had HADOOP_PREFIX, HADOOP_CONF_DIR in my 
environment.
The hadoop-layout.sh and hadoop-config.sh was unable to set the hadoop 
environment correctly. It will give error "class not found" error when trying 
to start the HDFS service. 

To reproduce this error: ("/tmp" is some path other than the Hadoop path)
$ export HADOOP_PREFIX=/tmp
$ export HADOOP_CONF_DIR=/tmp
$ source /usr/lib/hadoop/libexec/hadoop-config.sh
$ hadoop version
It will fail with class not found error. 

Fix: unset any HADOOP related variable at the beginning of "hadoop-config.sh"




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to