hive-site.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <configuration>
  4. <property>
  5. <name>hive.metastore.authorization.storage.checks</name>
  6. <value>true</value>
  7. <description>被设置成true时,Hive将会阻止没有权限的用户进行表删除操作。默认值是false</description>
  8. </property>
  9. <property>
  10. <name>hive.security.authorization.enabled</name>
  11. <value>true</value>
  12. <description>开启Hive的身份认证功能,默认是false</description>
  13. </property>
  14. <property>
  15. <name>hive.security.authorization.createtable.owner.grants</name>
  16. <value>ALL</value>
  17. <!--
  18. <value>select,drop</value>
  19. <value>irwin,hadoop:select;tom:create</value>
  20. -->
  21. <description>默认是NULL,建议将其设置成ALL,让用户能够访问自己创建的表。</description>
  22. </property>
  23. <property>
  24. <name>hive.server2.authentication</name>
  25. <value>CUSTOM</value>
  26. <description>自定义远程连接用户名和密码</description>
  27. </property>
  28. <property>
  29. <name>hive.server2.custom.authentication.class</name>
  30. <value>com.primeton.dgs.extractor.adapter.hive.CustomPasswdAuthenticator</value>
  31. <description>指定解析jar包</description>
  32. </property>
  33. <property>
  34. <name>hive.jdbc_passwd.auth.dataware</name>
  35. <value>dataware</value>
  36. <description>设置用户名和密码</description>
  37. </property>
  38. <property>
  39. <name>hive.jdbc_passwd.auth.hiveread</name>
  40. <value>hiveread</value>
  41. </property>
  42. </configuration>