Skip to content

Commit

Permalink
Remove lost+found dir
Browse files Browse the repository at this point in the history
  • Loading branch information
asaklex authored May 9, 2020
1 parent c3c8a24 commit 18d777d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions namenode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if [ -z "$CLUSTER_NAME" ]; then
exit 2
fi

echo "remove lost+found from $namedir"
rm -r $namedir/lost+found

if [ "`ls -A $namedir`" == "" ]; then
echo "Formatting namenode name directory: $namedir"
$HADOOP_HOME/bin/hdfs --config $HADOOP_CONF_DIR namenode -format $CLUSTER_NAME
Expand Down

0 comments on commit 18d777d

Please sign in to comment.