Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. Vanilla dataproc (no cloudsql configured)
  2.  
  3. hive-site.xml
  4.  
  5. root@cluster-3ec2-m:/# cat ./etc/hive/conf.dist/hive-site.xml
  6. <?xml version="1.0" ?>
  7. <!--
  8. Licensed to the Apache Software Foundation (ASF) under one or more
  9. contributor license agreements. See the NOTICE file distributed with
  10. this work for additional information regarding copyright ownership.
  11. The ASF licenses this file to You under the Apache License, Version 2.0
  12. (the "License"); you may not use this file except in compliance with
  13. the License. You may obtain a copy of the License at
  14. http://www.apache.org/licenses/LICENSE-2.0
  15. Unless required by applicable law or agreed to in writing, software
  16. distributed under the License is distributed on an "AS IS" BASIS,
  17. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. See the License for the specific language governing permissions and
  19. limitations under the License.
  20. -->
  21. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  22. <configuration>
  23. <!-- Hive Configuration can either be stored in this file or in the hadoop configuration files -->
  24. <!-- that are implied by Hadoop setup variables. -->
  25. <!-- Aside from Hadoop setup variables - this file is provided as a convenience so that Hive -->
  26. <!-- users do not have to edit hadoop configuration files (that may be managed as a centralized -->
  27. <!-- resource). -->
  28. <!-- Hive Execution Parameters -->
  29. <property>
  30. <name>javax.jdo.option.ConnectionURL</name>
  31. <!--
  32. Will be clobbered at startup by master 0.
  33. Required to run schema tool during image build.
  34. -->
  35. <value>jdbc:mysql://cluster-3ec2-m/metastore</value>
  36. <description>the URL of the MySQL database</description>
  37. </property>
  38. <property>
  39. <name>javax.jdo.option.ConnectionDriverName</name>
  40. <value>com.mysql.jdbc.Driver</value>
  41. </property>
  42. <property>
  43. <name>hive.hwi.war.file</name>
  44. <value>/usr/lib/hive/lib/hive-hwi-2.3.2.war</value>
  45. <description>
  46. This is the WAR file with the jsp content for Hive Web Interface
  47. </description>
  48. </property>
  49. <property>
  50. <name>javax.jdo.option.ConnectionUserName</name>
  51. <value>hive</value>
  52. </property>
  53. <property>
  54. <name>datanucleus.fixedDatastore</name>
  55. <value>true</value>
  56. </property>
  57. <property>
  58. <name>javax.jdo.option.ConnectionPassword</name>
  59. <value>hive-password</value>
  60. </property>
  61. <property>
  62. <name>datanucleus.autoStartMechanism</name>
  63. <value>SchemaTable</value>
  64. </property>
  65. <property>
  66. <!--
  67. Crank up low-level retries from default value of 3. Hive 2.* will have
  68. metastore connection attempts fast-fail instead of hanging between
  69. "Starting hive metastore" and "Started the new metastore...", and
  70. these retries happen with only 1 second between attempts. Metastore
  71. startup appears to take ~5 seconds; in the rare case of startup
  72. longer than 60 seconds, the secondary retry loop waits 1 minute between
  73. attempts.
  74. -->
  75. <name>hive.metastore.connect.retries</name>
  76. <value>60</value>
  77. </property>
  78. <property>
  79. <name>datanucleus.autoCreateSchema</name>
  80. <value>false</value>
  81. </property>
  82. <property>
  83. <name>hive.execution.engine</name>
  84. <value>tez</value>
  85. </property>
  86. <property>
  87. <name>hive.metastore.uris</name>
  88. <value>thrift://cluster-3ec2-m:9083</value>
  89. </property>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement