-
Notifications
You must be signed in to change notification settings - Fork 3
/
hadoop_commands_examples.txt
20 lines (20 loc) · 1.25 KB
/
hadoop_commands_examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cat => hadoop fs -cat /hdfs_home/input/abc.txt
chmod => hadoop fs -chmod 777 /hdfs_home/input/abc.txt
chown => hadoop fs -chown hduser:hadoop /hdfs_home/input/abc.txt
copyFromLocal => hadoop fs -copyFromLocal /home/anoop/abc.txt /hdfs_home/input/
copyToLocal => hadoop fs -copyToLocal /hdfs_home/input/abc.txt /home/anoop/
cp => hadoop fs -cp /hdfs_home/input/abc.txt /hdfs_home/output/
du => hadoop fs -du /hdfs_home/input/
get => hadoop fs - get /hdfs_home/input/abc.txt /home/anoop/
ls => hadoop fs -ls /hdfs_home/input/
lsr => hadoop fs -lsr /hdfs_home/
mkdir => hadoop fs -mkdir /hdfs_home/input/sampledir
moveFromLocal => hadoop fs -moveFromLocal /home/anoop/abc.txt /hdfs_home/input/
moveToLocal => hadoop fs -moveToLocal /hdfs_home/input/abc.txt /home/anoop/
mv => hadoop fs -mv /hdfs_home/input/abc.txt /hdfs_home/output/
put => hadoop fs -put /home/anoop/abc.txt /hdfs_home/input
rm => hadoop fs -rm /hdfs_home/input/abc.txt
rmdir => hadoop fs -rmdir /hdfs_home/input/
rmr => hadoop fs -rmr /hdfs_home/input/
tail => hadoop fs -tail /hdfs_home/input/abc.txt
text => hadoop fs -text /hdfs_home/input/abc.txt