Advertisement
Guest User

Untitled

a guest
Mar 8th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <configuration>
  4. <property>
  5. <name>hive.server2.enable.impersonation</name>
  6. <value>false</value>
  7. </property>
  8.  
  9. <property>
  10. <name>hive.security.authorization.task.factory</name>
  11. <value>org.apache.sentry.binding.hive.SentryHiveAuthorizationTaskFactoryImpl</value>
  12. </property>
  13.  
  14. <property>
  15. <name>hive.server2.session.hook</name>
  16. <value>org.apache.sentry.binding.hive.HiveAuthzBindingSessionHook</value>
  17. </property>
  18.  
  19. <property>
  20. <name>hive.sentry.conf.url</name>
  21. <value>file:///etc/sentry/conf.dist/sentry-site.xml</value>
  22. </property>
  23.  
  24. <property>
  25. <name>hive.security.authorization.task.factory</name>
  26. <value>org.apache.sentry.binding.hive.SentryHiveAuthorizationTaskFactoryImpl</value>
  27. </property>
  28.  
  29. <property>
  30. <name>hive.metastore.filter.hook</name>
  31. <value>org.apache.sentry.binding.metastore.SentryMetaStoreFilterHook</value>
  32. </property>
  33.  
  34. <property>
  35. <name>hive.metastore.pre.event.listeners</name>
  36. <value>org.apache.sentry.binding.metastore.MetastoreAuthzBinding</value>
  37. <description>list of comma separated listeners for metastore events.</description>
  38. </property>
  39.  
  40. <property>
  41. <name>hive.metastore.event.listeners</name>
  42. <value>org.apache.sentry.binding.metastore.SentryMetastorePostEventListener</value>
  43. <description>list of comma separated listeners for metastore, post events.</description>
  44. </property>
  45.  
  46. <property>
  47. <name>hive.metastore.warehouse.dir</name>
  48. <value>/user/hive/warehouse</value>
  49. </property>
  50.  
  51. <property>
  52. <name>javax.jdo.option.ConnectionURL</name>
  53. <value>jdbc:mysql://<server hostname>/metastore</value>
  54. <description>the URL of the MySQL database</description>
  55. </property>
  56.  
  57. <property>
  58. <name>javax.jdo.option.ConnectionDriverName</name>
  59. <value>com.mysql.jdbc.Driver</value>
  60. </property>
  61.  
  62. <property>
  63. <name>javax.jdo.option.ConnectionUserName</name>
  64. <value><hive db username></value>
  65. </property>
  66.  
  67. <property>
  68. <name>javax.jdo.option.ConnectionPassword</name>
  69. <value><hive db password></value>
  70. </property>
  71.  
  72. <property>
  73. <name>datanucleus.autoCreateSchema</name>
  74. <value>false</value>
  75. </property>
  76.  
  77. <property>
  78. <name>datanucleus.fixedDatastore</name>
  79. <value>true</value>
  80. </property>
  81.  
  82. <property>
  83. <name>datanucleus.autoStartMechanism</name>
  84. <value>SchemaTable</value>
  85. </property>
  86.  
  87. <property>
  88. <name>hive.metastore.uris</name>
  89. <value>thrift://<server hostname>:9083</value>
  90. <description>IP address (or fully-qualified domain name) and port of the metastore host</description>
  91. </property>
  92.  
  93. <property>
  94. <name>hive.metastore.schema.verification</name>
  95. <value>true</value>
  96. </property>
  97. </configuration>
  98.  
  99. <?xml version="1.0"?>
  100. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  101. <configuration>
  102. <property>
  103. <name>sentry.service.admin.group</name>
  104. <value>vagrant,hive,hdfs,spark</value>
  105. </property>
  106. <property>
  107. <name>sentry.service.allow.connect</name>
  108. <value>vagrant,hdfs,hive,spark</value>
  109. </property>
  110. <property>
  111. <name>sentry.store.group.mapping</name>
  112. <value>org.apache.sentry.provider.file.LocalGroupMappingService</value>
  113. </property>
  114. <!-- Config properties to use the mysql DB -->
  115. <property>
  116. <name>sentry.store.jdbc.url</name>
  117. <value>jdbc:mysql://<server hostname>/sentry_db</value>
  118. </property>
  119. <property>
  120. <name>sentry.store.jdbc.driver</name>
  121. <value>com.mysql.jdbc.Driver</value>
  122. </property>
  123. <property>
  124. <name>sentry.store.jdbc.user</name>
  125. <value><sentry db user></value>
  126. </property>
  127. <property>
  128. <name>sentry.store.jdbc.password</name>
  129. <value><sentry db password></value>
  130. </property>
  131. <property>
  132. <name>sentry.service.client.server.rpc-port</name>
  133. <value>3893</value>
  134. </property>
  135. <property>
  136. <name>sentry.service.client.server.rpc-address</name>
  137. <value><server hostname></value>
  138. </property>
  139. <property>
  140. <name>sentry.service.client.server.rpc-connection-timeout</name>
  141. <value>20000</value>
  142. </property>
  143. <property>
  144. <name>sentry.hive.provider.backend</name>
  145. <value>org.apache.sentry.provider.db.SimpleDBProviderBackend</value>
  146. </property>
  147. <!-- Allow Sentry to work with weaker authentication mechanisms -->
  148. <property>
  149. <name>sentry.hive.testing.mode</name>
  150. <value>true</value>
  151. </property>
  152. <property>
  153. <name>sentry.service.security.mode</name>
  154. <value>none</value>
  155. </property>
  156. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement