![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
Elvis_hui
寒江孤影,江湖故人,相逢何必曾相识!
展开
-
python连接hive--Pyhive
Pyhive安装包pip install saslpip install thriftpip install thrift-saslpip install PyHive# 安装对应的包 sasl可能会报错#下载sasl文件sasl下载执行语句第一种from pyhive import hivedef select_pyhive(sql): # 创建hive连接 conn = hive.Connection(host='##', port=##, username=原创 2021-09-30 10:05:44 · 643 阅读 · 0 评论 -
hive中基本的创建相关语句
hive 基本创建语句强制删除数据库,包含库下面的表一起删除drop database myhive cascade; 创建一张表create table if not exists stu4(id int,name string) row format delimited fields terminated by '\t';查看表的详细信息desc formatted stu;添加数据load data local '/root/hivedata/stu.txt' into t原创 2020-11-12 09:53:18 · 241 阅读 · 0 评论