Examples of StatusHttpServer


Examples of com.cloudera.util.StatusHttpServer

    ReportManager.get().add(vmInfo);
    ReportManager.get().add(sysInfo);

    if (doHttp) {
      String webPath = FlumeNode.getWebPath(cfg);
      this.http = new StatusHttpServer("flumeconfig", webPath, "0.0.0.0", cfg
          .getMasterHttpPort(), false);
      http.addServlet(jerseyMasterServlet(), "/master/*");
      http.start();
    }

View Full Code Here

Examples of com.cloudera.util.StatusHttpServer

    if (startHttp) {
      try {
        String webPath = getWebPath(conf);

        boolean findport = FlumeConfiguration.get().getNodeAutofindHttpPort();
        this.http = new StatusHttpServer("flumeagent", webPath, "0.0.0.0", conf
            .getNodeStatusPort(), findport);
        http.addServlet(jerseyNodeServlet(), "/node/*");
        http.start();
      } catch (IOException e) {
        LOG.error("Flume node failed: " + e.getMessage(), e);
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

        this.dnthread = new Daemon(new DecommissionedMonitor());
        dnthread.start();

        this.infoPort = conf.getInt("dfs.info.port", 50070);
        this.infoBindAddress = conf.get("dfs.info.bindAddress", "0.0.0.0");
        this.infoServer = new StatusHttpServer("dfs",infoBindAddress, infoPort, false);
        this.infoServer.setAttribute("name.system", this);
        this.infoServer.setAttribute("name.node", nn);
        this.infoServer.setAttribute("name.conf", conf);
        this.infoServer.addServlet("fsck", "/fsck", FsckServlet.class);
        this.infoServer.addServlet("getimage", "/getimage", GetImageServlet.class);
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

      NetUtils.getServerAddress(conf, "dfs.info.bindAddress",
                                "dfs.info.port", "dfs.http.address");
    InetSocketAddress infoSocAddr = NetUtils.createSocketAddr(infoAddr);
    String infoHost = infoSocAddr.getHostName();
    int tmpInfoPort = infoSocAddr.getPort();
    this.infoServer = new StatusHttpServer("dfs", infoHost, tmpInfoPort,
                                            tmpInfoPort == 0);
    this.infoServer.setAttribute("name.system", this);
    this.infoServer.setAttribute("name.node", nn);
    this.infoServer.setAttribute("name.conf", conf);
    this.infoServer.addServlet("fsck", "/fsck", FsckServlet.class);
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

                              "dfs.datanode.info.port",
                              "dfs.datanode.http.address");
    InetSocketAddress infoSocAddr = NetUtils.createSocketAddr(infoAddr);
    String infoHost = infoSocAddr.getHostName();
    int tmpInfoPort = infoSocAddr.getPort();
    this.infoServer = new StatusHttpServer("datanode", infoHost, tmpInfoPort, tmpInfoPort == 0);
    this.infoServer.addServlet(null, "/streamFile/*", StreamFile.class);
    this.infoServer.setAttribute("datanode.blockScanner", blockScanner);
    this.infoServer.addServlet(null, "/blockScannerReport",
                               DataBlockScanner.Servlet.class);
    this.infoServer.start();
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

                                "dfs.secondary.info.port",
                                "dfs.secondary.http.address");
    InetSocketAddress infoSocAddr = NetUtils.createSocketAddr(infoAddr);
    infoBindAddress = infoSocAddr.getHostName();
    int tmpInfoPort = infoSocAddr.getPort();
    infoServer = new StatusHttpServer("dfs", infoBindAddress, tmpInfoPort,
                                      tmpInfoPort == 0);
    infoServer.setAttribute("name.secondary", this);
    this.infoServer.setAttribute("name.conf", conf);
    infoServer.addServlet("getimage", "/getimage", GetImageServlet.class);
    infoServer.start();
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

        this.systemStart = now();
        this.startTime = new Date(systemStart);

        this.infoPort = conf.getInt("dfs.info.port", 50070);
        this.infoBindAddress = conf.get("dfs.info.bindAddress", "0.0.0.0");
        this.infoServer = new StatusHttpServer("dfs",infoBindAddress, infoPort, false);
        this.infoServer.setAttribute("name.system", this);
        this.infoServer.setAttribute("name.node", nn);
        this.infoServer.setAttribute("name.conf", conf);
        this.infoServer.addServlet("fsck", "/fsck", FsckServlet.class);
        this.infoServer.addServlet("getimage", "/getimage", GetImageServlet.class);
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

      NetUtils.getServerAddress(conf, "dfs.info.bindAddress",
                                "dfs.info.port", "dfs.http.address");
    InetSocketAddress infoSocAddr = NetUtils.createSocketAddr(infoAddr);
    String infoHost = infoSocAddr.getHostName();
    int tmpInfoPort = infoSocAddr.getPort();
    this.infoServer = new StatusHttpServer("dfs", infoHost, tmpInfoPort,
                                            tmpInfoPort == 0);
    this.infoServer.setAttribute("name.system", this);
    this.infoServer.setAttribute("name.node", nn);
    this.infoServer.setAttribute("name.conf", conf);
    this.infoServer.addServlet("fsck", "/fsck", FsckServlet.class);
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

    //
    // initialize the webserver for uploading files.
    //
    infoPort = conf.getInt("dfs.secondary.info.port", 50090);
    infoBindAddress = conf.get("dfs.secondary.info.bindAddress", "0.0.0.0");
    infoServer = new StatusHttpServer("dfs", infoBindAddress, infoPort, false);
    infoServer.setAttribute("name.secondary", this);
    infoServer.addServlet("getimage", "/getimage", GetImageServlet.class);
    infoServer.start();

    //
View Full Code Here

Examples of org.apache.hadoop.mapred.StatusHttpServer

    DataNode.nameNodeAddr = nameNodeAddr;

    //create a servlet to serve full-file content
    int infoServerPort = conf.getInt("dfs.datanode.info.port", 50075);
    String infoServerBindAddress = conf.get("dfs.datanode.info.bindAddress", "0.0.0.0");
    this.infoServer = new StatusHttpServer("datanode", infoServerBindAddress, infoServerPort, true);
    this.infoServer.addServlet(null, "/streamFile/*", StreamFile.class);
    this.infoServer.start();
    this.dnRegistration.infoPort = this.infoServer.getPort();
    // get network location
    this.networkLoc = conf.get("dfs.datanode.rack");
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.