There is no existing java code snippet to run Sqoop command now. However, it is 
similar to run shell command in java code.
You could following the sample:
http://www.mkyong.com/java/how-to-execute-shell-command-from-java/
http://stackoverflow.com/questions/23322740/how-to-execute-shell-command-in-java-client-server


Regards
Richard

From: Syed Akram [mailto:[email protected]]
Sent: Wednesday, January 28, 2015 3:03 PM
To: [email protected]
Subject: RE: Run sqoop1 using command line via java

Basically iam asking for java code snippet, if u have that please provide it,

Thanks

---- On Wed, 28 Jan 2015 12:25:22 +0530 
Zhou<[email protected]<mailto:[email protected]>> wrote ----

For Sqoop 1.4.5, the docs is in http://sqoop.apache.org/docs/1.4.5/index.html . 
It’s ok to run Sqoop commands via java code snippet.

Hope it could help.





Regards

Richard



From: Syed Akram 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, January 28, 2015 2:50 PM
To: [email protected]<mailto:[email protected]>
Subject: RE: Run sqoop1 using command line via java


Thanks for quick reply,



By the way Iam using sqoop 1.4.5 , and i want java code snippet to run command 
line sqoop commands. Using some SSH or some other clients.



Thanks Again

---- On Wed, 28 Jan 2015 12:10:14 +0530 
Zhou<[email protected]<mailto:[email protected]>> wrote ----

Hey Akram Syed:



                You could follow the docs in 
http://sqoop.apache.org/docs/1.99.4/index.html .

                For command line: 
http://sqoop.apache.org/docs/1.99.4/CommandLineClient.html

                For java code: 
http://sqoop.apache.org/docs/1.99.4/ClientAPI.html





Regards

Richard



From: Syed Akram 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, January 28, 2015 2:35 PM
To: [email protected]<mailto:[email protected]>
Subject: Run sqoop1 using command line via java



Hi,



      Please share me the code to run sqoop1 import commands on linux using 
java and use ssh or any other commands via java.



Please share .



Thanks

Akram Syed






Reply via email to