prerequisites
steps
-
install sqoop via brew
$ brew install sqoop
-
homebrew take care of installing all related dependencies
hbase zookeeper
sqoop 5 minutes demo
-
starting client
$ sqoop2-shell
-
configure client to use sqoop server
sqoop:000> set server --host localhost --port 12000 --webapp sqoop
-
verigy connection
sqoop:000> show version --all client version: Sqoop 2.0.0-... server version: ...
-
creating link object
-
check for the registered connector on sqoop server
sqoop:000> show connector
-
generic jdbc connector
persistence id 2sqoop:000> create link -c 2 ... new link was successfully created with validation status OK and persistence id 1
-
hdfs connector
sqoop:000> create link -c 1
-
-
creating job object
-
show link
sqoop:000> show link --all
-
use two link ids to associate the
from
andto
for jobsqoop:000> create job -f 1 -t 2 Creating job for links with from id 1 to id 2 ... New job was successfully created with validation status OK and persistence id 1
-
-
start job (a.k.a data transfer)
-
start a sqoop job
sqoop:000> start job -j 1
-
check running job status
sqoop:000> status job -j 1
-
start a sqoop job and observe job running status
sqoop:000> start job -j 1 -s
-
stop job
sqoop:000> stop job -j 1
-