千家信息网最后更新 2025年01月25日hive配置
vi ./bin/hive-config.sh
export JAVA_HOME=/usr/local/jdk/jdk1.8.0
export HADOOP_HOME=/usr/local/hadoop
export HIVE_HOME=/usr/local/hive/apache-hive-1.2.1
cp hive-default.xml.template hive-site.xml
hive.metastore.warehouse.dir
/usr/local/hive/apache-hive-1.2.1/warehouse
location of default database for the warehouse
hive.exec.scratchdir
/usr/local/hive/apache-hive-1.2.1/tmp
HDFS root scratch dir for Hive jobs which gets created with write all (733) permission. For each connecting user, an HDFS scratch dir: ${hive.exec.scratchdir}/<username> is created, with ${hive.scratch.dir.permission}.
hive.exec.local.scratchdir
/usr/local/hive/apache-hive-1.2.1/tmp
Local scratch space for Hive jobs
hive.downloaded.resources.dir
/usr/local/hive/apache-hive-1.2.1/resources
Temporary local directory for added resources in the remote file system.
cp hive-log4j.properties.template hive-log4j.properties
vi hive-log4j.properties
#log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter
log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter