【发布时间】:2013-04-06 18:15:09
【问题描述】:
我尝试使用命令在 hadoop 中创建一个目录 hadoop fs -mkdir 计数 那么如何在单节点集群上打开或查看hdfs://localhost:54310/user/hduser/count?
【问题讨论】:
标签: shell hadoop directory mapreduce hdfs
我尝试使用命令在 hadoop 中创建一个目录 hadoop fs -mkdir 计数 那么如何在单节点集群上打开或查看hdfs://localhost:54310/user/hduser/count?
【问题讨论】:
标签: shell hadoop directory mapreduce hdfs
要查看文件夹及其内容,您可以执行以下操作:
hadoop fs -ls count
如果您想将内容获取到本地文件系统,则可以使用get
hadoop fs -get count <output-path-in-your-local-filesystem>
有关所有命令行选项的更详细说明,请阅读here。
【讨论】:
hadoop fs -lsr count
或
hadoop fs -ls /user/hduser/count
【讨论】: