Hello all! I try to install hadoop but I have a problem when trying to format data folder with command "hdfs namenode -format". Error: Could not find or load main class Username

+1 vote
I've tried to change the last line from hadoop-env.cmd and writing something else instead "%Username%" but still the same error. Any help, please?
May 21, 2019 in Big Data Hadoop by anonymous
577 views

1 answer to this question.

+2 votes

Hey!

The error seems like the problem is in setting a class-path, I would suggest you add the below following in your ~./bashrc

export HADOOP_CLASSPATH=$(hadoop classpath):$HADOOP_CLASSPATH

This should work

answered May 22, 2019 by Gitika
• 33,770 points

Related Questions In Big Data Hadoop

0 votes
1 answer
+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,020 points
1,053 views
0 votes
1 answer

Hadoop MacOS: formatting namenode: Could not find or load main class

You need to point the HADOOP_PREFIX to ...READ MORE

answered Nov 13, 2018 in Big Data Hadoop by Omkar
• 69,020 points
284 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,920 points
5,505 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,920 points
810 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
34,104 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,310 points
2,072 views
+2 votes
1 answer

windows 10 C:\Users\mk>hadoop -version output:- Error: Could not find or load main class P.

Hey, I guess the error you are facing ...READ MORE

answered May 10, 2019 in Big Data Hadoop by Gitika
• 33,770 points
705 views