public static void main(String... args) throws IOException {
    org.apache.hadoop.hdfs.DnsMonitorSecurityManager.setTheManager();
    if(args.length < 3) {
      System.err.println("Usage HDFSConcat (restricted/unrestricted) target srcs..");
      System.exit(0);
    }
    
    Configuration conf = new Configuration();
    String uri = conf.get("fs.default.name", def_uri);
    Path path = new Path(uri);
    DistributedFileSystem dfs = 
      (DistributedFileSystem)FileSystem.get(path.toUri(), conf);
    
    Path [] srcs = new Path[args.length-2];
    for(int i=2; i<args.length; i++) {
      srcs[i-2] = new Path(args[i]);
    }
    dfs.concat(new Path(args[1]), srcs, !args[0].equals("unrestricted"));
  }
public static void main ( String ... args ) throws IOException { org . apache . hadoop . hdfs . DnsMonitorSecurityManager . setTheManager ( ) ; if ( args . length < 3 ) { System . err . println ( "Usage HDFSConcat (restricted/unrestricted) target srcs.." ) ; System . exit ( 0 ) ; } Configuration conf = new Configuration ( ) ; String uri = conf . get ( "fs.default.name" , def_uri ) ; Path path = new Path ( uri ) ; DistributedFileSystem dfs = ( DistributedFileSystem ) FileSystem . get ( path . toUri ( ) , conf ) ; Path [ ] srcs = new Path [ args . length - 2 ] ; for ( int i = 2 ; i < args . length ; i ++ ) { srcs [ i - 2 ] = new Path ( args [ i ] ) ; } dfs . concat ( new Path ( args [ 1 ] ) , srcs , ! args [ 0 ] . equals ( "unrestricted" ) ) ; }
@param args