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

相关推荐
呆呆小孩5 小时前
零基础学 MySQL(上):从建库建表到增删改查,一篇搭好 SQL 基础
android·sql·mysql
我不会插花弄玉7 小时前
2.库的操作【由浅入深-MySQL】
数据库·mysql
King of fraud9 小时前
Linux 下 MySQL 基础操作:创建用户、数据库与权限管理实战
linux·数据库·mysql
这个DBA有点耶10 小时前
Redis大key“根治”指南:拆分策略与数据结构选型
数据库·mysql·架构
__zRainy__13 小时前
Node系列 · ORM:mysql 驱动程序
数据库·后端·mysql·node.js·orm
痕迹运维13 小时前
MySQL8 Docker容器化部署之C86架构(海光CPU)
mysql
程序员夏洛13 小时前
MySQL 中如果发生死锁应该如何解决?
数据库·mysql
破土士V14 小时前
【MySQL基础知识】数据库约束&联合查询&索引
数据库·mysql·索引·联合查询·数据库约束
像风一样自由202014 小时前
11.PostgreSQ、-MySQL与MongoDB-AI应用如何选择数据库
数据库·人工智能·mysql·mongodb·大模型·rag·智能体
夏之小星星14 小时前
【找回mysql被删除数据】
数据库·sql·mysql