shaofengshi closed pull request #209: KYLIN-3510 Correct sqoopHome at 
'createSqoopToFlatHiveStep'
URL: https://github.com/apache/kylin/pull/209
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/source-hive/src/main/java/org/apache/kylin/source/jdbc/JdbcHiveMRInput.java 
b/source-hive/src/main/java/org/apache/kylin/source/jdbc/JdbcHiveMRInput.java
index b8bc56faaf..284aac5697 100644
--- 
a/source-hive/src/main/java/org/apache/kylin/source/jdbc/JdbcHiveMRInput.java
+++ 
b/source-hive/src/main/java/org/apache/kylin/source/jdbc/JdbcHiveMRInput.java
@@ -184,7 +184,7 @@ private AbstractExecutable createSqoopToFlatHiveStep(String 
jobWorkingDir, Strin
                 }
             }
 
-            String cmd = String.format("%s/sqoop import" + 
generateSqoopConfigArgString()
+            String cmd = String.format("%s/bin/sqoop import" + 
generateSqoopConfigArgString()
                     + "--connect \"%s\" --driver %s --username %s --password 
%s --query \"%s AND \\$CONDITIONS\" "
                     + "--target-dir %s/%s --split-by %s --boundary-query 
\"%s\" --null-string '' "
                     + "--fields-terminated-by '%s' --num-mappers %d", 
sqoopHome, connectionUrl, driverClass, jdbcUser,


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to