Error in running hdfs commands

0 votes
[edureka_60235@ip-20-0-41-190 ~]$ hdfs -ls
Unrecognized option: -ls
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[edureka_60235@ip-20-0-41-190 ~]$ 
Jul 15, 2019 in Big Data Hadoop by Suman
157 views

2 answers to this question.

0 votes

The command you entered is incorrect. Run this command to successfully get the files:  

$ hdfs dfs -ls
answered Jul 15, 2019 by Guru
0 votes

Hey,

You can check this command also 

hadoop fs -ls /

answered Aug 5, 2019 by Rashi

Related Questions In Big Data Hadoop

0 votes
1 answer

Getting error in command hdfs dfs -mkdir

You are getting this error because the ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,380 points
759 views
0 votes
1 answer

How can I use my host machine’s web browser to check my HDFS services running in the VM?

The sole purpose of the virtual machine ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by Shubham
• 13,380 points
286 views
0 votes
0 answers

Hi. I keep on encountering the follow error when running conf in flume via flume-ng at line 189. Any possible solutions?

Running FLUME agent :     class: org.apache.flume.node.Application     arguments: -n agent1 ...READ MORE

Apr 22 in Big Data Hadoop by anonymous
• 120 points
87 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 23, 2019 in Big Data Hadoop by Lokesh Singh
2,202 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,380 points
204 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,380 points
538 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,380 points
574 views
0 votes
1 answer

Error running hadoop mapreduce in Python using Hadoop Streaming

Hi As you write mapper and reducer program  ...READ MORE

answered Jan 21 in Big Data Hadoop by anonymous
446 views
+2 votes
10 answers

Is there any difference between “hdfs dfs” and “hadoop fs” shell commands?

Yes, there's a difference between hadoop fs and ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Kunal
16,369 views