Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql apachespark中的授权_Sql_Apache Spark_Hive_Authorization_Apache Spark Sql - Fatal编程技术网

Sql apachespark中的授权

Sql apachespark中的授权,sql,apache-spark,hive,authorization,apache-spark-sql,Sql,Apache Spark,Hive,Authorization,Apache Spark Sql,我试图通过添加以下属性,在Spark 1.4.0中配置基于SQL标准的授权,这是我为Hive 0.13.1所做的 <property> <name>hive.security.authorization.enabled</name> <value>true</value> <description>enable or disable the Hive client authorization</descri

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

<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.security.authorization.enabled
真的
启用或禁用配置单元客户端授权
hive.security.authorization.manager
org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory
配置单元客户端授权管理器类名。用户定义的授权类应实现接口org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider。
配置单元.security.authenticator.manager
org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator
配置单元客户端身份验证程序管理器类名。用户定义的验证器应实现接口org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider。
hive.users.in.admin.role
hduser
以逗号分隔的用户列表,这些用户担任引导的管理员角色。以后可以在管理员角色中添加更多用户。
hive.server2.enable.doAs
真的
将此属性设置为true将使HiveServer2在用户对其进行调用时执行配置单元操作。

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

Spark目前不支持配置单元授权。参见

“一些规则,(…)、一些角色(…)和一些例外情况”不是一个很好的描述。