Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to list all sqoop jobs and view the details?

avatar
Contributor

I am not able to list any sqoop jobs despite I run the following command during the sqoop job running time:

 

sqoop job --list

 

Here is a screenshot:

 

Screenshot - 2_2_2018 , 11_09_27 PM.jpg

 

Thank you.

1 ACCEPTED SOLUTION

avatar
Champion

@axie

 

Have you created sqoop job before list? (or) looking for ad hoc sqoop command which are currently running?

 

If you have not created sqoop job then please try this before list

step1: 
sqoop job
--create myjob \--import \--connect jdbc:mysql://localhost/db \ --username root \--table employee --m 1

step 2:
sqoop job --exec myjob

step 3:
sqoop job --list

To get help: sqoop job --help

For more details: https://www.tutorialspoint.com/sqoop/sqoop_job.htm

 

If you are running sqoop in ad hoc basis without job, it may not be listed. Ex:

sqoop import \--connect jdbc:mysql://localhost/db \
--username root \--table employee --m 1

 

View solution in original post

2 REPLIES 2

avatar
Champion

@axie

 

Have you created sqoop job before list? (or) looking for ad hoc sqoop command which are currently running?

 

If you have not created sqoop job then please try this before list

step1: 
sqoop job
--create myjob \--import \--connect jdbc:mysql://localhost/db \ --username root \--table employee --m 1

step 2:
sqoop job --exec myjob

step 3:
sqoop job --list

To get help: sqoop job --help

For more details: https://www.tutorialspoint.com/sqoop/sqoop_job.htm

 

If you are running sqoop in ad hoc basis without job, it may not be listed. Ex:

sqoop import \--connect jdbc:mysql://localhost/db \
--username root \--table employee --m 1

 

avatar
Contributor
Thank you.