修改log4j.propertis 指定日志打印位置
hive.log.dir=/export/logs/hive/
hive.log.file=hive.log
hive.cli.print.header true
hive.cli.print.current.db true
hive.metastore.warehouse.dir /user/hive/warehouse
hive.exec.parallel true
hive.querylog.location /export/logs/hive
hive.metastore.ds.retry.attempts 3
hive.zookeeper.quorum hiveserver2的表锁管理器需要依赖zk
hive.exec.mode.local.auto true
<property>
<name>hive.server2.session.hook</name>
<value>com.weibo.hamza.core.hook.HamzaSessionHook</value>
</property>
<property>
<name>hive.semantic.analyzer.hook</name>
<value>com.weibo.hamza.core.hook.HamzaAnalyzerHook</value>
</property>
<property>
<name>hive.exec.post.hooks</name>
<value>com.weibo.hamza.core.hook.HamzaExecPostHook</value>
</property>
hdfs /tmp/hive-${user.name}
local /tmp/${user.name}
hive.log.dir=/export/logs/hive/
hive.log.file=hive.log
hive.cli.print.header true
hive.cli.print.current.db true
hive.metastore.warehouse.dir /user/hive/warehouse
hive.exec.parallel true
hive.querylog.location /export/logs/hive
hive.metastore.ds.retry.attempts 3
hive.zookeeper.quorum hiveserver2的表锁管理器需要依赖zk
hive.exec.mode.local.auto true
<property>
<name>hive.server2.session.hook</name>
<value>com.weibo.hamza.core.hook.HamzaSessionHook</value>
</property>
<property>
<name>hive.semantic.analyzer.hook</name>
<value>com.weibo.hamza.core.hook.HamzaAnalyzerHook</value>
</property>
<property>
<name>hive.exec.post.hooks</name>
<value>com.weibo.hamza.core.hook.HamzaExecPostHook</value>
</property>
hdfs /tmp/hive-${user.name}
local /tmp/${user.name}