[ https://issues.apache.org/jira/browse/MAPREDUCE-7251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16992903#comment-16992903 ]
Hadoop QA commented on MAPREDUCE-7251: -------------------------------------- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 0s{color} | {color:blue} Docker mode activated. {color} | | {color:red}-1{color} | {color:red} docker {color} | {color:red} 0m 11s{color} | {color:red} Docker failed to build yetus/hadoop:104ccca9169. {color} | \\ \\ || Subsystem || Report/Notes || | GITHUB PR | https://github.com/apache/hadoop/pull/1751 | | JIRA Issue | MAPREDUCE-7251 | | Console output | https://builds.apache.org/job/hadoop-multibranch/job/PR-1751/2/console | | versions | git=2.17.1 | | Powered by | Apache Yetus 0.11.1 https://yetus.apache.org | This message was automatically generated. > Present friendlier error for non-static main > -------------------------------------------- > > Key: MAPREDUCE-7251 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-7251 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Affects Versions: 2.9.2 > Reporter: Connor Taffe > Priority: Minor > > When running a jar with hadoop jar, e.g. when submitting using gcloud > dataproc jobs submit hadoop, a JAR with a non-static main gives a cryptic > error message that could be clearer. The current error message in Hadoop > 2.9.2 looks like: > {code:java} > Exception in thread "main" java.lang.NullPointerException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:244) > at org.apache.hadoop.util.RunJar.main(RunJar.java:158) > at > com.google.cloud.hadoop.services.agent.job.shim.HadoopRunJarShim.main(HadoopRunJarShim.java:12) > {code} > Instead, it would be more helpful to show an error message like "Method main > must be static: foo.bar.BazMR". -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org