[ 
https://issues.apache.org/jira/browse/MAPREDUCE-7251?focusedWorklogId=716891&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-716891
 ]

ASF GitHub Bot logged work on MAPREDUCE-7251:
---------------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Jan/22 05:39
            Start Date: 28/Jan/22 05:39
    Worklog Time Spent: 10m 
      Work Description: cptaffe commented on pull request #1751:
URL: https://github.com/apache/hadoop/pull/1751#issuecomment-1023904146


   @goiri do you mind taking another look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 716891)
    Time Spent: 40m  (was: 0.5h)

> 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
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org

Reply via email to