org.apache.hadoop.tools
Class HadoopArchives

java.lang.Object
  extended by org.apache.hadoop.tools.HadoopArchives
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class HadoopArchives
extends Object
implements org.apache.hadoop.util.Tool

a archive creation utility. This class provides methods that can be used to create hadoop archives. For understanding of Hadoop archives look at HarFileSystem.


Field Summary
static int VERSION
           
 
Constructor Summary
HadoopArchives(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
static void main(String[] args)
          the main functions
 int run(String[] args)
          the main driver for creating the archives it takes at least three command line parameters.
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final int VERSION
See Also:
Constant Field Values
Constructor Detail

HadoopArchives

public HadoopArchives(org.apache.hadoop.conf.Configuration conf)
Method Detail

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

run

public int run(String[] args)
        throws Exception
the main driver for creating the archives it takes at least three command line parameters. The parent path, The src and the dest. It does an lsr on the source paths. The mapper created archuves and the reducer creates the archive index.

Specified by:
run in interface org.apache.hadoop.util.Tool
Throws:
Exception

main

public static void main(String[] args)
the main functions



Copyright © 2009 The Apache Software Foundation