Advertisement
Guest User

Untitled

a guest
Jan 12th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  2.  
  3. <configuration>
  4.  
  5. <!-- Hive Configuration can either be stored in this file or in the hadoop configuration files -->
  6. <!-- that are implied by Hadoop setup variables. -->
  7. <!-- Aside from Hadoop setup variables - this file is provided as a convenience so that Hive -->
  8. <!-- users do not have to edit hadoop configuration files (that may be managed as a centralized -->
  9. <!-- resource). -->
  10.  
  11. <!-- Hive Execution Parameters -->
  12. <property>
  13. <name>javax.jdo.option.ConnectionURL</name>
  14. <value>jdbc:mysql://mysql-hive-jq.int.yihaodian.com:3306/hive</value>
  15. <description>JDBC connect string for a JDBC metastore</description>
  16. </property>
  17. <property>
  18. <name>javax.jdo.option.ConnectionDriverName</name>
  19. <value>com.mysql.jdbc.Driver</value>
  20. <description>Driver class name for a JDBC metastore</description>
  21. </property>
  22. <property>
  23. <name>javax.jdo.option.ConnectionUserName</name>
  24. <value>search_user</value>
  25. <description>username to use against metastore database</description>
  26. </property>
  27. <property>
  28. <name>javax.jdo.option.ConnectionPassword</name>
  29. <value>search_user</value>
  30. <description>password to use against metastore database</description>
  31. </property>
  32. <!--<property>
  33. <name>hive.exec.scratchdir</name>
  34. <value>/user/lujian</value>
  35. </property>-->
  36.  
  37. <property>
  38. <name>mapreduce.map.output.compress.codec</name>
  39. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  40. </property>
  41. <property>
  42. <name>mapreduce.map.output.compress</name>
  43. <value>true</value>
  44. </property>
  45. <!-- <property>
  46. <name>mapreduce.framework.name</name>
  47. <value>yarn-tez</value>
  48. </property>-->
  49. <property>
  50. <name>mapreduce.map.cpu.vcores</name>
  51. <value>1</value>
  52. </property>
  53. <!--<property>
  54. <name>hive.metastore.uris</name>
  55. <value>thrift://yhd-jqhadoop39.int.yihaodian.com:9083</value>
  56. </property>-->
  57. <property>
  58. <name>hive.insert.into.multilevel.dirs</name>
  59. <value>true</value>
  60. </property>
  61. <property>
  62. <name>hive.exec.stagingdir</name>
  63. <value>/user/hive/warehouse/staging/.hive-staging</value>
  64. </property>
  65. <!-- serutiy -->
  66. <property>
  67. <name>hive.server2.enable.doAs</name>
  68. <value>true</value>
  69. </property>
  70. <property>
  71. <name>hive.users.in.admin.role</name>
  72. <value>admin</value>
  73. </property>
  74. <property>
  75. <name>hive.security.metastore.authorization.manager</name>
  76. <value>org.apache.hadoop.hive.ql.security.authorization.MetaStoreAuthzAPIAuthorizerEmbedOnly,org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider</value>
  77. </property>
  78. <property>
  79. <name>hive.security.authorization.manager</name>
  80. <value>org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdConfOnlyAuthorizerFactory</value>
  81. </property>
  82. <property>
  83. <name>hive.server2.authentication</name>
  84. <value>CUSTOM</value>
  85. </property>
  86.  
  87. <property>
  88. <name>hive.server2.custom.authentication.class</name>
  89. <value>com.yhd.hive.auth.YhdPasswdAuthenticationProvider</value>
  90. </property>
  91.  
  92. <property>
  93. <name>hive.hs2.authfile</name>
  94. <value>/usr/auth.properties</value>
  95. </property>
  96. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement