How to find full path of files in HDFS?

I moved a Mapreduce jar to HDFS, but i couldn’t find full path of jar to run Mapreduce Program?

How are you checking the path on command line ?
The method to check the path could be using the SSh to get into the system
then
using the command line
hdfs dfs -ls /user/username
to look at the file system.
Tell me if more information is required.

1 Like

I moved my java jar file and input text file. when i am running mapreduce job with following cmd,

hadoop jar mapreduce_programs-0.0.1-SNAPSHOT.jar
mapreduce_programs.WordCountJob
/user/kumarabhigya3333/input_wordcount.txt
mapreduce/output

It is showing a following error.
InvalidInputException: Input path does not exist: hdfs://ip-172-31-53-48.ec2.interna
l:8020/user/kumarabhigya3333/input_wordcount.txt

please give me the solution?

InvalidInputException: Input path does not exist: hdfs://ip-172-31-53-48.ec2.interna
l:8020/user/kumarabhigya3333/input_wordcount.txt
This line says that the file input_wordcount.txt does not exists on the HDFS.
What is the output of the following command ?
hdfs dfs -ls /user/kumarabhigya3333/input_wordcount.txt
I must be showing file not found or something.

1 Like

@Abhishek_Kumar Got the answer ?