Description
Inside the onInit() method tries to start up WebAppServer, the catch exception only assumes the port number maybe the issue.
SamzaAppMasterService.scala
try { rpcApp = new WebAppServer("/", rpcPort) rpcApp.addServlet("/*", new ApplicationMasterRestServlet(config, state, registry)) rpcApp.start webApp = new WebAppServer("/", trackingPort) webApp.addServlet("/*", new ApplicationMasterWebServlet(config, state)) webApp.start state.rpcPort = rpcPort state.trackingPort = trackingPort return } catch { case e: Exception => { warn("Unable to start webapp on rpc port %d, tracking port %d .. retrying" format (rpcPort, trackingPort)) } }
In my environment, I was using IBM JDK and after some debugging the issue has nothing to do with port number not been available, but in the Java reflection layer.
Attachments
Issue Links
- is superceded by
-
SAMZA-175 Bind AM Jetty server to 0
- Resolved