boolean shouldRetryInit() { if (hasBlockPoolId()) { // One of the namenode registered successfully. lets continue retry for // other. return true; } return isAlive(); }
/** * A data node is considered to be up if one of the bp services is up */ public boolean isDatanodeUp() { for (BPOfferService bp : blockPoolManager.getAllNamenodeThreads()) { if (bp.isAlive()) { return true; } } return false; }
/** * @param bpid block pool Id * @return true - if BPOfferService thread is alive */ public boolean isBPServiceAlive(String bpid) { BPOfferService bp = blockPoolManager.get(bpid); return bp != null ? bp.isAlive() : false; }
/** * A datanode is considered to be fully started if all the BP threads are * alive and all the block pools are initialized. * * @return true - if the data node is fully started */ public boolean isDatanodeFullyStarted() { for (BPOfferService bp : blockPoolManager.getAllNamenodeThreads()) { if (!bp.isInitialized() || !bp.isAlive()) { return false; } } return true; }
boolean shouldRetryInit() { if (hasBlockPoolId()) { // One of the namenode registered successfully. lets continue retry for // other. return true; } return isAlive(); }
boolean shouldRetryInit() { if (hasBlockPoolId()) { // One of the namenode registered successfully. lets continue retry for // other. return true; } return isAlive(); }
/** * A data node is considered to be up if one of the bp services is up */ public boolean isDatanodeUp() { for (BPOfferService bp : blockPoolManager.getAllNamenodeThreads()) { if (bp.isAlive()) { return true; } } return false; }
/** * A data node is considered to be up if one of the bp services is up */ public boolean isDatanodeUp() { for (BPOfferService bp : blockPoolManager.getAllNamenodeThreads()) { if (bp.isAlive()) { return true; } } return false; }
/** * @param bpid block pool Id * @return true - if BPOfferService thread is alive */ public boolean isBPServiceAlive(String bpid) { BPOfferService bp = blockPoolManager.get(bpid); return bp != null ? bp.isAlive() : false; }
/** * @param bpid block pool Id * @return true - if BPOfferService thread is alive */ public boolean isBPServiceAlive(String bpid) { BPOfferService bp = blockPoolManager.get(bpid); return bp != null ? bp.isAlive() : false; }
/** * A datanode is considered to be fully started if all the BP threads are * alive and all the block pools are initialized. * * @return true - if the data node is fully started */ public boolean isDatanodeFullyStarted() { for (BPOfferService bp : blockPoolManager.getAllNamenodeThreads()) { if (!bp.isInitialized() || !bp.isAlive()) { return false; } } return true; }
/** * A datanode is considered to be fully started if all the BP threads are * alive and all the block pools are initialized. * * @return true - if the data node is fully started */ public boolean isDatanodeFullyStarted() { for (BPOfferService bp : blockPoolManager.getAllNamenodeThreads()) { if (!bp.isInitialized() || !bp.isAlive()) { return false; } } return true; }
@Override public Boolean get() { return bpos.isAlive() && bpos.isInitialized(); } }, 100, 10000);