- 博客(0)
- 资源 (6)
- 收藏
- 关注
impala依赖cdh版本的hadoop-hbase-hive相关jar包.zip
ambari集成impala-3.0.0依赖cdh版本的hadoop-hbase-hive相关jar包,查hive外部表(基于hbase)
2021-03-31
tuple_sort.py
tuple中元素值排序,取top3
("测试", (("张三", 5), ("李四", 1), ("王五", 9), ("马六", 6), ("田七", 13), ("赵八", 12)))
结果
('测试', [('田七', 13), ('赵八', 12), ('王五', 9)])
2019-09-12
python脚本中hivesql字段注释格式化
# 此脚本查找以“--”开头的注释
# ----------------------------------------------示例-----------------------------------------
# -- 查找姓名为张三的学生信息
# insert overwrite table student_search
# select
# id, -- id编号
# name, -- 姓名
# age, -- 年龄
# address -- 住址
# from student -- 学生表
# where 1=1
# and name = '张三' -- 姓名为张三
# ---------------------------------------------优化结果-------------------------------------
# -- 查找姓名为张三的学生信息
# insert overwrite table student_search
# select
# id, -- id编号
# name, -- 姓名
# age, -- 年龄
# address -- 住址
# from student -- 学生表
# where 1=1
# and name = '张三' -- 姓名为张三
# ------------------------------------------------------------------------------------------
2019-09-12
presto-jdbc-0.161.jar
Presto支持JDBC driver访问,下载 presto-jdbc-0.161.jar,添加到应用程序的 class path 中,同时也可以通过Maven中心仓库连接
<dependency>
<groupId>com.facebook.presto</groupId>
<artifactId>presto-jdbc</artifactId>
<version>0.161</version>
</dependency>
2018-12-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人