大数据分析
gghwcf
这个作者很懒,什么都没留下…
展开
-
HIVE使用
1.创建表 --txt create table olt_loid(AREA_ID string,CITY string,LOID string,OLT_IP string,PON_ID string,ONU_ID string) row format delimited fields terminated by ',' stored as textfile; create table...原创 2018-08-27 10:22:16 · 188 阅读 · 0 评论 -
sqoop 从HIVE导出表到MYSQL
根据HIVE的分割符来确定是用/001还是/t还是',',hive默认的分割符是/001. sqoop export --connect jdbc:mysql://localhost:3306/test --username xxx --password xxxx --table result_oltuserflowdiscard --export-dir /user/hive/warehou...原创 2018-08-27 10:30:04 · 796 阅读 · 0 评论