Changeset 28192

Show
Ignore:
Timestamp:
30.08.2013 09:21:30 (6 years ago)
Author:
jmt12
Message:

Need to still output Greenstone messages to log otherwise I can't determine IO start/stop

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/parallel-building/trunk/src/src/java/org/nzdl/gsdl/HadoopGreenstoneIngest2.java

    r28012 r28192  
    294294      // - change working directory 
    295295      import_process_builder.directory(new File(gsdlhome)); 
    296       // - close our output to the log before opening in the process 
    297       fw1.close(); 
    298296 
    299297      // - redirect STDERR to STDOUT for simplicity sake 
     
    314312      while ((line = import_process_br.readLine()) != null) 
    315313      { 
     314        // Write line to process log regardless 
     315        fw1.write(line + "\n"); 
     316        // Now we check for sentinel strings in the output line 
    316317        Text output_key; 
    317318        Text output_value; 
     
    450451 
    451452      // - write end time to log 
    452       FileWriter fw2 = new FileWriter(import_process_log, true); 
    453453      double end_time = ((double)System.currentTimeMillis())/1000; 
    454       fw2.write("[Completed:" + String.format("%.6f", end_time) + "]\n"); 
    455       fw2.close(); 
     454      fw1.write("[Completed:" + String.format("%.6f", end_time) + "]\n"); 
     455      // - close our output to the log 
     456      fw1.close(); 
    456457    } 
    457458    /** map(LongWritable,Text,Context) **/