You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by kh...@apache.org on 2014/05/01 03:01:03 UTC
svn commit: r1591523 - in /hive/trunk:
ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java pom.xml
Author: khorgath
Date: Thu May 1 01:01:02 2014
New Revision: 1591523
URL: http://svn.apache.org/r1591523
Log:
HIVE-6966 : More fixes for TestCliDriver on Windows (Jason Dere via Sushanth Sowmyan)
Modified:
hive/trunk/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java
hive/trunk/pom.xml
Modified: hive/trunk/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java
URL: http://svn.apache.org/viewvc/hive/trunk/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java?rev=1591523&r1=1591522&r2=1591523&view=diff
==============================================================================
--- hive/trunk/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java (original)
+++ hive/trunk/ant/src/org/apache/hadoop/hive/ant/QTestGenTask.java Thu May 1 01:01:02 2014
@@ -442,7 +442,7 @@ public class QTestGenTask extends Task {
}
ctx.put("logDir", relativePath(hiveRootDir, logDir));
ctx.put("clusterMode", clusterMode);
- ctx.put("hiveConfDir", hiveConfDir);
+ ctx.put("hiveConfDir", escapePath(hiveConfDir));
ctx.put("hadoopVersion", hadoopVersion);
File outFile = new File(outDir, className + ".java");
Modified: hive/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hive/trunk/pom.xml?rev=1591523&r1=1591522&r2=1591523&view=diff
==============================================================================
--- hive/trunk/pom.xml (original)
+++ hive/trunk/pom.xml Thu May 1 01:01:02 2014
@@ -60,7 +60,9 @@
<hive.path.to.root>.</hive.path.to.root>
<!-- Test Properties -->
+ <test.extra.path></test.extra.path>
<test.hive.hadoop.classpath>${maven.test.classpath}</test.hive.hadoop.classpath>
+ <test.log4j.scheme>file://</test.log4j.scheme>
<test.tmp.dir>${project.build.directory}/tmp</test.tmp.dir>
<test.warehouse.dir>${project.build.directory}/warehouse</test.warehouse.dir>
<test.warehouse.scheme>pfile://</test.warehouse.scheme>
@@ -728,6 +730,7 @@
<LANG>en_US.UTF-8</LANG>
<HADOOP_CLASSPATH>${test.tmp.dir}/conf:${basedir}/${hive.path.to.root}/conf</HADOOP_CLASSPATH>
<HIVE_HADOOP_TEST_CLASSPATH>${test.hive.hadoop.classpath}</HIVE_HADOOP_TEST_CLASSPATH>
+ <PATH>${env.PATH}${test.extra.path}</PATH>
</environmentVariables>
<systemPropertyVariables>
<build.dir>${project.build.directory}</build.dir>
@@ -744,7 +747,7 @@
<!-- required for hive-exec jar path and tests which reference a jar -->
<maven.local.repository>${maven.repo.local}</maven.local.repository>
<mapred.job.tracker>local</mapred.job.tracker>
- <log4j.configuration>file://${test.tmp.dir}/conf/hive-log4j.properties</log4j.configuration>
+ <log4j.configuration>${test.log4j.scheme}${test.tmp.dir}/conf/hive-log4j.properties</log4j.configuration>
<log4j.debug>true</log4j.debug>
<!-- don't diry up /tmp -->
<java.io.tmpdir>${test.tmp.dir}</java.io.tmpdir>
@@ -1042,7 +1045,9 @@
</build>
<properties>
<hadoop.bin.path>${basedir}/${hive.path.to.root}/testutils/hadoop.cmd</hadoop.bin.path>
+ <test.extra.path>;${env.HADOOP_HOME}/bin</test.extra.path>
<test.hive.hadoop.classpath>${project.build.directory}/deplibs/*</test.hive.hadoop.classpath>
+ <test.log4j.scheme>file:/</test.log4j.scheme>
</properties>
</profile>
</profiles>