Hadoop DEPRECATED Use of this script to execute hdfs command is deprecated error

+1 vote

I am trying to copy a local file into hdfs. I am using the following commang:

hadoop dfs -copyFromLocal /home/user/sample /sample_folder

But I get this error:

DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

Nov 26, 2018 in Big Data Hadoop by slayer
• 29,370 points
9,023 views
Hi team,

I have recently set up Hadoop in my pc. It worked fine. Now I am getting "DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead, use the hdfs command for it."   when starting my demons and getting shutdown.

Regards,

Sandeep Kumar k

The command is hadoop is deprecated which means it is not preferred according to the newer version of hadoop that you are using. Instead, you have to use the command hdfs.

1 answer to this question.

+1 vote

The use of dfs in your command is "Deprecated". Instead use fs:

hadoop fs -copyFromLocal /home/user/sample /sample_folder
answered Nov 26, 2018 by Omkar
• 69,220 points

Related Questions In Big Data Hadoop

0 votes
0 answers

WARNING: Use of this script to execute namenode is deprecated. WARNING:

am getting the following errot when i ...READ MORE

Nov 10, 2021 in Big Data Hadoop by anonymous
• 140 points
915 views
0 votes
1 answer
0 votes
1 answer

How to execute python script in hadoop file system (hdfs)?

If you are simply looking to distribute ...READ MORE

answered Sep 19, 2018 in Big Data Hadoop by digger
• 26,740 points
13,558 views
0 votes
1 answer

Why we need to install "ant -Dhadoopversion=23" ? What is the use of this?

Hi, We install ant to build pig, If the ...READ MORE

answered Apr 26, 2019 in Big Data Hadoop by Gitika
• 65,770 points
659 views
+1 vote
2 answers

What does hadoop fs -du command gives as output?

du command is used for to see ...READ MORE

answered Jul 24, 2019 in Big Data Hadoop by Lokesh Singh
5,866 views
0 votes
1 answer

How can I write text in HDFS using CMD?

Hadoop put & appendToFile only reads standard ...READ MORE

answered Apr 27, 2018 in Big Data Hadoop by Shubham
• 13,490 points
2,286 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,490 points
2,187 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,490 points
2,472 views
0 votes
1 answer

What is the command to count number of lines in a file in hdfs?

hadoop fs -cat /example2/doc1 | wc -l READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 69,220 points
4,036 views
0 votes
1 answer

Error while hitting the hadoop jar command to execute my map reduce

Since your jar file was inside the ...READ MORE

answered Feb 12, 2019 in Big Data Hadoop by Omkar
• 69,220 points
1,587 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP