Hello Hive-Team,

just tried to build Hive from SVN under Windows and found a Problem.
Quick an dirty Patch attached.

bernd
Index: ql/src/test/templates/TestCliDriver.vm
===================================================================
--- ql/src/test/templates/TestCliDriver.vm      (revision 1057242)
+++ ql/src/test/templates/TestCliDriver.vm      (working copy)
@@ -31,7 +31,7 @@
       if ("$clusterMode".equals("miniMR"))
         miniMR = true;
       hadoopVer = "$hadoopVersion";
-      qt = new QTestUtil("$resultsDir.getCanonicalPath()", 
"$logDir.getCanonicalPath()", miniMR, hadoopVer);
+      qt = new QTestUtil("$resultsDir.getCanonicalPath().replace('\', '/')", 
"$logDir.getCanonicalPath().replace('\', '/')", miniMR, hadoopVer);
 
       // do a one time initialization
       qt.cleanUp();
@@ -106,7 +106,7 @@
     try {
       System.out.println("Begin query: " + "$fname");
 
-      qt.addFile("$qf.getCanonicalPath()");
+      qt.addFile("$qf.getCanonicalPath().replace('\', '/')");
 
       if (qt.shouldBeSkipped("$fname")) {
         return;

Reply via email to