From 381df456be3a74f45fe5a500a9f3b1443873caf1 Mon Sep 17 00:00:00 2001 From: Roman Shaposhnik Date: Tue, 27 Nov 2012 16:17:44 -0800 Subject: [PATCH] BIGTOP-796. hive install tries to tickle HDFS and it shouldn't --- bigtop-packages/src/deb/hive/hive.postinst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bigtop-packages/src/deb/hive/hive.postinst b/bigtop-packages/src/deb/hive/hive.postinst index de16945c6d..ee6a7f80c2 100644 --- a/bigtop-packages/src/deb/hive/hive.postinst +++ b/bigtop-packages/src/deb/hive/hive.postinst @@ -26,13 +26,6 @@ case "$1" in # Install config alternatives update-alternatives --install /etc/hive/conf hive-conf /etc/hive/conf.dist 30 - # Set up directories on HDFS - # TODO(todd) should this stuff be something like "hive create-warehosue"? - su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -mkdir /tmp' 1>/dev/null 2>/dev/null || : - su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -mkdir /user/hive/warehouse' 1>/dev/null 2>/dev/null || : - su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -chmod g+w /tmp' 1>/dev/null 2>/dev/null || : - su -s /bin/bash - ${hadoop_username} -c 'hadoop fs -chmod g+w /user/hive/warehouse' 1>/dev/null 2>/dev/null || : - # 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