HI i was trying to install hadoop but i get these error....Format HDFS Namenode Error: Could not find or load main class ”-Djava.library.path=.home.hadoop.hadoop-3.2.1.lib"

0 votes
I have tried the answers I found on these sites but so far nothing seems to work. The same error keeps appearing.
Oct 7 in Big Data Hadoop by bezz
• 120 points

edited Oct 7 by MD 103 views

1 answer to this question.

0 votes

Hi@bezz,

Hadoop builds on top of Java. So first check in your system Java is present or not. After Java installation, you need to set JAVA_HOME & PATH. Try to set these variables in .bashrc file. You can use the below-given command to find your JAVA_HOME & PATH.

$ which java

Also, change the value of HADOOP_OPTS as given below.

export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/"

In your hadoop-env.sh file export the value of HADOOP_CONF_DIR. Hadoop internally searches these variables and if it finds different values, it may give an error.

answered Oct 7 by MD
• 79,930 points
Hi, I have done all that but i still get the same error.
Hey, @Bezz,

Have you tried the solution which is mentioned by @MD?

Related Questions In Big Data Hadoop

+1 vote
1 answer
0 votes
1 answer

Hadoop Mapreduce: Error: Could not find or load main class com.sun.tools.javac.Main

You have to add HADOOP_CLASSPATH environment parameter: expor ...READ MORE

answered Oct 30, 2018 in Big Data Hadoop by Omkar
• 69,030 points
1,360 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
6,351 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
983 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
41,879 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
2,376 views
0 votes
1 answer
0 votes
2 answers