1

I added this path to .bashrc file .

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export HADOOP_INSTALL=/usr/local/hadoop
export $PATH=$PATH:$HADOOP_INSTALL/bin
export $PATH=$PATH:$HADOOP_INSTALL/sbin

but when I apply command source .bashrc or source ~/.bashrc Ubuntu show me this message:

enter image description here

I'm using Ubuntu 16.04 and want to install hadoop-2.7.2.

1
  • For future reference, the error "not a valid identifier" means that the shell can't accept the name you're calling something. For example, function $ { true; } output: bash: `$': not a valid identifier
    – wjandrea
    Jul 9 '16 at 0:52
2

As far I can see your lines are correct except two:

export $PATH=$PATH:$HADOOP_INSTALL/bin
export $PATH=$PATH:$HADOOP_INSTALL/sbin

should be:

export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
2
  • i already do that but still has the same problem ,,!
    – hersh
    Jul 8 '16 at 21:15
  • Then one or more of your paths you entered may contain an error. Re-check them. According to your question this is the valid answer.
    – Videonauth
    Jul 8 '16 at 21:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.