![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
眼角眉梢都带笑
这个作者很懒,什么都没留下…
展开
-
hive使用load inpath导入数据时出现NULL一些原因
出现一列null原因:导入的文件编码问题,需要设置成utf-8(可以用记事本更改格式),(如果改了编码,还是出现一列null,就把分隔符由’/t ’ 改成英文逗号’,’)导入的数据全部都是null,原因:create table时需要指定,row formate delimitedfields terminated by ‘,’Stored as textfile...转载 2019-02-21 13:39:03 · 2091 阅读 · 0 评论 -
如何将hive的数据表导出到csv格式的文件中
由于在hive hue web页面上无法全部展示比较大的数据,并且就算导出到excel中也会对服务器产生特别大的压力。所以就需要将hive数据表的数据导出以csv形式的存储!hive -e “select * from dhtest.temp_uv” >> res1.csv将需要的查询数据导出到 res1.csv[hdfs@datanode11 wangchong]$ hive ...转载 2019-02-22 09:43:50 · 10127 阅读 · 0 评论 -
hive笔记1
上传txt文件后,格式转换piconv -f gb2312 -t UTF-8 city_link_info.csv ?> ?city_link_info.csv创建hive表create table city_link(city String,city_type_id String,city_type String)ROW format delimited fields te...原创 2019-02-20 19:37:46 · 111 阅读 · 0 评论