---------------------mysql to hdfs-------------------------------- [root@mihaoyu151 ~]# sqoop import > --connect jdbc:mysql://mihaoyu151:3306/mybatisdb > --username root > --password root > --table student > --delete-target-dir > --target-dir /sqoop/demo1 > --m 1 ----------------------------------------------------- [root@mihaoyu151 ~]# sqoop import > --connect jdbc:mysql://mihaoyu151:3306/mybatisdb > --username root > --password root > --table student > --delete-target-dir > --target-dir /sqoop/demo2 > --split-by classid > --m 2 ----------------------------------------------------- [root@mihaoyu151 ~]# sqoop import > --connect jdbc:mysql://mihaoyu151:3306/mybatisdb > --username root > --password root > --table student > --delete-target-dir > --target-dir /sqoop/demo2 > --split-by classid > --fields-terminated-by 't' > --m 2
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)