Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f30f0d4

Browse files
authored
Merge pull request big-data-europe#70 from asaklex/patch-1
Remove lost+found dir
2 parents c3c8a24 + 18d777d commit f30f0d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

namenode/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ if [ -z "$CLUSTER_NAME" ]; then
1111
exit 2
1212
fi
1313

14+
echo "remove lost+found from $namedir"
15+
rm -r $namedir/lost+found
16+
1417
if [ "`ls -A $namedir`" == "" ]; then
1518
echo "Formatting namenode name directory: $namedir"
1619
$HADOOP_HOME/bin/hdfs --config $HADOOP_CONF_DIR namenode -format $CLUSTER_NAME

0 commit comments

Comments
 (0)