sqoop同步命令从mysql同步到hive

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --query 'SELECT id,name,age,address,telphone,qq,weixin,email,sex,birthday,account FROM user WHERE $CONDITIONS' --fields-terminated-by '\t' --null-string '**' --target-dir /user/hive/warehouse/youfanshop.db/user --hive-table youfanshop.user --m 1 --hive-import

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --table producttype --fields-terminated-by '\t' --null-string '**' --target-dir /user/hive/warehouse/youfanshop.db/producttype --hive-table youfanshop.producttype --m 1 --hive-import

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --table productdetail --fields-terminated-by '\t' --null-string '**' --target-dir /user/hive/warehouse/youfanshop.db/productdetail --hive-table youfanshop.productdetail --m 1 --hive-import

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --table product --fields-terminated-by '\t' --null-string '**' --m 1 --target-dir /user/hive/warehouse/youfanshop.db/product --hive-table youfanshop.product --hive-import

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --table ordermain --fields-terminated-by '\t' --null-string '**' --m 1 --target-dir /user/hive/warehouse/youfanshop.db/ordermain --hive-table youfanshop.ordermain --hive-import

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --table orderdetail --fields-terminated-by '\t' --null-string '**' --m 1 --target-dir /user/hive/warehouse/youfanshop.db/orderdetail --hive-table youfanshop.orderdetail --hive-import

sqoop import --connect jdbc:mysql://192.168.253.142:8066/youfanshop --username mycat --password 123456 --query 'SELECT id ,merchantname ,merchantshopname ,merchantaccount ,mechantscope FROM mechant WHERE $CONDITIONS' --fields-terminated-by '\t' --null-string '**' --m 1 --target-dir /user/hive/warehouse/youfanshop.db/mechant --hive-table youfanshop.mechant --hive-import

相关推荐
ヾChen6 小时前
MySQL——增删改查操作
数据库·sql·物联网·学习·mysql
0和1的舞者6 小时前
《MySQL数据库进阶(九):数据库备份与恢复(二)》
数据库·mysql·oracle·程序员·策略模式·备份与恢复
努力学习的小廉7 小时前
初识MYSQL —— 事务
android·mysql·adb
爱刘温柔的小猪7 小时前
企业级混合存储架构:MySQL + MinIO 混合存储实践
数据库·mysql·架构·对象存储
诗9趁年华10 小时前
Cache-Aside模式下Redis与MySQL数据一致性问题分析
数据库·redis·mysql
一般社员14 小时前
Windows导入大型sql文件到mysql
windows·sql·mysql
。puppy16 小时前
MySQL 库表操作全解析:从登录到权限管理的实战指南
mysql
谅望者21 小时前
在 macOS 上使用 Homebrew 安装 MySQL 8.0 完整指南
数据库·sql·mysql
程序员卷卷狗1 天前
MySQL 页结构与数据存储原理全解析》
数据库·mysql