Author: plinnell
Date: Fri Jan 27 00:14:16 2012
New Revision: 1236460

URL: http://svn.apache.org/viewvc?rev=1236460&view=rev
Log:
BIGTOP-370 - fix permissions enabling hive to startup

Modified:
    
incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hive/hive.postinst

Modified: 
incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hive/hive.postinst
URL: 
http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hive/hive.postinst?rev=1236460&r1=1236459&r2=1236460&view=diff
==============================================================================
--- 
incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hive/hive.postinst
 (original)
+++ 
incubator/bigtop/branches/hadoop-0.23/bigtop-packages/src/deb/hive/hive.postinst
 Fri Jan 27 00:14:16 2012
@@ -35,7 +35,7 @@ case "$1" in
 
         # Ensure sticky bit on metastore dir - debian likes this to be done in 
postinst rather than the package
         chmod 1777 /var/lib/hive/metastore
-
+       chown hive:hive -R /var/lib/hive
         if [ "$2" ]; then
           old_metastore="/var/lib/hive/metastore/\${user.name}_db"
           new_metastore="/var/lib/hive/metastore/metastore_db"


Reply via email to