当前位置:网站首页>Hadoop command summary

Hadoop command summary

2020-11-06 20:12:18 Sad and happy world

  • see :hadoop fs -ls Catalog
  • download :hadoop fs -get Catalog
  • Upload : hadoop fs -put Local files Catalog , Overlay upload -put -f.
  • View file size :hadoop fs -du -s -h Catalog
  • Create directory :hadoop fs -mkdir Catalog
  • Moving files :hadoop fs -mv Source directory Target directory
  • Delete files or directories :hadoop fs -rm -r -f Catalog
  • see file :hadoop fs -text( or -cat) file |head -10
  • Check the task log :hadoop job -status job_1543854528701_473503
  • Merge files :hadoop fs -cat route /* |hadoop fs -copyFromLocal - Path is generated / file name
  • Specify directory permissions :
    • sudo -u hdfs hadoop fs -chown cloudil:cloudil /user/cloudil/
    • sudo -u hdfs hadoop fs -chown cloudil: /user/cloudil/
  • function jar package :hadoop jar jar Package path

版权声明
本文为[Sad and happy world]所创,转载请带上原文链接,感谢