incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1232262 - /incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/hadoop-conf-pseudo.postinst
Date Tue, 17 Jan 2012 01:59:29 GMT
Author: bmahe
Date: Tue Jan 17 01:59:29 2012
New Revision: 1232262

URL: http://svn.apache.org/viewvc?rev=1232262&view=rev
Log:
BIGTOP-143. BIGTOP-109 was not applied to debs

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/hadoop-conf-pseudo.postinst

Modified: incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/hadoop-conf-pseudo.postinst
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/hadoop-conf-pseudo.postinst?rev=1232262&r1=1232261&r2=1232262&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/hadoop-conf-pseudo.postinst (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/deb/hadoop/hadoop-conf-pseudo.postinst Tue
Jan 17 01:59:29 2012
@@ -40,13 +40,6 @@ case "$1" in
         if [ ! -e /etc/hadoop/conf ]; then 
           ln -s /etc/hadoop/conf.pseudo /etc/hadoop/conf 
         fi
-        nn_dfs_dir="/var/lib/hadoop/cache/hadoop/dfs"
-        if [ -z "$(ls -A $nn_dfs_dir/name 2>/dev/null)" ]; then
-            mkdir -p $nn_dfs_dir
-            chown hdfs:hadoop $nn_dfs_dir
-            su -s /bin/sh hdfs -c \
-             'hadoop --config /etc/hadoop/conf.pseudo namenode -format' 2>/dev/null 1>/dev/null
|| :
-        fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)



Mime
View raw message