org.apache.hadoop.yarn.exceptions.InvalidContainerException: Container container_1395403894077_0001_02_000001 rejected as it is allocated by a previous RM

Spring JIRA | Thomas Risberg | 3 years ago
  1. 0

    getting the following exception for both hadoop23 and cdh5: 08:12:12,935 INFO pool-7-thread-2 amlauncher.AMLauncher - Error launching appattempt_1395403894077_0001_000002. Got exception: org.apache.hadoop.yarn.exceptions.InvalidContainerException: Container container_1395403894077_0001_02_000001 rejected as it is allocated by a previous RM at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.instantiateException(SerializedExceptionPBImpl.java:152) at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.deSerialize(SerializedExceptionPBImpl.java:106) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:122) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:249) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    Spring JIRA | 3 years ago | Thomas Risberg
    org.apache.hadoop.yarn.exceptions.InvalidContainerException: Container container_1395403894077_0001_02_000001 rejected as it is allocated by a previous RM
  2. 0

    getting the following exception for both hadoop23 and cdh5: 08:12:12,935 INFO pool-7-thread-2 amlauncher.AMLauncher - Error launching appattempt_1395403894077_0001_000002. Got exception: org.apache.hadoop.yarn.exceptions.InvalidContainerException: Container container_1395403894077_0001_02_000001 rejected as it is allocated by a previous RM at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.instantiateException(SerializedExceptionPBImpl.java:152) at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.deSerialize(SerializedExceptionPBImpl.java:106) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:122) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:249) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

    Spring JIRA | 3 years ago | Thomas Risberg
    org.apache.hadoop.yarn.exceptions.InvalidContainerException: Container container_1395403894077_0001_02_000001 rejected as it is allocated by a previous RM

    Root Cause Analysis

    1. org.apache.hadoop.yarn.exceptions.InvalidContainerException

      Container container_1395403894077_0001_02_000001 rejected as it is allocated by a previous RM

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    3. hadoop-yarn-common
      SerializedExceptionPBImpl.deSerialize
      1. org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.instantiateException(SerializedExceptionPBImpl.java:152)
      2. org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.deSerialize(SerializedExceptionPBImpl.java:106)
      2 frames
    4. hadoop-yarn-server-resourcemanager
      AMLauncher.run
      1. org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:122)
      2. org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:249)
      2 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:744)
      3 frames