/** * probe to see if the RM scheduler is defined * @param conf config * @return true if the RM scheduler address is set to * something other than 0.0.0.0 */ public static boolean isRmSchedulerAddressDefined(Configuration conf) { InetSocketAddress address = getRmSchedulerAddress(conf); return isAddressDefined(address); }
/** * probe to see if the RM scheduler is defined * @param conf config * @return true if the RM scheduler address is set to * something other than 0.0.0.0 */ public static boolean isRmSchedulerAddressDefined(Configuration conf) { InetSocketAddress address = getRmSchedulerAddress(conf); return isAddressDefined(address); }
@Override protected void serviceInit(Configuration conf) throws Exception { InetSocketAddress clientRpcAddress = SliderUtils.getRmAddress(conf); if (!SliderUtils.isAddressDefined(clientRpcAddress)) { // address isn't known; fail fast throw new BindException("Invalid " + YarnConfiguration.RM_ADDRESS + " value:" + conf.get(YarnConfiguration.RM_ADDRESS) + " - see https://wiki.apache.org/hadoop/UnsetHostnameOrPort"); } super.serviceInit(conf); }
@Override protected void serviceInit(Configuration conf) throws Exception { InetSocketAddress clientRpcAddress = SliderUtils.getRmAddress(conf); if (!SliderUtils.isAddressDefined(clientRpcAddress)) { // address isn't known; fail fast throw new BindException("Invalid " + YarnConfiguration.RM_ADDRESS + " value:" + conf.get(YarnConfiguration.RM_ADDRESS) + " - see https://wiki.apache.org/hadoop/UnsetHostnameOrPort"); } super.serviceInit(conf); }
/** * Verify that the Resource Manager is configured (on a non-HA cluster). * with a useful error message * @throws BadCommandArgumentsException the exception raised on an invalid config */ public void verifyBindingsDefined() throws BadCommandArgumentsException { InetSocketAddress rmAddr = getRmAddress(getConfig()); if (!getConfig().getBoolean(YarnConfiguration.RM_HA_ENABLED, false) && !isAddressDefined(rmAddr)) { throw new BadCommandArgumentsException( E_NO_RESOURCE_MANAGER + " in the argument " + Arguments.ARG_MANAGER + " or the configuration property " + YarnConfiguration.RM_ADDRESS + " value :" + rmAddr); } }
/** * Verify that the Resource Manager is configured (on a non-HA cluster). * with a useful error message * @throws BadCommandArgumentsException the exception raised on an invalid config */ public void verifyBindingsDefined() throws BadCommandArgumentsException { InetSocketAddress rmAddr = getRmAddress(getConfig()); if (!getConfig().getBoolean(YarnConfiguration.RM_HA_ENABLED, false) && !isAddressDefined(rmAddr)) { throw new BadCommandArgumentsException( E_NO_RESOURCE_MANAGER + " in the argument " + Arguments.ARG_MANAGER + " or the configuration property " + YarnConfiguration.RM_ADDRESS + " value :" + rmAddr); } }
if (!SliderUtils.isAddressDefined(clientRpcAddress)) {
if (!SliderUtils.isAddressDefined(clientRpcAddress)) {