12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0"?>
- <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
- <configuration>
- <property>
- <name>hive.metastore.authorization.storage.checks</name>
- <value>true</value>
- <description>被设置成true时,Hive将会阻止没有权限的用户进行表删除操作。默认值是false</description>
- </property>
- <property>
- <name>hive.security.authorization.enabled</name>
- <value>true</value>
- <description>开启Hive的身份认证功能,默认是false</description>
- </property>
- <property>
- <name>hive.security.authorization.createtable.owner.grants</name>
- <value>ALL</value>
- <!--
- <value>select,drop</value>
- <value>irwin,hadoop:select;tom:create</value>
- -->
- <description>默认是NULL,建议将其设置成ALL,让用户能够访问自己创建的表。</description>
- </property>
- <property>
- <name>hive.server2.authentication</name>
- <value>CUSTOM</value>
- <description>自定义远程连接用户名和密码</description>
- </property>
- <property>
- <name>hive.server2.custom.authentication.class</name>
- <value>com.primeton.dgs.extractor.adapter.hive.CustomPasswdAuthenticator</value>
- <description>指定解析jar包</description>
- </property>
- <property>
- <name>hive.jdbc_passwd.auth.dataware</name>
- <value>dataware</value>
- <description>设置用户名和密码</description>
- </property>
- <property>
- <name>hive.jdbc_passwd.auth.hiveread</name>
- <value>hiveread</value>
- </property>
- </configuration>
|