diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index fc0ee321484..82086f626c9 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -19,6 +19,9 @@ Release 2.6.0 - UNRELEASED MAPREDUCE-6019. MapReduce changes for exposing YARN/MR endpoints on multiple interfaces. (Craig Welch, Milan Potocnik, Arpit Agarwal via xgong) + MAPREDUCE-883. harchive: Document how to unarchive (Akira AJISAKA and + Koji Noguchi via aw) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/HadoopArchives.md.vm b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/HadoopArchives.md.vm index 431310a9f5c..0cc0f1c93aa 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/HadoopArchives.md.vm +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/HadoopArchives.md.vm @@ -20,6 +20,7 @@ Hadoop Archives Guide - [Overview](#Overview) - [How to Create an Archive](#How_to_Create_an_Archive) - [How to Look Up Files in Archives](#How_to_Look_Up_Files_in_Archives) + - [How to Unarchive an Archive](#How_to_Unarchive_an_Archive) - [Archives Examples](#Archives_Examples) - [Creating an Archive](#Creating_an_Archive) - [Looking Up Files](#Looking_Up_Files) @@ -70,6 +71,20 @@ How to Look Up Files in Archives `har:///archivepath/fileinarchive` +How to Unarchive an Archive +--------------------------- + + Since all the fs shell commands in the archives work transparently, + unarchiving is just a matter of copying. + + To unarchive sequentially: + + `hdfs dfs -cp har:///user/zoo/foo.har/dir1 hdfs:/user/zoo/newdir` + + To unarchive in parallel, use DistCp: + + `hadoop distcp har:///user/zoo/foo.har/dir1 hdfs:/user/zoo/newdir` + Archives Examples -----------------