123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
- <configuration>
- <property>
- <name>hive.exec.scratchdir</name>
- <value>/home/sxkj/bigdata/apache-hive-2.3.9-bin/tmp</value>
- </property>
- <property>
- <name>hive.metastore.warehouse.dir</name>
- <value>/home/sxkj/bigdata/apache-hive-2.3.9-bin/warehouse</value>
- </property>
- <property>
- <name>hive.querylog.location</name>
- <value>/home/sxkj/bigdata/apache-hive-2.3.9-bin/log</value>
- </property>
- <property>
- <name>hive.server2.enable.doAs</name>
- <value>true</value>
- </property>
- <!-- 配置 MySQL 数据库连接信息 -->
- <property>
- <name>javax.jdo.option.ConnectionURL</name>
- <value>jdbc:mysql://localhost:3306/metastore?createDatabaseIfNotExist=true&characterEncoding=UTF-8&useSSL=false</value>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionDriverName</name>
- <value>com.mysql.jdbc.Driver</value>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionUserName</name>
- <value>hive</value>
- </property>
- <property>
- <name>javax.jdo.option.ConnectionPassword</name>
- <value>hive</value>
- </property>
- <!-- partition -->
- <property>
- <name>hive.exec.dynamic.partition</name>
- <value>true</value>
- <description>Whether or not to allow dynamic partitions in DML/DDL.</description>
- </property>
- <property>
- <name>hive.exec.max.dynamic.partitions</name>
- <value>10000</value>
- <description>Maximum number of dynamic partitions allowed to be created in total.</description>
- </property>
- <property>
- <name>hive.exec.max.dynamic.partitions.pernode</name>
- <value>10000</value>
- <description>Maximum number of dynamic partitions allowed to be created in each mapper/reducer node.</description>
- </property>
- <property>
- <name>hive.exec.dynamic.partition.mode</name>
- <value>nonstrict</value>
- #开启允许所有分区都是动态的,否则必须要有静态分区才能使用。
- <description>
- In strict mode, the user must specify at least one static partition
- in case the user accidentally overwrites all partitions.
- In nonstrict mode all partitions are allowed to be dynamic.
- </description>
- </property>
- <!-- update delete -->
- <property>
- <name>hive.support.concurrency</name>
- <value>true</value>
- </property>
- <property>
- <name>hive.enforce.bucketing</name>
- <value>true</value>
- </property>
- <property>
- <name>hive.txn.manager</name>
- <value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
- </property>
- <property>
- <name>hive.compactor.initiator.on</name>
- <value>true</value>
- </property>
- <property>
- <name>hive.compactor.worker.threads</name>
- <value>1</value>
- </property>
- <property>
- <name>hive.in.test</name>
- <value>false</value>
- </property>
- <!-- header -->
- <property>
- <name>hive.cli.print.header</name>
- <value>true</value>
- <description>Whether to print the names of the columns in query output.</description>
- </property>
- <property>
- <name>hive.metastore.uris</name>
- <value>thrift://192.168.199.27:9083</value>
- </property>
- </configuration>
|