Skip to content

Commit f272b6b

Browse files
New import command added.
1 parent f4dae0d commit f272b6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hadoop/edw/hdp/sqoop/sqoop_demo.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ sqoop list-tables \
88
--username retail_dba \
99
--password hadoop
1010

11+
sqoop import \
12+
--connect "jdbc:mysql://hiveserver:3306/retail_db" \
13+
--username=retail_dba \
14+
--password=itversity \
15+
--table departments \
16+
--as-textfile \
17+
--target-dir=/user/root/departments
18+
1119
sqoop eval \
1220
--connect "jdbc:mysql://sandbox.hortonworks.com:3306/retail_db" \
1321
--username retail_dba \

0 commit comments

Comments
 (0)