You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2008/10/23 07:18:44 UTC

[jira] Created: (HAMA-90) Handling unknown command

Handling unknown command
------------------------

                 Key: HAMA-90
                 URL: https://issues.apache.org/jira/browse/HAMA-90
             Project: Hama
          Issue Type: Improvement
          Components: scripts 
            Reporter: Edward J. Yoon
             Fix For: 0.1.0


If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.

----
[root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2

Exception in thread "main" java.lang.NoClassDefFoundError: example
Caused by: java.lang.ClassNotFoundException: example
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (HAMA-90) Handling unknown command

Posted by Samuel Guo <gu...@gmail.com>.
hmm, I agree.

On Thu, Oct 23, 2008 at 2:42 PM, Edward J. Yoon <ed...@apache.org>wrote:

> >> You can't have your cake and eat it too.
>
> :-) Hmm... Yes.....
> Then, Should it be closed?
>
> /Edward
>
> On Thu, Oct 23, 2008 at 3:32 PM, Samuel Guo (JIRA) <ji...@apache.org>
> wrote:
> >
> >    [
> https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642075#action_12642075]
> >
> > Samuel Guo commented on HAMA-90:
> > --------------------------------
> >
> > hmm, forget my first comment.
> > You can't have your cake and eat it too.
> >
> > we just let it to run a CLASS like what hadoop's script do.
> >
> >> Handling unknown command
> >> ------------------------
> >>
> >>                 Key: HAMA-90
> >>                 URL: https://issues.apache.org/jira/browse/HAMA-90
> >>             Project: Hama
> >>          Issue Type: Improvement
> >>          Components: scripts
> >>            Reporter: Edward J. Yoon
> >>            Assignee: Samuel Guo
> >>             Fix For: 0.1.0
> >>
> >>
> >> If we type unknown command, Usage shoulde be printed instead of
> NoClassDefFoundError.
> >> ----
> >> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> >> Exception in thread "main" java.lang.NoClassDefFoundError: example
> >> Caused by: java.lang.ClassNotFoundException: example
> >>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >>         at java.security.AccessController.doPrivileged(Native Method)
> >>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >> Could not find the main class: example.  Program will exit.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
>
>
>
> --
> Best regards, Edward J. Yoon
> edwardyoon@apache.org
> http://blog.udanax.org
>

Re: [jira] Commented: (HAMA-90) Handling unknown command

Posted by "Edward J. Yoon" <ed...@apache.org>.
>> You can't have your cake and eat it too.

:-) Hmm... Yes.....
Then, Should it be closed?

/Edward

On Thu, Oct 23, 2008 at 3:32 PM, Samuel Guo (JIRA) <ji...@apache.org> wrote:
>
>    [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642075#action_12642075 ]
>
> Samuel Guo commented on HAMA-90:
> --------------------------------
>
> hmm, forget my first comment.
> You can't have your cake and eat it too.
>
> we just let it to run a CLASS like what hadoop's script do.
>
>> Handling unknown command
>> ------------------------
>>
>>                 Key: HAMA-90
>>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>>             Project: Hama
>>          Issue Type: Improvement
>>          Components: scripts
>>            Reporter: Edward J. Yoon
>>            Assignee: Samuel Guo
>>             Fix For: 0.1.0
>>
>>
>> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
>> ----
>> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
>> Exception in thread "main" java.lang.NoClassDefFoundError: example
>> Caused by: java.lang.ClassNotFoundException: example
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> Could not find the main class: example.  Program will exit.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>



-- 
Best regards, Edward J. Yoon
edwardyoon@apache.org
http://blog.udanax.org

[jira] Commented: (HAMA-90) Handling unknown command

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642074#action_12642074 ] 

Edward J. Yoon commented on HAMA-90:
------------------------------------

BTW, I'm not usre it is possible since we don't know that argument is a CLASSNAME or typing errors.. Is there a solution? 

> Handling unknown command
> ------------------------
>
>                 Key: HAMA-90
>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>             Project: Hama
>          Issue Type: Improvement
>          Components: scripts 
>            Reporter: Edward J. Yoon
>            Assignee: Samuel Guo
>             Fix For: 0.1.0
>
>
> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
> ----
> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> Exception in thread "main" java.lang.NoClassDefFoundError: example
> Caused by: java.lang.ClassNotFoundException: example
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HAMA-90) Handling unknown command

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samuel Guo reassigned HAMA-90:
------------------------------

    Assignee: Samuel Guo

> Handling unknown command
> ------------------------
>
>                 Key: HAMA-90
>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>             Project: Hama
>          Issue Type: Improvement
>          Components: scripts 
>            Reporter: Edward J. Yoon
>            Assignee: Samuel Guo
>             Fix For: 0.1.0
>
>
> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
> ----
> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> Exception in thread "main" java.lang.NoClassDefFoundError: example
> Caused by: java.lang.ClassNotFoundException: example
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HAMA-90) Handling unknown command

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-90.
--------------------------------

    Resolution: Won't Fix

Won't fix.

> Handling unknown command
> ------------------------
>
>                 Key: HAMA-90
>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>             Project: Hama
>          Issue Type: Improvement
>          Components: scripts 
>            Reporter: Edward J. Yoon
>            Assignee: Samuel Guo
>             Fix For: 0.1.0
>
>
> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
> ----
> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> Exception in thread "main" java.lang.NoClassDefFoundError: example
> Caused by: java.lang.ClassNotFoundException: example
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HAMA-90) Handling unknown command

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642075#action_12642075 ] 

Samuel Guo commented on HAMA-90:
--------------------------------

hmm, forget my first comment.
You can't have your cake and eat it too.

we just let it to run a CLASS like what hadoop's script do.

> Handling unknown command
> ------------------------
>
>                 Key: HAMA-90
>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>             Project: Hama
>          Issue Type: Improvement
>          Components: scripts 
>            Reporter: Edward J. Yoon
>            Assignee: Samuel Guo
>             Fix For: 0.1.0
>
>
> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
> ----
> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> Exception in thread "main" java.lang.NoClassDefFoundError: example
> Caused by: java.lang.ClassNotFoundException: example
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HAMA-90) Handling unknown command

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642058#action_12642058 ] 

Edward J. Yoon commented on HAMA-90:
------------------------------------

Oh.... I found a ' CLASSNAME        run the class named CLASSNAME'.
It seems difficult problem.


> Handling unknown command
> ------------------------
>
>                 Key: HAMA-90
>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>             Project: Hama
>          Issue Type: Improvement
>          Components: scripts 
>            Reporter: Edward J. Yoon
>             Fix For: 0.1.0
>
>
> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
> ----
> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> Exception in thread "main" java.lang.NoClassDefFoundError: example
> Caused by: java.lang.ClassNotFoundException: example
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HAMA-90) Handling unknown command

Posted by "Samuel Guo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642067#action_12642067 ] 

Samuel Guo commented on HAMA-90:
--------------------------------

hmm~ print usage when encounting a unknown command. I will fix it.

> Handling unknown command
> ------------------------
>
>                 Key: HAMA-90
>                 URL: https://issues.apache.org/jira/browse/HAMA-90
>             Project: Hama
>          Issue Type: Improvement
>          Components: scripts 
>            Reporter: Edward J. Yoon
>             Fix For: 0.1.0
>
>
> If we type unknown command, Usage shoulde be printed instead of NoClassDefFoundError.
> ----
> [root@udanax hama-trunk]# bin/hama example addition -m 2 -r 1 2 2
> Exception in thread "main" java.lang.NoClassDefFoundError: example
> Caused by: java.lang.ClassNotFoundException: example
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: example.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.