[ 
https://issues.apache.org/jira/browse/HADOOP-2297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547415
 ] 

Edward Yoon commented on HADOOP-2297:
-------------------------------------

I tryed.       
"System.err.println(switcher.toString());" was clearly worked.

But, .. how can i hide (or catch) a exception message as describe below?

{code}
java.lang.SecurityException
        at org.apache.hadoop.hbase.shell.JarCommand$2.checkExit(JarCommand.java:
146)
        at java.lang.Runtime.exit(Runtime.java:88)
        at java.lang.System.exit(System.java:906)
        at org.apache.hadoop.examples.PiEstimator.main(PiEstimator.java:251)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(Progra
mDriver.java:68)
        at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
        at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:49)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.hbase.shell.JarCommand$InvokeLauncher.run(JarComman
d.java:189)

Number of Maps = 10 Samples per Map = 10
Wrote input for Map #0
Wrote input for Map #1
Wrote input for Map #2
Wrote input for Map #3
Wrote input for Map #4
Wrote input for Map #5
Wrote input for Map #6
Wrote input for Map #7
Wrote input for Map #8
Wrote input for Map #9
Starting Job
Job Finished in 2.45 seconds
Estimated value of PI is 3.08

hql > _
{code}

> [Hbase Shell] System.exit() Handling in Jar command
> ---------------------------------------------------
>
>                 Key: HADOOP-2297
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2297
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Edward Yoon
>            Assignee: Edward Yoon
>             Fix For: 0.16.0
>
>         Attachments: 2297_v02.patch, 2297_v03.patch, Capture.java
>
>
> I'd like to block the exitVM by System.exit().
> Shell should terminate by "quit" command.

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

Reply via email to