hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From athu...@apache.org
Subject svn commit: r738725 - in /hadoop/hive/trunk: CHANGES.txt data/conf/hive-site.xml ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java
Date Thu, 29 Jan 2009 02:45:29 GMT
Author: athusoo
Date: Thu Jan 29 02:45:28 2009
New Revision: 738725

URL: http://svn.apache.org/viewvc?rev=738725&view=rev
Log:
HIVE-257. Set hive history log location to build for tests.
(Suresh Anthony via athusoo)


Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/data/conf/hive-site.xml
    hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=738725&r1=738724&r2=738725&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Thu Jan 29 02:45:28 2009
@@ -250,3 +250,6 @@
 
     HIVE-179. Make substr behavior similar to other RDBMS.
     (David Phillips via athusoo)
+
+    HIVE-257. Set hive history log location to build for tests.
+    (Suresh Anthony via athusoo)

Modified: hadoop/hive/trunk/data/conf/hive-site.xml
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/data/conf/hive-site.xml?rev=738725&r1=738724&r2=738725&view=diff
==============================================================================
--- hadoop/hive/trunk/data/conf/hive-site.xml (original)
+++ hadoop/hive/trunk/data/conf/hive-site.xml Thu Jan 29 02:45:28 2009
@@ -106,4 +106,10 @@
   <description>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</description>
 </property>
 
+<property>
+  <name>hive.querylog.location</name>
+  <value>${user.dir}/../build/ql/tmp</value>
+  <description>Location of the structured hive logs</description>
+</property>
+
 </configuration>

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java?rev=738725&r1=738724&r2=738725&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/history/HiveHistory.java Thu Jan
29 02:45:28 2009
@@ -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);
 



Mime
View raw message