Skip to content

Commit

Permalink
BIGTOP-796. hive install tries to tickle HDFS and it shouldn't
Browse files Browse the repository at this point in the history
  • Loading branch information
rvs committed Nov 28, 2012
1 parent 1943983 commit 381df45
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bigtop-packages/src/deb/hive/hive.postinst
Expand Up @@ -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
Expand Down

0 comments on commit 381df45

Please sign in to comment.