TEZ-2645. (addendum) Provide standard analyzers for job analysis (rbalamohan)
authorRajesh Balamohan <rbalamohan@apache.org>
Thu, 30 Jul 2015 01:34:52 +0000 (07:04 +0530)
committerRajesh Balamohan <rbalamohan@apache.org>
Thu, 30 Jul 2015 01:34:52 +0000 (07:04 +0530)
tez-tools/analyzers/job-analyzer/pom.xml
tez-tools/analyzers/job-analyzer/src/main/java/org/apache/tez/analyzer/CSVResult.java

index 6312a34..21ee6a2 100644 (file)
@@ -22,7 +22,7 @@
     <artifactId>tez-perf-analyzer</artifactId>
     <version>0.8.0-SNAPSHOT</version>
   </parent>
-  <artifactId>job-analyzer</artifactId>
+  <artifactId>tez-job-analyzer</artifactId>
 
   <dependencies>
     <dependency>
index 5e454b4..4151a90 100644 (file)
@@ -21,7 +21,7 @@ package org.apache.tez.analyzer;
 import com.google.common.base.Preconditions;
 import com.google.common.collect.Iterators;
 import com.google.common.collect.Lists;
-import org.apache.directory.api.util.Strings;
+import com.google.common.base.Strings;
 import org.apache.tez.dag.api.TezException;
 
 import java.io.BufferedWriter;
@@ -99,7 +99,7 @@ public class CSVResult implements Result {
 
       StringBuilder sb = new StringBuilder();
       for(int i=0;i<record.length;i++) {
-        sb.append(Strings.isNotEmpty(record[i]) ? record[i] : " ");
+        sb.append(Strings.isNullOrEmpty(record[i]) ? record[i] : " ");
         if (i < record.length - 1) {
           sb.append(",");
         }