Examples of loadProperties()


Examples of com.cloudera.sqoop.SqoopOptions.loadProperties()

    assertNull(propertiesIntoMetastore.getProperty("db.password"));
    assertNotNull(propertiesIntoMetastore.getProperty("db.password.file"));

    // load the saved properties and verify
    SqoopOptions optionsFromMetastore = new SqoopOptions();
    optionsFromMetastore.loadProperties(propertiesIntoMetastore);
    assertNotNull(optionsFromMetastore.getPassword());
    assertNotNull(optionsFromMetastore.getPasswordFilePath());
    assertEquals(passwordFilePath, optionsFromMetastore.getPasswordFilePath());
  }
View Full Code Here

Examples of com.cloudera.sqoop.SqoopOptions.loadProperties()

    assertNotNull(propertiesIntoMetastore.getProperty("db.password"));
    assertNull(propertiesIntoMetastore.getProperty("db.password.file"));

    // load the saved properties and verify
    SqoopOptions optionsFromMetastore = new SqoopOptions();
    optionsFromMetastore.loadProperties(propertiesIntoMetastore);
    assertNotNull(optionsFromMetastore.getPassword());
    assertNull(optionsFromMetastore.getPasswordFilePath());
  }

  private String[] getCommonArgs(boolean includeHadoopFlags,
View Full Code Here

Examples of com.cloudera.sqoop.SqoopOptions.loadProperties()

        conf.set(entry.getKey().toString(), entry.getValue().toString());
      }

      SqoopOptions opts = new SqoopOptions();
      opts.setConf(conf);
      opts.loadProperties(sqoopOptProps);

      // Set the job connection information for this job.
      opts.setJobName(jobName);
      opts.setStorageDescriptor(connectedDescriptor);
View Full Code Here

Examples of com.netflix.client.config.DefaultClientConfigImpl.loadProperties()

        if (serverList.isEmpty()) {
            throw new IllegalArgumentException("empty server list");
        }

        IClientConfig loadBalancerConfig = new DefaultClientConfigImpl();
        loadBalancerConfig.loadProperties("suroClient");
    loadBalancerConfig.setProperty(CommonClientConfigKey.NFLoadBalancerPingClassName, "com.netflix.suro.connection.SuroPing");
        super.initWithNiwsConfig(loadBalancerConfig);
        addServers(serverList);
    }
View Full Code Here

Examples of com.netflix.client.config.IClientConfig.loadProperties()

        if (serverList.isEmpty()) {
            throw new IllegalArgumentException("empty server list");
        }

        IClientConfig loadBalancerConfig = new DefaultClientConfigImpl();
        loadBalancerConfig.loadProperties("suroClient");
    loadBalancerConfig.setProperty(CommonClientConfigKey.NFLoadBalancerPingClassName, "com.netflix.suro.connection.SuroPing");
        super.initWithNiwsConfig(loadBalancerConfig);
        addServers(serverList);
    }
View Full Code Here

Examples of com.netflix.config.ConcurrentMapConfiguration.loadProperties()

        // setup system properties
        System.setProperty("test.key4", "test.value4-system");
        System.setProperty("test.key5", "test.value5-system");

        final ConcurrentMapConfiguration systemConfig = new ConcurrentMapConfiguration();
        systemConfig.loadProperties(System.getProperties());

        final DynamicWatchedConfiguration zkDynamicOverrideConfig = new DynamicWatchedConfiguration(zkConfigSource);

        mapConfig = new ConcurrentMapConfiguration();
        mapConfig.addProperty("test.key1", "test.value1-map");
View Full Code Here

Examples of com.quickwebframework.entity.BundleInfo.loadProperties()

      Enumeration<String> keyEnumeration = dict.keys();
      while (keyEnumeration.hasMoreElements()) {
        String key = keyEnumeration.nextElement();
        prop.put(key, dict.get(key));
      }
      newBundleInfo.loadProperties(prop);
      return newBundleInfo;
    } catch (Exception ex) {
      log.warn(String
          .format("[com.quickwebframework.util.BundleUtil.getBundleInfo]警告:读取插件[%s]的资源文件[%s]时出错,原因:[%s]",
              bundle.getSymbolicName(),
View Full Code Here

Examples of com.santiagolizardo.beobachter.config.ConfigPersistence.loadProperties()

    }

    final ConfigData configData = new ConfigData();
    ConfigPersistence configPersistence = new ConfigPersistence();
    try {
      configData.setConfiguration(configPersistence
          .loadProperties());
    } catch (IOException ex) {
      System.err.println(ex.getMessage());
    }
View Full Code Here

Examples of lt.baltic_amadeus.jqbridge.server.Config.loadProperties()

    // TODO Actually parse command line
    Config cfg = new Config();
    String cfgName = "etc/jqbridge.properties";
    if (args.length > 0)
        cfgName = args[0];
    cfg.loadProperties(new File(cfgName));
    Server srv = new Server(cfg);
    srv.run();
    System.exit(0);
  }
View Full Code Here

Examples of org.apache.ivy.core.settings.IvySettings.loadProperties()

        IvyConfiguration ivyConf = getIvyConfiguration();
            try {
                IvySettings ivySettings = new IvySettings();
                if (propertyFile != null) {
                  File f = new File(localFilePath,propertyFile);
                  ivySettings.loadProperties(f);
                  LOGGER.log(Level.INFO,"Configured Ivy using custom properties " + f);
                }
                if (ivyConf != null) {
                    ivySettings.load(new File(ivyConf.getIvyConfPath()));
                    LOGGER.log(Level.INFO,"Configured Ivy using custom settings " + ivyConf.getIvyConfPath());
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.