hive-site.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <configuration>
  4. <property>
  5. <name>hive.exec.scratchdir</name>
  6. <value>/home/sxkj/bigdata/apache-hive-2.3.9-bin/tmp</value>
  7. </property>
  8. <property>
  9. <name>hive.metastore.warehouse.dir</name>
  10. <value>/home/sxkj/bigdata/apache-hive-2.3.9-bin/warehouse</value>
  11. </property>
  12. <property>
  13. <name>hive.querylog.location</name>
  14. <value>/home/sxkj/bigdata/apache-hive-2.3.9-bin/log</value>
  15. </property>
  16. <property>
  17. <name>hive.server2.enable.doAs</name>
  18. <value>true</value>
  19. </property>
  20. <!-- 配置 MySQL 数据库连接信息 -->
  21. <property>
  22. <name>javax.jdo.option.ConnectionURL</name>
  23. <value>jdbc:mysql://localhost:3306/metastore?createDatabaseIfNotExist=true&amp;characterEncoding=UTF-8&amp;useSSL=false</value>
  24. </property>
  25. <property>
  26. <name>javax.jdo.option.ConnectionDriverName</name>
  27. <value>com.mysql.jdbc.Driver</value>
  28. </property>
  29. <property>
  30. <name>javax.jdo.option.ConnectionUserName</name>
  31. <value>hive</value>
  32. </property>
  33. <property>
  34. <name>javax.jdo.option.ConnectionPassword</name>
  35. <value>hive</value>
  36. </property>
  37. <!-- partition -->
  38. <property>
  39. <name>hive.exec.dynamic.partition</name>
  40. <value>true</value>
  41. <description>Whether or not to allow dynamic partitions in DML/DDL.</description>
  42. </property>
  43. <property>
  44. <name>hive.exec.max.dynamic.partitions</name>
  45. <value>10000</value>
  46. <description>Maximum number of dynamic partitions allowed to be created in total.</description>
  47. </property>
  48. <property>
  49. <name>hive.exec.max.dynamic.partitions.pernode</name>
  50. <value>10000</value>
  51. <description>Maximum number of dynamic partitions allowed to be created in each mapper/reducer node.</description>
  52. </property>
  53. <property>
  54. <name>hive.exec.dynamic.partition.mode</name>
  55. <value>nonstrict</value>
  56. #开启允许所有分区都是动态的,否则必须要有静态分区才能使用。
  57. <description>
  58. In strict mode, the user must specify at least one static partition
  59. in case the user accidentally overwrites all partitions.
  60. In nonstrict mode all partitions are allowed to be dynamic.
  61. </description>
  62. </property>
  63. <!-- update delete -->
  64. <property>
  65. <name>hive.support.concurrency</name>
  66. <value>true</value>
  67. </property>
  68. <property>
  69. <name>hive.enforce.bucketing</name>
  70. <value>true</value>
  71. </property>
  72. <property>
  73. <name>hive.txn.manager</name>
  74. <value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
  75. </property>
  76. <property>
  77. <name>hive.compactor.initiator.on</name>
  78. <value>true</value>
  79. </property>
  80. <property>
  81. <name>hive.compactor.worker.threads</name>
  82. <value>1</value>
  83. </property>
  84. <property>
  85. <name>hive.in.test</name>
  86. <value>false</value>
  87. </property>
  88. <!-- header -->
  89. <property>
  90. <name>hive.cli.print.header</name>
  91. <value>true</value>
  92. <description>Whether to print the names of the columns in query output.</description>
  93. </property>
  94. <property>
  95. <name>hive.metastore.uris</name>
  96. <value>thrift://192.168.199.27:9083</value>
  97. </property>
  98. </configuration>