public static void main ( String [ ] args ) { System . out . printf ( "TFile Dumper (TFile %s, BCFile %s)\n" , TFile . API_VERSION . toString ( ) , BCFile . API_VERSION . toString ( ) ) ; if ( args . length == 0 ) { System . out . println ( "Usage: java ... org.apache.hadoop.io.file.tfile.TFile tfile-path [tfile-path ...]" ) ; System . exit ( 0 ) ; } Configuration conf = new Configuration ( ) ; for ( String file : args ) { System . out . println ( "===" + file + "===" ) ; try { TFileDumper . dumpInfo ( file , System . out , conf ) ; } catch ( IOException e ) { e . printStackTrace ( System . err ) ; } } }
Dumping the TFile information .