Python全系列 教程
3567个小节阅读:5929.7k
目录
鸿蒙应用开发
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
MySQL创建数据表
xxxxxxxxxx
create table if not exists tm_brand_item_rank(
brand_id int comment '品牌id',
item_id int comment '商品id',
sale_num int comment '销售数量',
rank int comment '销量排名',
date_day varchar(10) comment '添加日期'
);
编写数据从Hive到MySQL同步脚步
xxxxxxxxxx
[root@node3 ~]# vim export_tm_brand_item_rank.txt
xxxxxxxxxx
export
--connect
jdbc:mysql://node1:3306/taobao
--username
root
--password
123456
-m
1
--table
tm_brand_item_rank
--columns
brand_id,item_id,sale_num,rank,date_day
--export-dir
/user/hive_remote/warehouse/taobao.db/tm_brand_item_rank
执行测试:
xxxxxxxxxx
[root@node3 ~]# sqoop --options-file export_tm_brand_item_rank.txt