Hadoop error: Input path does not exist

0 votes
I am trying to specify In folder but i get this error:

18/11/28 22:05:27 ERROR security.UserGroupInformation: PriviledgedActionException as:USER cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: hdfs://localhost:9100/user/USER/In

How to solve this?
Nov 29, 2018 in Big Data Hadoop by slayer
• 29,040 points
507 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

I think you forgot to upload the input files to hdfs. Try this:

bin/hadoop fs -mkdir In
answered Nov 29, 2018 by Omkar
• 66,880 points
0 votes
I was able to fix the issue. There was nothing wrong with my code.

I had two terminals open. In one terminal I moved the input file to HDFS.
[edureka@localhost Desktop]$ hdfs dfs -put sample1.txt ponezhil/sample.txt

In another terminal I executed the MapReduce program with this command.
[edureka@localhost ~]$ hadoop jar /home/edureka/Desktop/WordcountMR.jar hdfs:ponezhil/sample.txt hdfs:out

I got error. I referred this command from LMS in a video "How to run MapReduce Program in Edureka VM"

Then I used this command.
[edureka@localhost ~]$ hadoop jar /home/edureka/Desktop/WordcountMR.jar com.edureka.WordCountDriver ponezhil/sample.txt out

We were thought in class to fire the command in this format.
hadoop jar jarFileName className I/Ppath O/Ppath.
But this also ended up in error. After a lot of trial and error, I happened to notice that every time after executing this command, my input file was diappearing from the HDFS.

And finally I used this command which worked, again copying my input file to the HDFS.
[edureka@localhost ~]$ hadoop jar /home/edureka/Desktop/WordcountMR.jar ponezhil/sample.txt out
answered Jan 12 by Ponezhil Ramu
Hey @Ponezhil Ramu!
What error did you get when you ran the command with input and output path?

Related Questions In Big Data Hadoop

0 votes
1 answer

Error: input path does not exist

Hey, This error looks like your job History ...READ MORE

answered Apr 30 in Big Data Hadoop by Gitika
• 13,870 points
31 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Getting error in Hadoop: Output file already exist

When you executed your code earlier, you ...READ MORE

answered Apr 19, 2018 in Big Data Hadoop by Shubham
• 12,790 points
981 views
0 votes
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
• 9,350 points
1,825 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
• 9,350 points
152 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
9,028 views
0 votes
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,260 points
647 views
0 votes
1 answer

Hadoop Java: org.apache.hadoop.conf.Configuration does not exist error

To solve this error, add hadoop-common to ...READ MORE

answered Nov 20, 2018 in Big Data Hadoop by Omkar
• 66,880 points
431 views
0 votes
1 answer

Hadoop Spark: __spark_lib.zip does not exist

To find this file, your HADOOP_CONF_DIR env ...READ MORE

answered Nov 15, 2018 in Big Data Hadoop by Omkar
• 66,880 points
152 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.