sqoop list-databases --connect jdbc:mysql://192.168.153.141:3306 --username root --password root
sqoop list-tables --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root
sqoop create-hive-table --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root --table teacher --hive-table teacher1
[root@cp145 ~]# sqoop import --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root --table score --target-dir /tmp/mysql_test/score --fields-terminated-by '\t' -m 1
sqoop import --connect jdbc:mysql://192.168.153.141:3306/kb21 --username root --password root --table account --target-dir /tmp/kb21/account --fields-terminated-by '\t' -m 2
sqoop import --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root --table score --where "s_id='1'" --target-dir /tmp/mysql_test/sid1 -m 1
sqoop import --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root --target-dir /tmp/mysql_test/scquery --query 'select * from score where $CONDITIONS and c_id="2" and s_score>80 ' --fields-terminated-by '\t' -m 1
sqoop import --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root --table score --hive-import -m 1
sqoop import --connect jdbc:mysql://192.168.153.141:3306/mysql_test --username root --password root --table score --hive-import --hive-database kb21 -m 1