我正在尝试将包含记录的目录从HDFS复制到本地。有命令这样做吗?任何帮助将不胜感激。谢谢。
[cluster: user@launcherHost-1 ~]$ hadoop fs -ls /tmp/jfr-ps
Found 11 items
-rw-r--r-- 2 user user 35259986 2019-09-11 03:37 /tmp/jfr-ps/profile-driver-datanode-4.node.esx-2208.consul-pid28651.jfr
-rw-r--r-- 2 user user 29391144 2019-09-11 03:27 /tmp/jfr-ps/profile-executor-1568172472-datanode-2.node.esx-2208.consul-pid4300.jfr
-rw-r--r-- 2 user user 30737428 2019-09-11 03:27 /tmp/jfr-ps/profile-executor-1568172472-datanode-3.node.esx-2208.consul-pid12690.jfr
-rw-r--r-- 2 user user 30071034 2019-09-11 03:27 /tmp/jfr-ps/profile-executor-1568172472-datanode-3.node.esx-2208.consul-pid13118.jfr
答案 0 :(得分:0)
您可以使用hadoop fs -copyToLocal [source] [destination]