Uploaded image for project: 'Apache Twill (Retired)'
  1. Apache Twill (Retired)
  2. TWILL-96

Yarn unit test fails in Travis-CI

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0-incubating
    • yarn
    • None

    Description

      The major reason is because in the YARN unit tests, it is not using the address that the RM is binded to, but rather using the one in yarn-default.xml

      It fails with error like this:

      java.lang.RuntimeException: java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: "testing-worker-linux-10-1-15919-linux-11-30791059":8032; java.net.UnknownHostException; For more details see: http://wiki.apache.org/hadoop/UnknownHost
      at org.apache.hadoop.ipc.Client$Connection.<init>(Client.java:400)
      at org.apache.hadoop.ipc.Client.getConnection(Client.java:1448)
      at org.apache.hadoop.ipc.Client.call(Client.java:1377)
      at org.apache.hadoop.ipc.Client.call(Client.java:1359)
      at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
      at com.sun.proxy.$Proxy44.getNewApplication(Unknown Source)
      at org.apache.hadoop.yarn.api.impl.pb.client.ApplicationClientProtocolPBClientImpl.getNewApplication(ApplicationClientProtocolPBClientImpl.java:167)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186)
      at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
      at com.sun.proxy.$Proxy45.getNewApplication(Unknown Source)
      at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.getNewApplication(YarnClientImpl.java:133)
      at org.apache.hadoop.yarn.client.api.impl.YarnClientImpl.createApplication(YarnClientImpl.java:141)
      at org.apache.twill.internal.yarn.Hadoop21YarnAppClient.createLauncher(Hadoop21YarnAppClient.java:60)
      at org.apache.twill.internal.yarn.Hadoop21YarnAppClient.createLauncher(Hadoop21YarnAppClient.java:130)
      at org.apache.twill.yarn.YarnTwillPreparer.start(YarnTwillPreparer.java:249)
      at org.apache.twill.yarn.EchoServerTestRun.testEchoServer(EchoServerTestRun.java:59)

      Attachments

        1. TWILL-96-1.patch
          7 kB
          Terence Yim

        Activity

          People

            chtyim Terence Yim
            chtyim Terence Yim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment