hive無法執行帶where語句的SQL

2021-09-20 04:29:04 字數 440 閱讀 1735

當在偽分布式集群上,搭建部署了hive以後,發現hive無法執行帶where語句的sql,那hive將無法使用,下面介紹解決該問題的方案!

hive連線執行sql,可以執行帶where語句的sql,但是採用beeline連線,無法執行帶where的sql語句,報could not initialize calss org.apache.hadoop.hive.ql.optimizer.calcite.translator.sqlfunctionconverter

解決方案:

在/etc/profile中加入配置:

export hive_aux_jars_path=/opt/hive-2.1.1/lib

sql語句中的where條件執行順序

語句1 select from work order list where head corp id 1 and work order state in 1,2 and receiving id is null or receiving id 27 語句2 select from work orde...

Shell指令碼執行Hive語句

一 環境 1 hadoop 0.20.2 2 hive 0.5 3 作業系統 linux m131 2.6.9 78.8axs2smp 1 smp tue dec 16 02 42 55 est 2008 x86 64 x86 64 x86 64 gnu linux 二 步驟 1 直接貼上指令碼吧 ...

Hive執行SQL語句報錯

用hive執行以下sql語句 select count id from test 控制台輸出以下錯誤資訊 error during job,obtaining debugging information.failed execution error,return code 2 from org.ap...