Setup of hadoop on centos



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”


Kindly help me



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

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

Let me know if still you have any problem.


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


thank you sir