apache/hadoop · error · RuntimeException

failure

Error message

{} failure

What it means

Logged (with stack) when the Portmap/Rpcbind registration or unregistration UDP exchange for an ONC/RPC program fails with an IOException; the program could not be (un)registered with the port mapper at the configured host.

Solutions

  1. Inspect the RPC program handler for the failure named in the message and check server-side logs for the underlying exception.
  2. Verify the requested program/procedure/version numbers are supported by the server.
  3. Retry the operation; if persistent, investigate resource exhaustion on the RPC server.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/oncrpc/RpcProgram.java:155 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/0bb29850d7fb4432. Report an issue: GitHub.

Appendix: source

Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/oncrpc/RpcProgram.java:155

    }
  }

  /**
   * Register the program with Portmap or Rpcbind.
   * @param mapEntry port map entries
   * @param set specifies registration or not
   */
  protected void register(PortmapMapping mapEntry, boolean set) {
    XDR mappingRequest = PortmapRequest.create(mapEntry, set);
    SimpleUdpClient registrationClient = new SimpleUdpClient(host, RPCB_PORT,
        mappingRequest, true, registrationSocket, portmapUdpTimeoutMillis);
    try {
      registrationClient.run();
    } catch (IOException e) {
      String request = set ? "Registration" : "Unregistration";
      LOG.error(request + " failure with " + host + ":" + port
          + ", portmap entry: " + mapEntry);
      throw new RuntimeException(request + " failure", e);
    }
  }

  // Start extra daemons or services
  public void startDaemons() {}
  public void stopDaemons() {}

  @Override
  public void channelRead(ChannelHandlerContext ctx, Object msg)
      throws Exception {
    RpcInfo info = (RpcInfo) msg;
    try {
      channelRead(ctx, info);
    } finally {
      ReferenceCountUtil.release(info.data());
    }
  }

View on GitHub (pinned to 2add963021)