223.Creating Sqoop Job

  • To display information and usage instructions related to job command
    • sqoop help job
  • Command to create a job
    • sqoop job --create import_orders -- import --connect jdbc:mysql://ms.itversity.com:3306/retail_db --username retail_user --password-file file:///home/training/password_file --table orders --warehouse-dir /user/training/sqoop_import/retail_db --delete-target-dir
  • Command to list the jobs already created
    • sqoop job --list
  • Command to get details related to the job
    • sqoop job –show import_orders
  • Refer to sqoop user-guide on job command here.

Share this post