xl-201710

删除文件   bin/hdfs dfs -rm output2/*

删除文件夹   bin/hdfs dfs -rm -r output2

抓取内容     bin/hdfs dfs -cat /user/output1/part-r-00000

传文件到hdfs中去    bin/hdfs dfs -put LICENSE.txt

传文件到hdfs的某个文件夹中去    bin/hdfs dfs -put LICENSE.txt input2

将hdfs中的output文件夹复制到本地文件目录的output文件夹中    bin/hdfs dfs -get output output

 

其他命令见hadoop官方文档:http://hadoop.apache.org/docs/r2.6.5/hadoop-project-dist/hadoop-common/SingleCluster.html

分类:

技术点:

相关文章:

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