@Override public void setSystemProperty(TInfo info, TCredentials c, String property, String value) throws ThriftSecurityException, TException { master.security.canPerformSystemActions(c); try { SystemPropUtil.setSystemProperty(master.getContext(), property, value); updatePlugins(property); } catch (IllegalArgumentException iae) { // throw the exception here so it is not caught and converted to a generic TException throw iae; } catch (Exception e) { Master.log.error("Problem setting config property in zookeeper", e); throw new TException(e.getMessage()); } }
@Override public void removeSystemProperty(TInfo info, TCredentials c, String property) throws ThriftSecurityException { master.security.canPerformSystemActions(c); try { SystemPropUtil.removeSystemProperty(master.getContext(), property); updatePlugins(property); } catch (Exception e) { Master.log.error("Problem removing config property in zookeeper", e); throw new RuntimeException(e.getMessage()); } }
String value = entry.getValue(); if (Property.isValidZooPropertyKey(key)) { SystemPropUtil.setSystemProperty(context, key, value); log.info("Uploaded - {} = {}", key, Property.isSensitive(key) ? "<hidden>" : value); } else {
@Override public void removeSystemProperty(TInfo info, TCredentials c, String property) throws ThriftSecurityException { master.security.canPerformSystemActions(c); try { SystemPropUtil.removeSystemProperty(property); updatePlugins(property); } catch (Exception e) { Master.log.error("Problem removing config property in zookeeper", e); throw new RuntimeException(e.getMessage()); } }
@Override public void setSystemProperty(TInfo info, TCredentials c, String property, String value) throws ThriftSecurityException, TException { security.canPerformSystemActions(c); try { SystemPropUtil.setSystemProperty(property, value); updatePlugins(property); } catch (Exception e) { log.error("Problem setting config property in zookeeper", e); throw new TException(e.getMessage()); } }
@Override public void removeSystemProperty(TInfo info, TCredentials c, String property) throws ThriftSecurityException, TException { security.canPerformSystemActions(c); try { SystemPropUtil.removeSystemProperty(property); updatePlugins(property); } catch (Exception e) { log.error("Problem removing config property in zookeeper", e); throw new TException(e.getMessage()); } }
@Override public void setSystemProperty(TInfo info, TCredentials c, String property, String value) throws ThriftSecurityException, TException { master.security.canPerformSystemActions(c); try { SystemPropUtil.setSystemProperty(property, value); updatePlugins(property); } catch (IllegalArgumentException iae) { // throw the exception here so it is not caught and converted to a generic TException throw iae; } catch (Exception e) { Master.log.error("Problem setting config property in zookeeper", e); throw new TException(e.getMessage()); } }