HDFS的Shell客户端操作

HDFS的Shell客户端操作

[[email protected] ~]# hdfs dfs

HDFS的Shell客户端操作

 


启动集群

[[email protected] ~]# hdfs dfs -help mv

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -ls /

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -mkdir -p /user/hello

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -rm -r /aaa

HDFS的Shell客户端操作

 

[[email protected] ~]# vi george

hello george

[[email protected] ~]# hdfs dfs -moveFromLocal ./george /

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -cat /george

HDFS的Shell客户端操作

 

[[email protected] ~]# vi honey

hello honey

[[email protected] ~]# hdfs dfs -appendToFile ./honey /george

[[email protected] ~]# hdfs dfs -cat /george

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -tail /george

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -du /george

HDFS的Shell客户端操作

 

[[email protected] ~]# hdfs dfs -setrep 10 /george

设置分区数