Ignore:
Timestamp:
2015-12-16T16:15:39+13:00 (8 years ago)
Author:
jmt12
Message:

Extending manifest v2 support to allow for directories to be listed in manifest. Matched with changes in Directory plugin to allow paths into systems like HDFS to be listed in manifest.cd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/bin/script/hadoop_import.pl

    r28015 r30354  
    3333my $hdfs_fs_prefix = 'HDThriftFS://';
    3434my $refresh_import = 0;
     35my $remove_old = 0;
    3536my $username = `whoami`;
    3637chomp($username);
     
    4950else
    5051{
    51   print STDERR "usage: hadoop_import.pl <collection> [-debug] [-disable_thrift] [-dry_run] [-start_thrift] [-refresh_import] [-flush_diskcache] [-use_nfs] [-stagger]\n";
     52  print STDERR "usage: hadoop_import.pl <collection> [-debug] [-enable_thrift] [-dry_run] [-start_thrift] [-refresh_import] [-flush_diskcache] [-use_nfs] [-stagger] [-removeold]\n";
    5253  print STDERR "where: [debug] print more debug messages to STDERR\n";
    5354  print STDERR "       [dry_run] don't actually perform an file actions\n";
     
    6162    $debug = 1;
    6263  }
    63   if ($ARGV[$offset] eq '-disable_thrift')
    64   {
    65     $use_thrift = 0;
     64  if ($ARGV[$offset] eq '-enable_thrift')
     65  {
     66    $use_thrift = 1;
    6667  }
    6768  if ($ARGV[$offset] eq '-dry_run')
     
    8889  {
    8990    $use_nfs = 1;
     91  }
     92  if ($ARGV[$offset] eq '-removeold')
     93  {
     94    $remove_old = 1;
    9095  }
    9196  if ($ARGV[$offset] eq '-logdir')
Note: See TracChangeset for help on using the changeset viewer.