Hive configuration
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 scratchdir: ${hive.exec.scratchdir} / 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