Archives Examples-(2)Looking Up Files

[root@hadoop hadoop-2.7.4]# hadoop fs -ls -R har:///user/zoo/foo.har
drwxr-xr-x   - root supergroup          0 2017-09-25 01:01 har:///user/zoo/foo.har/dir1
drwxr-xr-x   - root supergroup          0 2017-09-25 01:01 har:///user/zoo/foo.har/dir1/input
-rw-r--r--   1 root supergroup       4436 2017-09-25 01:01 har:///user/zoo/foo.har/dir1/input/capacity-scheduler.xml
-rw-r--r--   1 root supergroup       1335 2017-09-25 01:01 har:///user/zoo/foo.har/dir1/input/configuration.xsl
......省略一堆输出

练习:
使用以下命令创建archive,并且再次使用上面的命令ls -R查询文件,将输出结果回复到本文的评论中(贴出5行输出即可)

hadoop archive -archiveName foo.har -p /user/ hadoop/dir1 hadoop/dir2 /user/zoo

你可能感兴趣的:(Archives Examples-(2)Looking Up Files)