hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandy Ryza <sandy.r...@cloudera.com>
Subject NodeManager throws AvroRuntimeException when it fails to start?
Date Tue, 04 Jun 2013 04:33:33 GMT
Does anybody know why the NodeManager wraps whatever exception its throwing
in an AvroRuntimeException?

---
  @Override
  public void start() {

    // NodeManager is the last service to start, so NodeId is available.
    this.nodeId = this.context.getNodeId();

    InetSocketAddress httpBindAddress = getConfig().getSocketAddr(
        YarnConfiguration.NM_WEBAPP_ADDRESS,
        YarnConfiguration.DEFAULT_NM_WEBAPP_ADDRESS,
        YarnConfiguration.DEFAULT_NM_WEBAPP_PORT);
    try {
      this.httpPort = httpBindAddress.getPort();
      // Registration has to be in start so that ContainerManager can get
the
      // perNM tokens needed to authenticate ContainerTokens.
      registerWithRM();
      super.start();
      startStatusUpdater();
    } catch (Exception e) {
      throw new AvroRuntimeException(e);
    }
  }
---

any guidance appreciated,
-Sandy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message