【问题标题】:how to open hdfs://localhost:54310/user/hduser/如何打开 hdfs://localhost:54310/user/hduser/
【发布时间】:2013-04-06 18:15:09
【问题描述】:

我尝试使用命令在 hadoop 中创建一个目录 hadoop fs -mkdir 计数 那么如何在单节点集群上打开或查看hdfs://localhost:54310/user/hduser/count

【问题讨论】:

    标签: shell hadoop directory mapreduce hdfs


    【解决方案1】:

    要查看文件夹及其内容,您可以执行以下操作:

    hadoop fs -ls count
    

    如果您想将内容获取到本地文件系统,则可以使用get

    hadoop fs -get count <output-path-in-your-local-filesystem>
    

    有关所有命令行选项的更详细说明,请阅读here

    【讨论】:

      【解决方案2】:
      hadoop fs -lsr count
      

      hadoop fs -ls /user/hduser/count
      

      【讨论】:

        猜你喜欢
        • 2015-04-27
        • 1970-01-01
        • 2016-02-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-05-04
        • 2020-10-11
        • 1970-01-01
        相关资源
        最近更新 更多