hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3157) Refactor the exception handling in ConverterUtils#to*Id
Date Thu, 12 Feb 2015 14:26:22 GMT

    [ https://issues.apache.org/jira/browse/YARN-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14318243#comment-14318243
] 

Hudson commented on YARN-3157:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #2034 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2034/])
YARN-3157. Refactor the exception handling in ConverterUtils#to*Id. Contributed by Bibin A
Chundatt. (ozawa: rev 95a41bf35d8ba0a1ec087f456914231103d98fb9)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ConverterUtils.java
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestConverterUtils.java
* hadoop-yarn-project/CHANGES.txt
Revert "YARN-3157. Refactor the exception handling in ConverterUtils#to*Id. Contributed by
Bibin A Chundatt." (ozawa: rev 4cbaa74f623ac8ee2c5b7308ac33a807a33e17f7)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestConverterUtils.java
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/util/ConverterUtils.java


> Refactor the exception handling in ConverterUtils#to*Id
> -------------------------------------------------------
>
>                 Key: YARN-3157
>                 URL: https://issues.apache.org/jira/browse/YARN-3157
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: resourcemanager
>    Affects Versions: 2.6.0
>            Reporter: Bibin A Chundatt
>            Assignee: Bibin A Chundatt
>            Priority: Minor
>         Attachments: YARN-3157.1.patch, YARN-3157.2.patch, YARN-3157.2.patch, YARN-3157.3.patch,
YARN-3157.patch, YARN-3157.patch
>
>
> yarn.cmd application -kill application_123
> Format wrong given for application id or attempt. Exception will be thrown to console
with out any info
> {quote}
> 15/02/07 22:18:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for
your platform... using builtin-java classes where
> Exception in thread "main" java.util.NoSuchElementException
>         at com.google.common.base.AbstractIterator.next(AbstractIterator.java:75)
>         at org.apache.hadoop.yarn.util.ConverterUtils.toApplicationId(ConverterUtils.java:146)
>         at org.apache.hadoop.yarn.util.ConverterUtils.toApplicationId(ConverterUtils.java:205)
>         at org.apache.hadoop.yarn.client.cli.ApplicationCLI.killApplication(ApplicationCLI.java:383)
>         at org.apache.hadoop.yarn.client.cli.ApplicationCLI.run(ApplicationCLI.java:219)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
> {quote}
> Need to add catch block for java.util.NoSuchElementException also
> {color:red}./yarn container -status container_e20_1423221031460_0003_01{color}
> Exception in thread "main" java.util.NoSuchElementException
>         at com.google.common.base.AbstractIterator.next(AbstractIterator.java:75)
>         at org.apache.hadoop.yarn.api.records.ContainerId.fromString(ContainerId.java:227)
>         at org.apache.hadoop.yarn.util.ConverterUtils.toContainerId(ConverterUtils.java:178)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message