Remove lost+found dir

This commit is contained in:
Abdourahamane S Abba 2020-05-09 10:28:32 -04:00 committed by GitHub
parent c3c8a241cb
commit 18d777d7a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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