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

相关推荐
殷紫川1 小时前
击穿 InnoDB 事务隔离级别:RC 与 RR 的底层实现、锁机制、MVCC 与幻读终极拆解
mysql
殷紫川1 小时前
击穿 MySQL InnoDB MVCC 底层:从 undo log、Read View 到隔离级别的全链路深度拆解
mysql
Full Stack Developme1 小时前
MySQL 触发器 存储过程 介绍
数据库·mysql
杨云龙UP2 小时前
MySQL慢查询日志暴涨导致磁盘告警:slow query log膨胀至397G的生产故障排查:清理、参数优化
linux·运维·服务器·数据库·mysql
Bat U2 小时前
MySQL数据库|视图+索引
数据库·mysql
想唱rap3 小时前
线程之条件变量和生产消费模型
java·服务器·开发语言·数据库·mysql·ubuntu
RInk7oBjo3 小时前
MySQL的编译安装
数据库·mysql·adb
java资料站3 小时前
MySQL 增量同步脚本
android·数据库·mysql
殷紫川3 小时前
InnoDB 索引性能天花板:聚簇 & 二级索引存储本质拆解,覆盖索引零回表优化全攻略
mysql
殷紫川3 小时前
MySQL IN 里塞 10000 个值?90% 开发者都踩过的坑,底层原理 + 全场景解决方案一次讲透
mysql