Rebuild Accumulo after namenode crash corrupts root block Rebuild Accumulo after namenode crash corrupts root block hadoop hadoop

Rebuild Accumulo after namenode crash corrupts root block


First find the bad blocks with:

hdfs fsck / | egrep -v '^\.+$' | grep -v eplica

then delete the file(s) in the block(s) in question and delete with:

hdfs dfs -rm -skipTrash /some/path/to/files

As HDFS user run the following:

hdfs dfsadmin -safemode leavehdfs dfs -rm -R -skipTrash hdfs://servername:8020/apps/accumulohadoop fs -mkdir -p /apps/accumulohadoop fs -chmod -R 700 /apps/accumulohadoop fs -chown -R accumlo:accumulo /apps/accumulo

From Ambari restart Accumulo to initialise or run:

/usr/hdp/current/accumulo-client/bin/accumulo init

and then start with

/usr/hdp/current/accumulo-client/bin/start-all.sh