HDFS的Shell客户端操作
HDFS的Shell客户端操作
[[email protected] ~]# hdfs dfs
启动集群
[[email protected] ~]# hdfs dfs -help mv
[[email protected] ~]# hdfs dfs -ls /
[[email protected] ~]# hdfs dfs -mkdir -p /user/hello
[[email protected] ~]# hdfs dfs -rm -r /aaa
[[email protected] ~]# vi george
hello george
[[email protected] ~]# hdfs dfs -moveFromLocal ./george /
[[email protected] ~]# hdfs dfs -cat /george
[[email protected] ~]# vi honey
hello honey
[[email protected] ~]# hdfs dfs -appendToFile ./honey /george
[[email protected] ~]# hdfs dfs -cat /george
[[email protected] ~]# hdfs dfs -tail /george
[[email protected] ~]# hdfs dfs -du /george
[[email protected] ~]# hdfs dfs -setrep 10 /george
设置分区数