仁爱太阳

文章
4
资源
1
加入时间
3年2月3天

Flume读取数据写入Hive、Mysql

关于flume的简介以及应用在前面已经给大家详细的讲解过,今天主要就如何把flume抓取的数据写入到其它地方。由于时间关系在这里还是使用伪数据和前面所说的一样,主要是配置flume,先说下把读取的数据写入到Hive中。读取数据写入Hive先创建hive表,数据库名就叫test吧,create table tests ( id int , msg string ) partitioned by (continent string, country string, time string)