|
@@ -64,12 +64,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.recovery.records.impl.pb.AM
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.recovery.records.impl.pb.ApplicationAttemptStateDataPBImpl;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.recovery.records.impl.pb.ApplicationStateDataPBImpl;
|
|
|
import org.apache.hadoop.yarn.server.utils.LeveldbIterator;
|
|
|
-import org.apache.hadoop.yarn.util.ConverterUtils;
|
|
|
import org.fusesource.leveldbjni.JniDBFactory;
|
|
|
import org.fusesource.leveldbjni.internal.NativeDB;
|
|
|
import org.iq80.leveldb.DB;
|
|
|
import org.iq80.leveldb.DBException;
|
|
|
-import org.iq80.leveldb.Logger;
|
|
|
import org.iq80.leveldb.Options;
|
|
|
import org.iq80.leveldb.WriteBatch;
|
|
|
|
|
@@ -165,7 +163,6 @@ public class LeveldbRMStateStore extends RMStateStore {
|
|
|
Path storeRoot = createStorageDir();
|
|
|
Options options = new Options();
|
|
|
options.createIfMissing(false);
|
|
|
- options.logger(new LeveldbLogger());
|
|
|
LOG.info("Using state database at " + storeRoot + " for recovery");
|
|
|
File dbfile = new File(storeRoot.toString());
|
|
|
try {
|
|
@@ -872,13 +869,4 @@ public class LeveldbRMStateStore extends RMStateStore {
|
|
|
LOG.info("Full compaction cycle completed in " + duration + " msec");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- private static class LeveldbLogger implements Logger {
|
|
|
- private static final Log LOG = LogFactory.getLog(LeveldbLogger.class);
|
|
|
-
|
|
|
- @Override
|
|
|
- public void log(String message) {
|
|
|
- LOG.info(message);
|
|
|
- }
|
|
|
- }
|
|
|
}
|