Package org.apache.hadoop.mapred

Examples of org.apache.hadoop.mapred.StatusHttpServer$StackServlet


             createSocketAddr(conf.get("fs.default.name", "local")), conf);
        // register datanode
        register();
        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);
        //create a servlet to serve full-file content
        this.infoServer.addServlet(null, "/streamFile/*", StreamFile.class);
        this.infoServer.start();
        this.dnRegistration.infoPort = this.infoServer.getPort();
        datanodeObject = this;
View Full Code Here


        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.start();
    }
View Full Code Here

     * is stored
     */
    public FSNamesystem(File dir, Configuration conf) throws IOException {
        fsNamesystemObject = this;
        this.infoPort = conf.getInt("dfs.info.port", 50070);
        this.infoServer = new StatusHttpServer("dfs", infoPort, false);
        this.infoServer.start();
        InetSocketAddress addr = DataNode.createSocketAddr(conf.get("fs.default.name", "local"));
        this.localMachine = addr.getHostName();
        this.port = addr.getPort();
        this.dir = new FSDirectory(dir, conf);
View Full Code Here

    public DataNode(Configuration conf, String datadir) throws IOException {
        this(InetAddress.getLocalHost().getHostName(),
             new File(datadir),
             createSocketAddr(conf.get("fs.default.name", "local")), conf);
        int infoServerPort = conf.getInt("dfs.datanode.info.port", 50075);
        this.infoServer = new StatusHttpServer("datanode", infoServerPort, true);
        //create a servlet to serve full-file content
        try {
          this.infoServer.addServlet(null, "/streamFile/*",
                "org.apache.hadoop.dfs.StreamFile", null);
        } catch (Exception e) {LOG.warn("addServlet threw exception", e);}
View Full Code Here

        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

      //
      // 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

             dataDirs,
             createSocketAddr(conf.get("fs.default.name", "local")), conf);
        // register datanode
        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);
        //create a servlet to serve full-file content
        this.infoServer.addServlet(null, "/streamFile/*", StreamFile.class);
        this.infoServer.start();
        this.dnRegistration.infoPort = this.infoServer.getPort();
        // register datanode
View Full Code Here

                                "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

      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

        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.start();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.mapred.StatusHttpServer$StackServlet

Copyright © 2018 www.massapicom. 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.