Pierre Regazzoni commented on KNOX-743:

[~lmccay] The driver should be in $SQOOP_HOME/lib. We can add following to the 
information: Download the appropriate JDBC driver for the database you want to 
import, and install the .jar file in the $SQOOP_HOME/lib directory on your 
client machine e.g. /usr/lib/sqoop/lib. You can get mysql connector as follow:

yum install mysql-connector-java
ln -s /usr/share/java/mysql-connector-java.jar $SQOOP_HOME/lib/.

Agree wrt password it can be prompted (the one I included is basically 
password-less) to be cleaner and added to the instruction.

> Add submitSqoop via knox shell api
> ----------------------------------
>                 Key: KNOX-743
>                 URL: https://issues.apache.org/jira/browse/KNOX-743
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: ClientDSL
>    Affects Versions: 0.9.0
>            Reporter: Pierre Regazzoni
>            Assignee: Pierre Regazzoni
>             Fix For: 0.10.0
>         Attachments: KNOX-743.patch, KNOX-743.patch.02, submitSqoop.md
> Add ability to submitSqoop job via knox since templeton also support this 
> functionality. I have a basic patch that I am trying and will submit it. 
> Would be something like this:
> {code:java}
> sqoop_command = "import --connect ..."
> jobId = Job.submitSqoop(session) \
>             .command(sqoop_command) \
>             .statusDir("${jobDir}/output") \
>             .now().jobId
> {code}

This message was sent by Atlassian JIRA

Reply via email to