1、使用sqoop导入mysql数据到hive中,并指定表名,运行如下命令
./sqoop import --hive-import --connect jdbc:mysql://10.25.134.142:3306/scott --username root --P --table emp --hive-table emp1;./sqoop
1、使用sqoop导入mysql数据到hive中,并指定表名,运行如下命令
./sqoop import --hive-import --connect jdbc:mysql://10.25.134.142:3306/scott --username root --P --table emp --hive-table emp1;./sqoop