- Untar tarball hive-0.10.0.tar.gz
- Update C:/cygwin /home/{User}/.bash_profile, add the following to cygwin PATH:
export PATH=$HIVE_HOME/bin:$PATH
- Update $HIVE_HOME/conf/hive-env.sh, add the following:
- Update $HADOOP_HOME/conf/hadoop-env.sh, add the following:
The above setup helps to deal with some of the common exceptions HIVE might throw during configuration –
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/conf/HiveConf
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
Exception in thread "main" java.lang.RuntimeException: Failed to load Hive builtin functions
Caused by: java.lang.ClassNotFoundException: org.apache.hive.builtins.BuiltinUtils
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hive/ql/session/SessionState
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.session.SessionState