Reply
New Contributor
Posts: 1
Registered: ‎06-14-2016

Error on HDFS Command Line

I installed CDH 5.7.1 on CentOs release 6.8 using the root user. I see all the services are up and running on the cloudera manager screen.

I get an error when I execute any HDFS commands on the command prompt. This is my first CDH installation and I will appreciate your help to address this issue.

 

I have listed a sample command and the output below:

 

[hdfs@app01 downloads]$ hdfs dfs -put words.txt

put: `.': No such file or directory

Cloudera Employee
Posts: 435
Registered: ‎07-12-2013

Re: Error on HDFS Command Line

I believe the problem is that you need 2 arguments: the source and the
destination. I suspect you're missing the latter: I'd specify a directory
you want to copy words.txt into.