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

设置分区数

相关文章:

  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-12-11
  • 2021-06-23
  • 2021-11-18
  • 2021-10-09
猜你喜欢
  • 2021-04-09
  • 2021-10-16
  • 2021-09-03
  • 2022-12-23
  • 2021-11-18
  • 2021-05-15
  • 2022-02-02
相关资源
相似解决方案