Author: khorgath
Date: Wed Sep 28 22:53:46 2011
New Revision: 1177097
URL: http://svn.apache.org/viewvc?rev=1177097&view=rev
Log:
HCATALOG-118 : HIVE_CONF_DIR needs to be set to run hive
Modified:
incubator/hcatalog/trunk/CHANGES.txt
incubator/hcatalog/trunk/src/packages/rpm/spec/hcatalog.spec
Modified: incubator/hcatalog/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/hcatalog/trunk/CHANGES.txt?rev=1177097&r1=1177096&r2=1177097&view=diff
==============================================================================
--- incubator/hcatalog/trunk/CHANGES.txt (original)
+++ incubator/hcatalog/trunk/CHANGES.txt Wed Sep 28 22:53:46 2011
@@ -38,6 +38,8 @@ Trunk (unreleased changes)
HCAT-64. Refactor HCatTableInfo, JobInfo and OutputJobInfo (toffer via gates)
+ HCAT-118. HIVE_CONF_DIR needs to be set to run hive (khorgath)
+
OPTIMIZATIONS
BUG FIXES
Modified: incubator/hcatalog/trunk/src/packages/rpm/spec/hcatalog.spec
URL:
http://svn.apache.org/viewvc/incubator/hcatalog/trunk/src/packages/rpm/spec/hcatalog.spec?rev=1177097&r1=1177096&r2=1177097&view=diff
==============================================================================
--- incubator/hcatalog/trunk/src/packages/rpm/spec/hcatalog.spec (original)
+++ incubator/hcatalog/trunk/src/packages/rpm/spec/hcatalog.spec Wed Sep 28
22:53:46 2011
@@ -139,6 +139,8 @@ if [ ! -f ${RPM_INSTALL_PREFIX1}/hive-si
cp ${RPM_INSTALL_PREFIX1}/proto-hive-site.xml
${RPM_INSTALL_PREFIX1}/hive-site.xml
fi
+ln -sf ${RPM_INSTALL_PREFIX1} ${RPM_INSTALL_PREFIX0}/share/hcatalog/conf
+
echo HCatalog installed, please take a moment to verify config in
${RPM_INSTALL_PREFIX1}/hcat-env.sh and ${RPM_INSTALL_PREFIX1}/hive-site.xml
%preun
bash ${RPM_INSTALL_PREFIX0}/sbin/update-hcatalog-env.sh \
@@ -150,6 +152,8 @@ bash ${RPM_INSTALL_PREFIX0}/sbin/update-
--pid-dir=${RPM_INSTALL_PREFIX3} \
--uninstall
+rm -f ${RPM_INSTALL_PREFIX0}/share/hcatalog/conf
+
%files
%defattr(-,hcat,hadoop)
%attr(0755,hcat,hadoop) %{_log_dir}