Chandrashekhar N
Chandrashekhar N

Reputation: 1

Failed to execute hdfs -ls command on hadoop 2.8

hdfs -ls command is not working but Hadoop fs -ls is working fine, I got the following error when use

hdfs -ls.

Unrecognized option: -ls Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. The program will exit.

could you please help, I am new to Hadoop.

Upvotes: 0

Views: 421

Answers (1)

Rajesh A
Rajesh A

Reputation: 389

hadoop is a user group,but hdfs is an user name. so you can use hdfs dfs -ls.dfs means (distributed file system)it will works fine.

Upvotes: 0

Related Questions