回到 hdfs_single 容器,哪些命令将用于操作 HDFS?

回到 hdfs_single 容器,哪些命令将用于操作 HDFS?

展开
收起
游客coqayqskxr2xe 2021-12-05 13:39:55 522 分享 版权
1 条回答
写回答
取消 提交回答
  • 显示根目录 / 下的文件和子目录,绝对路径

    hadoop fs -ls /

    新建文件夹,绝对路径

    hadoop fs -mkdir /hello

    上传文件

    hadoop fs -put hello.txt /hello/

    下载文件

    hadoop fs -get /hello/hello.txt

    输出文件内容

    hadoop fs -cat /hello/hello.txt

    2021-12-05 13:40:13
    赞同 展开评论

国内唯一 Forrester 公共云容器平台领导者象限。

还有其他疑问?
咨询AI助理