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

相关推荐
DCTANT8 小时前
【原创】国产化适配-全量迁移MySQL数据到OpenGauss数据库
java·数据库·spring boot·mysql·opengauss
程序员岳焱9 小时前
Java 与 MySQL 性能优化:MySQL全文检索查询优化实践
后端·mysql·性能优化
喜欢敲代码的程序员10 小时前
SpringBoot+Mybatis+MySQL+Vue+ElementUI前后端分离版:项目搭建(一)
spring boot·mysql·elementui·vue·mybatis
钢铁男儿10 小时前
C# 委托(调用带引用参数的委托)
java·mysql·c#
叁沐11 小时前
MySQL 02 日志系统:一条SQL更新语句是如何执行的?
mysql
RunsenLIu11 小时前
基于Vue.js + Node.js + MySQL实现的图书销售管理系统
vue.js·mysql·node.js
码不停蹄的玄黓11 小时前
MySQL Undo Log 深度解析:事务回滚与MVCC的核心功臣
数据库·mysql·undo log·回滚日志
Arthurmoo12 小时前
Linux系统之MySQL数据库基础
linux·数据库·mysql
好奇的菜鸟12 小时前
如何在Ubuntu上检查MySQL是否启动并放开3306端口
mysql·ubuntu·adb
Tangcan-12 小时前
【MySQL】 内置函数
mysql