Index: data/conf/hive-site.xml
===================================================================
--- data/conf/hive-site.xml (revision 738710)
+++ data/conf/hive-site.xml (working copy)
@@ -106,4 +106,10 @@
Name of the class that implements org.apache.hadoop.hive.metastore.rawstore interface. This class is used to store and retrieval of raw metadata objects such as table, database
+
+ hive.querylog.location
+ ${user.dir}/../build/ql/tmp
+ Location of the structured hive logs
+
+
Index: ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java
===================================================================
--- ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java (revision 738710)
+++ ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java (working copy)
@@ -28,6 +28,7 @@
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
+import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -187,8 +188,9 @@
return;
}
}
+ Random randGen = new Random();
histFileName = conf_file_loc + "/hive_job_log_" + ss.getSessionId()
- + ".txt";
+ +"_" + randGen.nextInt() + ".txt";
console.printInfo("Hive history file=" + histFileName);
histStream = new PrintWriter(histFileName);