Examples of Props


Examples of azkaban.common.utils.Props

                                           e);
            }
        }

        public void configure(JobConf conf) {
            Props props = HadoopUtils.getPropsFromJob(conf);

            // get the voldemort cluster.xml and store.xml files.
            try {
                _cluster = HadoopUtils.readCluster(props.get("voldemort.cluster.file"), conf);
                _storeDef = HadoopUtils.readStoreDef(props.get("voldemort.store.file"),
                                                     props.get("voldemort.store.name"),
                                                     conf);

                _checkPercent = conf.getInt("input.data.check.percent", 0);
                _routingStrategy = new ConsistentRoutingStrategy(_cluster,
                                                                 _storeDef.getReplicationFactor());
View Full Code Here

Examples of azkaban.common.utils.Props

        config.addResource(new Path(new File(hadoopConfDir, "hadoop-default.xml").getAbsolutePath()));
        config.addResource(new Path(new File(hadoopConfDir, "hadoop-site.xml").getAbsolutePath()));

        // copy to props
        Props props = new Props(parent);
        for(Entry<String, String> entry: config)
            props.put(entry.getKey(), config.get(entry.getKey()));

        return props;
    }
View Full Code Here

Examples of azkaban.common.utils.Props

            throw new UndefinedPropertyException("The required property azkaban.props was not found in the Configuration.");
        try {
            ByteArrayInputStream input = new ByteArrayInputStream(propsString.getBytes("UTF-8"));
            Properties properties = new Properties();
            properties.load(input);
            return new Props(null, properties);
        } catch(IOException e) {
            throw new RuntimeException("This is not possible!", e);
        }
    }
View Full Code Here

Examples of azkaban.common.utils.Props

        if(fs.exists(path)) {
            InputStream input = fs.open(path);
            try {
                // wrap it up in another layer so that the user can override
                // properties
                Props p = new Props(null, input);
                return new Props(p);
            } finally {
                input.close();
            }
        } else {
            return new Props();
        }
    }
View Full Code Here

Examples of azkaban.common.utils.Props

    }

    @Override
    public void configure(JobConf conf) {
        super.configure(conf);
        Props props = HadoopUtils.getPropsFromJob(conf);

        _keySelection = props.getString("key.selection", null);
        _valSelection = props.getString("value.selection", null);
        _inputKeySerializer = getSchemaFromJob(conf, "mapper.input.key.schema");
        _inputValueSerializer = getSchemaFromJob(conf, "mapper.input.value.schema");
        String _keyTransClass = props.getString("key.transformation.class", null);
        String _valueTransClass = props.getString("value.transformation.class", null);

        if(_keyTransClass != null)
            _keyTrans = (StoreBuilderTransformation) Utils.callConstructor(_keyTransClass);
        if(_valueTransClass != null)
            _valTrans = (StoreBuilderTransformation) Utils.callConstructor(_valueTransClass);
View Full Code Here

Examples of azkaban.common.utils.Props

        valueCompressor = new CompressionStrategyFactory().get(valueSerializerDefinition.getCompression());

        routingStrategy = new ConsistentRoutingStrategy(getCluster(),
                                                        getStoreDef().getReplicationFactor());

        Props props = HadoopUtils.getPropsFromJob(conf);

    }
View Full Code Here

Examples of bdsup2sub.tools.Props

    private Props props;

    private Configuration() {
        configFilePath = getConfigFilePath();
        props = new Props();
    }
View Full Code Here

Examples of com.carrotgarden.osgi.factory.impl.util.Props

      log.debug("factory bind   : {}", factory);

      factoryMap.put(factoryId, factory);

      final Props props = Props.make();
      props.put(FactoryEvent.PROP_FACTORY_ID, factoryId);
      eventer.send(FactoryEvent.FACTORY_ENABLED, props);

      sender.sendState(FidgetManagerProvider.this, factoryId,
          FactoryHandler.ON);
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.Props

    String methodName = method.getName();

    if (method.getAnnotation(FactoryMethod.class) != null) {

      Props props = ParamAnnotationUtils.extractProps(
          method.getParameterAnnotations(), args);

      return createBuilderObject(proxy, method, methodName, props);

    } else if (methodName.equals("release")) {
View Full Code Here

Examples of jodd.props.Props

  /**
   * Creates new Props. Empty props will be ignored,
   * and missing macros will be resolved as empty string.
   */
  protected Props createProps() {
    Props props = new Props();
    props.setSkipEmptyProps(true);
    props.setIgnoreMissingMacros(true);
    return props;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.