1.开启sqoop2 server: sqoop.sh server start

2.关闭sqoop2 server: sqoop.sh server stop

3.开启sqoop2交互命令:sqoop2-shell

4.设置server:set server –host localhost –port 12000 -webapp sqoop

5.查看可配置的连接show connector

6.设置MySQL连接:create link -connector generic-jdbc-connector

7.设置Oracle连接:creaate link -connector oracle-jdbc-connector

8.设置hdfs连接:create link -connector hdfs-connector

9.创建job:create job -f sqllink -t hdfslink

10.启动job: start job -n(-name) job_name -s

11.查看job状态:status job -n job_name

12.关闭job: stop job -n job_name

13.删除link连接:delete link -n link_name

14.删除job: delete job -n job_name

15.修改job:update job -n job_name

16.修改link连接:update link -n link_name

17.查看link配置:show link -all

18.查看job配置:show job -all

19.修改job状态:enable/disable job -n job_name

20.修改link状态:enable/disable link -n link_name

发表评论

电子邮件地址不会被公开。 必填项已用*标注