【问题标题】:Authorization in Apache SparkApache Spark 中的授权
【发布时间】:2015-12-07 09:59:23
【问题描述】:

我正在尝试通过添加以下属性在 Spark 1.4.0 中配置我为 Hive 0.13.1 所做的基于 SQL 标准的授权。

<property>
  <name>hive.security.authorization.enabled</name>
  <value>true</value>
  <description>enable or disable the Hive client authorization</description>
</property>

<property>
  <name>hive.security.authorization.manager</name>
  <value>org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory</value>
  <description>The Hive client authorization manager class name. The user defined authorization class should implement interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.</description>
</property>


<property>
  <name>hive.security.authenticator.manager</name>
  <value>org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator</value>
  <description>hive client authenticator manager class name. The user defined authenticator should implement interface org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider.</description>
</property>

<property>
  <name>hive.users.in.admin.role</name>
  <value>hduser</value>
  <description>Comma separated list of users who are in admin role forbootstrapping. More users can be added in ADMIN role later.</description>
</property>

<property>
  <name>hive.server2.enable.doAs</name>
  <value>true</value>
  <description>Setting this property to true will have HiveServer2 execute Hive operations as the user making the calls to it.</description>
</property>

在 Hive 中它很好,但在 Spark 中它不能正常工作意味着当我尝试为表设置一些规则或尝试创建一些角色时,返回一些异常。

【问题讨论】:

  • “一些规则,(...),一些角色(...)和一些例外”不是一个很好的描述。

标签: sql apache-spark hive authorization apache-spark-sql


【解决方案1】:

Spark 目前不支持 Hive 授权。见https://issues.apache.org/jira/browse/SPARK-12008

【讨论】:

    猜你喜欢
    • 2021-03-06
    • 1970-01-01
    • 1970-01-01
    • 2021-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-22
    • 2021-06-23
    相关资源
    最近更新 更多