Skip to content
Permalink
Browse files
HAWQ-1504 - Fixed namenode hang during docker container restart
  • Loading branch information
outofmem0ry authored and radarwave committed Sep 1, 2017
1 parent a435750 commit e20e16b726a4e5fc04e66a1407f6b7dcf23cecd0
Showing 2 changed files with 2 additions and 2 deletions.
@@ -24,7 +24,7 @@ if [ -f /etc/profile.d/hadoop.sh ]; then
fi

if [ "${NAMENODE}" == "${HOSTNAME}" ]; then
if [ ! -d /tmp/hdfs/name/current ]; then
if [ ! -d /tmp/hadoop-hdfs/dfs/name/current ]; then
su -l hdfs -c "hdfs namenode -format"
fi

@@ -24,7 +24,7 @@ if [ -f /etc/profile.d/hadoop.sh ]; then
fi

if [ "${NAMENODE}" == "${HOSTNAME}" ]; then
if [ ! -d /tmp/hdfs/name/current ]; then
if [ ! -d /tmp/hadoop-hdfs/dfs/name/current ]; then
su -l hdfs -c "hdfs namenode -format"
fi

0 comments on commit e20e16b

Please sign in to comment.