Examples of reloadConfiguration()


Examples of co.cask.tigon.conf.CConfiguration.reloadConfiguration()

    CConfiguration cConf = CConfiguration.create();
    cConf.set(Constants.Zookeeper.QUORUM, zkQuorumString);
    cConf.set(Constants.Location.ROOT_NAMESPACE, rootNamespace);
    cConf.set(Constants.CFG_LOCAL_DATA_DIR, localDataDir.getAbsolutePath());
    cConf.reloadConfiguration();
    Configuration hConf = HBaseConfiguration.create();

    Injector injector = Guice.createInjector(createModules(cConf, hConf));
    flowOperations = injector.getInstance(FlowOperations.class);
    consoleReader = new ConsoleReader();
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.reloadConfiguration()

    conf.addResource(new Path("/etc/hadoop/conf/core-site.xml"));
    conf.addResource(new Path("/etc/hadoop/conf/hdfs-site.xml"));
    conf.addResource(new Path("/etc/hadoop/conf/mapred-site.xml"));
    conf.addResource(new Path("/etc/hadoop/conf/yarn-site.xml"));

    conf.reloadConfiguration();

    return conf;
  }

  // How to properly shell out: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.reloadConfiguration()

    * @return true id Demux succeed
    */
   protected boolean runDemux(String demuxInputDir, String demuxOutputDir) {
     // to reload the configuration, and demux's reduce number
     Configuration tempConf = new Configuration(conf);
     tempConf.reloadConfiguration();
     demuxReducerCount = tempConf.getInt(CHUKWA_DEMUX_REDUCER_COUNT_FIELD, DEFAULT_REDUCER_COUNT);
     String[] demuxParams;
     int i=0;
     Demux.addParsers(tempConf);
     demuxParams = new String[4];
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.reloadConfiguration()

    cConf.set(Constants.Explore.LOCAL_DATA_DIR,
              tmpFolder.newFolder("hive").getAbsolutePath());

    Configuration hConf = new Configuration();
    hConf.addResource("mapred-site-local.xml");
    hConf.reloadConfiguration();
    hConf.set(Constants.CFG_LOCAL_DATA_DIR, localDataDir.getAbsolutePath());
    hConf.set(Constants.AppFabric.OUTPUT_DIR, cConf.get(Constants.AppFabric.OUTPUT_DIR));
    hConf.set("hadoop.tmp.dir", new File(localDataDir, cConf.get(Constants.AppFabric.TEMP_DIR)).getAbsolutePath());

    // Windows specific requirements
View Full Code Here

Examples of org.apache.hadoop.conf.Configuration.reloadConfiguration()

    conf.addResource(new Path("/etc/hadoop/conf/core-site.xml"));
    conf.addResource(new Path("/etc/hadoop/conf/hdfs-site.xml"));
    conf.addResource(new Path("/etc/hadoop/conf/mapred-site.xml"));
    conf.addResource(new Path("/etc/hadoop/conf/yarn-site.xml"));

    conf.reloadConfiguration();

    return conf;
  }

  // How to properly shell out: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
View Full Code Here

Examples of org.apache.hadoop.mapred.JobConf.reloadConfiguration()

      fs.copyToLocalFile(new Path(jhpath.getParent() + "/" + simulatedJobID + "_conf.xml"),
                         new Path(tmpJHFolder.toString()));
      JobConf jobConf = new JobConf();
      jobConf.addResource(new Path(tmpJHFolder.toString()
                         + "/" + simulatedJobID + "_conf.xml"));
      jobConf.reloadConfiguration();
      return jobConf;

    }finally {
      fs.close();
    }
View Full Code Here

Examples of org.apache.hadoop.mapred.JobConf.reloadConfiguration()

      fs.copyToLocalFile(new Path(historyPath + "_conf.xml"),
                         new Path(tmpJHFolder.toString()));
      JobConf jobConf = new JobConf();
      jobConf.addResource(new Path(tmpJHFolder.toString()
                         + "/" + simulatedJobID + "_conf.xml"));
      jobConf.reloadConfiguration();
      return jobConf;

    }finally {
      fs.close();
    }
View Full Code Here

Examples of org.apache.hadoop.mapred.JobConf.reloadConfiguration()

      fs.copyToLocalFile(new Path(historyPath + "_conf.xml"),
                         new Path(tmpJHFolder.toString()));
      JobConf jobConf = new JobConf();
      jobConf.addResource(new Path(tmpJHFolder.toString()
                         + "/" + simulatedJobID + "_conf.xml"));
      jobConf.reloadConfiguration();
      return jobConf;

    }finally {
      fs.close();
    }
View Full Code Here

Examples of org.codinjutsu.tools.jenkins.view.BrowserPanel.reloadConfiguration()

        scheduledThreadPoolExecutor.shutdown();
    }

    public void reloadConfiguration() {
        BrowserPanel browserPanel = BrowserPanel.getInstance(project);
        browserPanel.reloadConfiguration();
        browserPanel.initScheduledJobs(scheduledThreadPoolExecutor);

        RssLogic.getInstance(project).initScheduledJobs(scheduledThreadPoolExecutor);
    }
}
View Full Code Here

Examples of org.gatein.portal.wsrp.state.producer.configuration.JCRProducerConfigurationService.reloadConfiguration()

      JCRProducerConfigurationService producerConfigurationService;
      try
      {
         producerConfigurationService = new JCRProducerConfigurationService(container);
         producerConfigurationService.setDefaultConfigurationIS(configurationIS);
         producerConfigurationService.reloadConfiguration();
      }
      catch (Exception e)
      {
         throw new RuntimeException("Couldn't load WSRP producer configuration from " + producerConfigLocation, e);
      }
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.