先通过可视化工具链接mysql,在链接的时候用sqoop 用户登录

22.把hive表中数据导入到mysql中

22.把hive表中数据导入到mysql中

 

 

在数据库userdb下新建表

22.把hive表中数据导入到mysql中

22.把hive表中数据导入到mysql中

 

保存,输入表名upflow

 

 22.把hive表中数据导入到mysql中

 

 

现在我们需要把hive里面的数据通过sqoop导入到mysql里面

sqoop export --connect \
 jdbc:mysql://node1:3306/userdb \
 --username sqoop --password sqoop --table upflow --export-dir \
/user/hive/warehouse/mydb2.db/upflow --input-fields-terminated-by ','

 

 

22.把hive表中数据导入到mysql中

 

可以看到mysql的数据

 22.把hive表中数据导入到mysql中

 

相关文章:

  • 2021-11-16
  • 2021-10-21
  • 2021-12-29
  • 2021-11-21
  • 2021-07-16
  • 2021-08-01
  • 2022-12-23
猜你喜欢
  • 2021-10-15
  • 2021-08-14
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案