- 下载hive hive.apache.org
- /etc/profile
export HADOOP_HOME=/usr/local/hadoop
export HIVE_HOME=/usr/local/hive
export PATH=$PATH:$HIVE_HOME/bin
export PATH=$PATH:/usr/local/hadoop/bin:/usr/local/hadoop/sbin
- hive/conf
[root@master conf]# cp hive-default.xml.template hive-site.xml
<property>
<name>hive.metastore.schema.verification</name>
<value>false</value>
<description>
Enforce metastore schema version consistency.
True: Verify that version information stored in is compatible with one from Hive jars. Also disable automatic
schema migration attempt. Users are required to manually migrate schema after Hive upgrade which ensures
proper metastore schema migration. (Default)
False: Warn if the version information stored in metastore doesn't match with one from in Hive jars.
</description>
</property>
-
mkdie hive/tmp
${system:java.io.tmpdir} 换为/usr/local/hive/tmp
${system:user.name} 换为root -
[root@master hive]# schematool -initSchema -dbType derby
以后均在此dir使用derby -
hive