setrep command error



0
Hi i am getting error when i use setrep command as i pasted below
[cloudera@localhost ~]$ hadoop fs -ls
Found 2 items
drwx------ - cloudera cloudera 0 2014-07-29 00:02 .Trash
drwxr-xr-x - cloudera cloudera 0 2014-07-29 00:03 dezyre
[cloudera@localhost ~]$ hadoop fs -ls dezyre
Found 1 items
-rw-r--r-- 3 cloudera cloudera 197 2014-07-29 00:03 dezyre/Test.txt
[cloudera@localhost ~]$ hadoop fs -setrep -w 3 -R /dezyre/Test.txt
setrep: `-R': No such file or directory
setrep: `/dezyre/Test.txt': No such file or directory
[cloudera@localhost ~]$

1 Answer(s)


0


0
DeZyre Support
hi Vijaykanth,

"-R" switch should be used along with the directory, something like

hadoop fs -setrep -w 4 -R /hadoop/dir

when setting replication with file you should not use "-R" as give below

hadoop fs -setrep -w 2 wc_input/wordcount_sample
Replication 2 set: wc_input/wordcount_sample
Waiting for wc_input/wordcount_sample ........done

Thanks

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password