FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(me

当Sentry在无Kerberos环境下运行时,可能会出现Execution Error,返回代码1。解决办法是在测试模式下配置Sentry,通过设置sentry.hive.testing.mode属性并与Hadoop管理员确认配置。如果需要,可以在HiveServer2和Hive metastore的sentry-site.xml中添加此属性,并重启服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Cause
​This error indicates an error in the configuration of the Cluster.

This would typically happen in a cluster that has Sentry enabled, but currently has Kerberos disabled.
Solution
If Sentry is used in an environment where Kerberos is disabled, Sentry needs to be configured in testing mode.

Once Sentry is configured in non-testing mode, it mandates Kerberos to be configured as well.

The property that controls the Sentry Testing mode is: sentry.hive.testing.mode - review this with your Hadoop Administrator.

https://kb.informatica.com/solution/23/pages/56/432006.aspx

If you don’t find the configuration by default you can use “Advanced Configuration Snippet” as follows

Also the document says “Add the following property to the HiveServer2 and Hive metastore’s sentry-site.xml”. So you can set your property in below locations and make sure to restart the services

  1. CM -> Hive -> Configuration -> Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml

  2. CM -> Sentry -> Configuration -> Sentry Service Advanced Configuration Snippet (Safety Valve) for sentry-site.xml

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值