- 导入数据到 HIVE
sqoop import \ --connect jdbc:mysql://192.168.244.100:3306/sqooptest \ --username root \ --password root1234% \ --table person \ --num-mappers 1 \ --hive-import \ --fields-terminated-by "," \ --hive-overwrite \ --hive-table person_hive
- hive/hdfs 导入数据到 mysql
sqoop export \ --connect jdbc:mysql://192.168.244.100:3306/sqooptest \ --username root \ --password root1234% \ --table person2 \ --export-dir /user/hive/warehouse/person_hive \ --m 1
上一篇
Hadoop-Sqoop-导入数据到HBase
2023-04-23
下一篇
Hadoop-Sqoop-Mysql导入HDFS
2023-04-23