use ls -l to check if hdfs has the right to access url.txt.

On 9 October 2012 19:40, Bai Shen <baishen.li...@gmail.com> wrote:

> I have a CDH3 cluster up and running.  I'm on the namenode and trying to
> copy a file into HDFS.  However, whenever I run copyFromLocal, I get a file
> does not exist error.
>
> [root@node1-0 ~]# sudo -u hdfs hadoop fs -copyFromLocal /root/url.txt /
> copyFromLocal: File /root/url.txt does not exist.
>
> What am I doing wrong?  url.txt exists in /root on the local filesystem.
>
> Thanks.
>



-- 

Best wishes.

Zhiwei

Reply via email to