throws IOException HMaster master = (HMaster) getServletContext().getAttribute(HMaster.MASTER); assert master != null : "No Master in context!"; Map<String, Integer> frags = getFragmentationInfo(master, conf); ServerName metaLocation = null; List<ServerName> servers = null; metaLocation = getMetaLocationOrNull(master); ServerManager serverManager = master.getServerManager(); if (serverManager != null) {
throws IOException HMaster master = (HMaster) getServletContext().getAttribute(HMaster.MASTER); assert master != null : "No Master in context!"; HBaseAdmin admin = new HBaseAdmin(conf); Map<String, Integer> frags = getFragmentationInfo(master, conf); ServerName rootLocation = getRootLocationOrNull(master); ServerName metaLocation = master.getCatalogTracker().getMetaLocation(); List<ServerName> servers = master.getServerManager().getOnlineServersList(); MasterStatusTmpl tmpl = new MasterStatusTmpl() .setFrags(frags) .setShowAppendWarning(shouldShowAppendWarning(conf)) .setRootLocation(rootLocation) .setMetaLocation(metaLocation)
throws IOException HMaster master = (HMaster) getServletContext().getAttribute(HMaster.MASTER); assert master != null : "No Master in context!"; Map<String, Integer> frags = getFragmentationInfo(master, conf); ServerName metaLocation = null; List<ServerName> servers = null; metaLocation = getMetaLocationOrNull(master); ServerManager serverManager = master.getServerManager(); if (serverManager != null) {