You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@sqoop.apache.org by Jagrut Sharma <ja...@gmail.com> on 2016/03/11 23:14:11 UTC

Java API for Sqoop 1.4.6

Hi Sqoop experts - I'm exploring options to run Sqoop via a Java program. I
could write this using the com.cloudera.sqoop.SqoopOptions and
com.cloudera.sqoop.tool.ImportTool classes. However, these APIs are
deprecated.

HDP 2.3.2 only ships with Sqoop 1.4.6. Would appreciate any guidance on
this.

Thanks!
-- 
Jagrut

Re: Java API for Sqoop 1.4.6

Posted by Jagrut Sharma <ja...@gmail.com>.
Thanks Jordan. I did some quick checks, and org.apache.sqoop.SqoopOptions
does not have the functionality offered by com.cloudera.sqoop.SqoopOptions
(like setting the job parameters etc.).

Is it possible to run Sqoop via Java using the org.apache.sqoop classes?
This is for Sqoop 1.4.6.

Thanks.
--
Jagrut

On Fri, Mar 11, 2016 at 2:31 PM, Jordan Birdsell <
jordan.birdsell.kdvm@statefarm.com> wrote:

> Please see the previous response from Jarcec
> https://mail-archives.apache.org/mod_mbox/sqoop-user/201305.mbox/%3C20130523062818.GK4771@jarcec-thinkpad%3E
>
>
>
> All classes in the com.cloudera namespace are marked as deprecated when
> the functionality is moved to org.apache namespaces. So change to
> org.apache.sqoop.SqoopOptions and org.apache.sqoop.tool.ImportTool
> respectively.
>
>
>
> Jordan
>
>
>
> *From:* Jagrut Sharma [mailto:jagrutsharma@gmail.com]
> *Sent:* Friday, March 11, 2016 5:14 PM
> *To:* user@sqoop.apache.org
> *Subject:* Java API for Sqoop 1.4.6
>
>
>
> Hi Sqoop experts - I'm exploring options to run Sqoop via a Java program.
> I could write this using the com.cloudera.sqoop.SqoopOptions and
> com.cloudera.sqoop.tool.ImportTool classes. However, these APIs are
> deprecated.
>
>
>
> HDP 2.3.2 only ships with Sqoop 1.4.6. Would appreciate any guidance on
> this.
>
>
>
> Thanks!
> --
>
> Jagrut
>
>
>

RE: Java API for Sqoop 1.4.6

Posted by Jordan Birdsell <jo...@statefarm.com>.
Please see the previous response from Jarcec https://mail-archives.apache.org/mod_mbox/sqoop-user/201305.mbox/%3C20130523062818.GK4771@jarcec-thinkpad%3E

All classes in the com.cloudera namespace are marked as deprecated when the functionality is moved to org.apache namespaces. So change to org.apache.sqoop.SqoopOptions and org.apache.sqoop.tool.ImportTool respectively.

Jordan

From: Jagrut Sharma [mailto:jagrutsharma@gmail.com]
Sent: Friday, March 11, 2016 5:14 PM
To: user@sqoop.apache.org
Subject: Java API for Sqoop 1.4.6

Hi Sqoop experts - I'm exploring options to run Sqoop via a Java program. I could write this using the com.cloudera.sqoop.SqoopOptions and com.cloudera.sqoop.tool.ImportTool classes. However, these APIs are deprecated.

HDP 2.3.2 only ships with Sqoop 1.4.6. Would appreciate any guidance on this.

Thanks!
--
Jagrut