hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Yoon (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2297) [Hbase Shell] System.exit() Handling in Jar command
Date Tue, 04 Dec 2007 04:55:43 GMT

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

Edward Yoon updated HADOOP-2297:
--------------------------------

    Attachment: test_code.patch

This is my test code by your example code.
But, exceptions are printed.

{code}
java.lang.SecurityException
	at org.apache.hadoop.hbase.shell.ShellSecurityManager.checkExit(ShellSecurityManager.java:47)
      ....
{code}

here is a full Log info : 

{code}
hql > jar ./build/hadoop-0.16.0-dev-examples.jar pi 10 10;
07/12/04 13:46:12 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker,
sessionId=
07/12/04 13:46:12 INFO mapred.FileInputFormat: Total input paths to process : 10
07/12/04 13:46:12 INFO mapred.JobClient: Running job: job_local_1
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0000' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0001' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0002' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0003' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0004' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0005' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0006' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0007' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0008' done.
07/12/04 13:46:12 INFO mapred.MapTask: numReduceTasks: 1
07/12/04 13:46:12 INFO mapred.LocalJobRunner: Generated 1 samples.
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'job_local_1_map_0009' done.
07/12/04 13:46:12 INFO mapred.LocalJobRunner: reduce > reduce
07/12/04 13:46:12 INFO mapred.TaskRunner: Task 'reduce_w6iaep' done.
07/12/04 13:46:12 INFO mapred.TaskRunner: Saved output of task 'reduce_w6iaep' to file:/root/workspace/hadoop/test-mini-mr/out
07/12/04 13:46:13 INFO mapred.JobClient: Job complete: job_local_1
07/12/04 13:46:13 INFO mapred.JobClient: Counters: 6
07/12/04 13:46:13 INFO mapred.JobClient:   Map-Reduce Framework
07/12/04 13:46:13 INFO mapred.JobClient:     Map input records=10
07/12/04 13:46:13 INFO mapred.JobClient:     Map output records=20
07/12/04 13:46:13 INFO mapred.JobClient:     Map input bytes=240
07/12/04 13:46:13 INFO mapred.JobClient:     Map output bytes=320
07/12/04 13:46:13 INFO mapred.JobClient:     Reduce input groups=2
07/12/04 13:46:13 INFO mapred.JobClient:     Reduce input records=20
java.lang.SecurityException
	at org.apache.hadoop.hbase.shell.ShellSecurityManager.checkExit(ShellSecurityManager.java:47)
	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(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.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(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.hadoop.hbase.shell.JarCommand$Misbehaved.run(JarCommand.java:178)
{Thread[Thread-2,5,]=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 1.199 seconds
Estimated value of PI is 3.0
}
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, test_code.patch
>
>
> 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.


Mime
View raw message