Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4326

Fix TestDistributedShell timeout as AHS in MiniYarnCluster no longer binds to default port 8188

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.2, 2.6.3, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The timeout originates in ApplicationMaster, where it fails to connect to timeline server, and retry exceeds limits:

      2015-11-02 21:57:38,066 INFO  [main] impl.TimelineClientImpl (TimelineClientImpl.java:serviceInit(299)) - Timeline service address: http://mdinglin02:0/ws/v1/timeline/
      2015-11-02 21:57:38,099 INFO  [main] impl.TimelineClientImpl (TimelineClientImpl.java:logException(213)) - Exception caught by TimelineClientConnectionRetry, will try 30 more time(s).
      ...
      ...
      java.lang.RuntimeException: Failed to connect to timeline server. Connection retries limit exceeded. The posted timeline event may be missing
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl$TimelineClientConnectionRetry.retryOn(TimelineClientImpl.java:206)
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl$TimelineJerseyRetryFilter.handle(TimelineClientImpl.java:245)
              at com.sun.jersey.api.client.Client.handle(Client.java:648)
              at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
              at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
              at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563)
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.doPostingObject(TimelineClientImpl.java:477)
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl$1.run(TimelineClientImpl.java:326)
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl$1.run(TimelineClientImpl.java:323)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:415)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1669)
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.doPosting(TimelineClientImpl.java:323)
              at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.putEntities(TimelineClientImpl.java:308)
              at org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster.publishApplicationAttemptEvent(ApplicationMaster.java:1184)
              at org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster.run(ApplicationMaster.java:571)
              at org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster.main(ApplicationMaster.java:302)
      

        Attachments

          Activity

            People

            • Assignee:
              mding MENG DING
              Reporter:
              mding MENG DING
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: