Setup of hadoop on centos

hadoop

#1

I have setup Hadoop on centos (Virtual Box). hadoop is working. When I am trying to type the command. It throws the following error.

hadoop fs -ls /
Error: Could not find or load main class ”-Djava.library.path=.home.nvemula.hadoop.lib”


#2

@dgadiraju
Kindly help me


#3

@nikhil23

Yes, it looks like you are getting java error. You need to configure JAVA_HOME properly. JAVA_HOME on .bashrc and hadoop-env.sh should be same.

Solution:
Set the following variables alone in bashrc. Remove all other variables that you have set and then try

export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export HADOOP_HOME=/usr/local/hadoop
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HADOOP_HOME/sbin

Let me know if still you have any problem.


#4

We will not be supporting these plain vanilla installation related issues. You can follow our playlist on YouTube to setup Hadoop on Centos.


#5

@dgadiraju
thank you sir


#6