Merge pull request #70 from asaklex/patch-1

Remove lost+found dir
This commit is contained in:
gmouchakis 2020-05-19 15:35:28 +03:00 committed by GitHub
commit f30f0d4975
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 exit 2
fi fi
echo "remove lost+found from $namedir"
rm -r $namedir/lost+found
if [ "`ls -A $namedir`" == "" ]; then if [ "`ls -A $namedir`" == "" ]; then
echo "Formatting namenode name directory: $namedir" echo "Formatting namenode name directory: $namedir"
$HADOOP_HOME/bin/hdfs --config $HADOOP_CONF_DIR namenode -format $CLUSTER_NAME $HADOOP_HOME/bin/hdfs --config $HADOOP_CONF_DIR namenode -format $CLUSTER_NAME