Package com.cloudera.lib.util

Examples of com.cloudera.lib.util.XConfiguration.writeXml()


    XConfiguration conf = new XConfiguration();
    conf.set("hoop.hadoop.conf:fs.default.name", fsDefaultName);
    conf.set("hoop.base.url", getJettyURL().toExternalForm());
    File hoopSite = new File(new File(homeDir, "conf"), "hoop-site.xml");
    OutputStream os = new FileOutputStream(hoopSite);
    conf.writeXml(os);
    os.close();

    File dir = new File("foo").getAbsoluteFile().getParentFile();
    if (!new File(dir, "hoop-webapp").exists()) {
      dir = dir.getParentFile();
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.