Changeset 28192 for gs2-extensions/parallel-building/trunk/src/src/java/org/nzdl/gsdl/HadoopGreenstoneIngest2.java
- Timestamp:
- 2013-08-30T09:21:30+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/parallel-building/trunk/src/src/java/org/nzdl/gsdl/HadoopGreenstoneIngest2.java
r28012 r28192 294 294 // - change working directory 295 295 import_process_builder.directory(new File(gsdlhome)); 296 // - close our output to the log before opening in the process297 fw1.close();298 296 299 297 // - redirect STDERR to STDOUT for simplicity sake … … 314 312 while ((line = import_process_br.readLine()) != null) 315 313 { 314 // Write line to process log regardless 315 fw1.write(line + "\n"); 316 // Now we check for sentinel strings in the output line 316 317 Text output_key; 317 318 Text output_value; … … 450 451 451 452 // - write end time to log 452 FileWriter fw2 = new FileWriter(import_process_log, true);453 453 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(); 456 457 } 457 458 /** map(LongWritable,Text,Context) **/
Note:
See TracChangeset
for help on using the changeset viewer.