ambari spark2.3.2 集成hive及ES问题集

1、beeline出现org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{set:hiveconf:hive.server2.thrift.resultset.default.fetch.size=1000, use:database=default})

由于sparksql中的hive-cli 等包的版本是1.2需要替换或使用spark/bin下面的beeline或使用spark/bin下面自带的beeline

2、新版本spark不使用hive的源数据表的问题

修改metastore.catalog.default为hive

3、ambari spark thrift server查询hive映射的ES表出现找不到类的情况

在spark2-thrift-sparkconf中spark.sql.hive.metastore.jars添加ES的jar包(注意用:隔开)并添加到/usr/hdp/3.1.0.0-78/spark2/jars/中

4、出现AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Table default.partition_test failed strict managed table checks due to the following reason: Table is marked as a managed table but is not transactional.)

修改hive-site.xml中hive.strict.managed.tables为false(注意是hive中)

5、出现org.apache.spark.sql.AnalysisException: org.apache.hadoop.hive.ql.metadata.

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值