[ 
https://issues.apache.org/jira/browse/HADOOP-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662272#action_12662272
 ] 

Arun C Murthy commented on HADOOP-4998:
---------------------------------------

Yes to both.

We would need to maintain a shell-based implementation for platforms which do 
not the native implementations.

Having a JNI-based runtime would let us access runtime information in a 
significantly more performant manner. For e.g. HADOOP-4656 could be implemented 
by directly calling a native method which fetches groups via posix apis. The 
absence of which forces us to cache the output of 'groups' shell command. 

> Implement a native OS runtime for Hadoop
> ----------------------------------------
>
>                 Key: HADOOP-4998
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4998
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: native
>            Reporter: Arun C Murthy
>            Assignee: Arun C Murthy
>             Fix For: 0.21.0
>
>
> It would be useful to implement a JNI-based runtime for Hadoop to get access 
> to the native OS runtime. This would allow us to stop relying on exec'ing 
> bash to get access to information such as user-groups, process limits etc. 
> and for features such as chown/chgrp (org.apache.hadoop.util.Shell).

-- 
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