Presto
x²+(y-√³x²)²=1
你的穷途末路,却带给其他人未知的过往。
展开
-
presto-272启动,单独设置jdk版本
kettle9.2无法使用orc output组件presto-272启动,必须使用jdk8-152+版本presto单独使用数据库vi launcherexport JAVA_HOME=/usr/local/java/jdk1.8.0_171export PATH=$JAVA_HOME:$PATH原创 2022-05-24 23:56:20 · 603 阅读 · 2 评论 -
Could not retrieve transaction read-only status from server
在使用 Presto 创建表的时候,报以下的错误:NoSuchObjectException(message: 数据名: could not retrieve transaction read-only status from server)经排查发现,在创建表的同时,Hive 也在操作这个数据库。导致报这样的错误。...原创 2021-07-02 20:12:55 · 236 阅读 · 0 评论 -
Hive与Presto的基本数据类型对照表
数据类型对照表hivepresto备注tinyinttinyintsmallintsmallintintintegerbigintbigintbooleanbooleanfloatrealdoubledoublestringvarcharbinaryvarbinary从Hive0.8.0开始支持timestamp从Hive0.8.0开始支持decimaldecimal从Hive0.原创 2021-07-02 19:56:04 · 1750 阅读 · 0 评论 -
hive的collect_set在presto中的替代
Hive: collect_set 转为数组并去重,concat_ws 将数组用逗号间隔连接成字符串select user_id , concat_ws(',', collect_set(order_id)) as order_idsfrom tmp.tmp_row_to_colwhere 1 = 1group by user_id ;Presto: array_agg 转为数组,array_distinct 去重,array_join 将数组用逗号间隔连接成字符串select use原创 2021-07-02 19:20:26 · 5581 阅读 · 0 评论 -
Presto报错汇总
一、the transaction did not commit cleanly,failed to execute some metastore delete operationsThat happens because party responsible for deleting table files from HDFS on DROP TABLE is Hive Metastore (not Presto itself). Currently Presto does not support imp原创 2021-06-28 21:11:18 · 1873 阅读 · 5 评论 -
Mysql中的group_concat在Hive和Presto中的替代语法
MySQLselect columnA, group_concat(columnB separator ',')from tablegroup by columnAHiveselect columnA, concat_ws('_', collect_set(columnB))from tablegroup by columnAPrestoselect columnA, array_join(array_agg(columnB), ',')from tabl原创 2021-01-09 09:21:41 · 2123 阅读 · 0 评论 -
Ambari安装presto服务
一、前提环境确保 Ambari 已安装好 HDP2.6确保 Python 服务软链指向的环境变量是系统自带的 Python ,若使用 Anaconda 带的 Python ,后续安装 Presto 会报错 no module named rpm禁用 requiretty ,否则,后续安装 Presto 会报错:sudo:sorry,you must have a tty to run sudo1、禁用 requiretty 方法编辑 /etc/sudoers 文件,注释掉 Defaults r原创 2021-01-07 12:42:12 · 1207 阅读 · 2 评论