Usage java FsShell -put localsrc dst

0 votes

Hi Guys,

I am trying to upload one file in Hadoop Cluster. But I am getting the below error.

$ hadoop fs -put demo.txt
Usage: java FsShell [-put <localsrc> ... <dst>]

Sep 25, 2020 in Big Data Hadoop by akhtar
• 38,210 points
144 views

1 answer to this question.

0 votes

Hi@akhtar,

You are trying to upload your file to Hadoop Cluster. But you are using the wrong syntax. You didn't specify the destination of Hadoop Cluster. You can see the below syntax.

$ hadoop fs -put local_path destination_path
$ hadoop fs -put demo.txt /
answered Sep 25, 2020 by MD
• 95,300 points

Related Questions In Big Data Hadoop

+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
62,763 views
0 votes
1 answer

Access DFS through Java API

It is because, may be you are ...READ MORE

answered Mar 23, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
959 views
0 votes
1 answer

Is java necessary for Hadoop?

It is not a prerequisite. But you ...READ MORE

answered Apr 11, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
124 views
0 votes
1 answer

Is there any way to increase Java Heap size in Hadoop?

You can add some more memory by ...READ MORE

answered Apr 12, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
3,282 views
0 votes
1 answer

What is the command to find the free space in HDFS?

You can use dfsadmin which runs a ...READ MORE

answered Apr 29, 2018 in Big Data Hadoop by Shubham
• 13,480 points
973 views
0 votes
1 answer

How to find the used cache in HDFS

hdfs dfsadmin -report This command tells fs ...READ MORE

answered May 4, 2018 in Big Data Hadoop by Shubham
• 13,480 points
1,093 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
• 11,380 points
7,905 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
• 11,380 points
1,331 views
0 votes
3 answers
0 votes
1 answer