[ 
https://issues.apache.org/jira/browse/OOZIE-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13831996#comment-13831996
 ] 

Robert Kanter commented on OOZIE-1575:
--------------------------------------

After offline discussion with Bowen, we should be able to do something like 
this:

*Regular Sqoop Command*
- excerpt from workflow.xml:
{noformat}
<command>import --connect jdbc:hsqldb:file:db.hsqldb --table TT --target-dir 
/user/${wf:user()}/${examplesRoot}/output-data/sqoop -m 1</command>
{noformat}
- Oozie CLI:
{noformat}
oozie sqoop -config job.properties -command import --connect 
jdbc:hsqldb:file:db.hsqldb --table TT --target-dir 
/user/${wf:user()}/${examplesRoot}/output-data/sqoop -m 1
{noformat}

*Freeform Sqoop Command*
- excerpt from workflow.xml:
{noformat}
<arg>import</arg>
<arg>--connect</arg>
<arg>jdbc:hsqldb:file:db.hsqldb</arg>
<arg>--username</arg>
<arg>sa</arg>
<arg>--password</arg>
<arg>p</arg>
<arg>--verbose</arg>
<arg>--query</arg>
<arg>select TT.I, TT.S from TT where $CONDITIONS</arg>
<arg>--target-dir</arg>
<arg>/user/${wf:user()}/${examplesRoot}/output-data/sqoop-freeform</arg>
<arg>-m</arg>
<arg>1</arg>
{noformat}
- Oozie CLI:
{noformat}
oozie sqoop -config job.properties -arg import -arg --connect -arg 
jdbc:hsqldb:file:db.hsqldb -arg --username -arg sa -arg --password -arg p -arg 
--verbose -arg --query -arg select TT.I, TT.S from TT where $CONDITIONS -arg 
--target-dir -arg /user/${wf:user()}/${examplesRoot}/output-data/sqoop-freeform 
-arg -m -arg 1
{noformat}

> Add functionality to sumbit sqoop job through http on oozie server side
> -----------------------------------------------------------------------
>
>                 Key: OOZIE-1575
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1575
>             Project: Oozie
>          Issue Type: Sub-task
>          Components: client
>            Reporter: Bowen Zhang
>            Assignee: Bowen Zhang
>             Fix For: trunk
>
>         Attachments: oozie-1575.patch, oozie-1575.patch, oozie-1575.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to