[ 
https://issues.apache.org/jira/browse/HDFS-4712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639425#comment-13639425
 ] 

Colin Patrick McCabe commented on HDFS-4712:
--------------------------------------------

Hi Andrea,

I think {{datanodeReport}} is the method you want, much better than my earlier 
suggestion.

If I am interpreting correctly, you say you are creating your own 
{{DFSClient}}.  It shouldn't be necessary for you to do that, since there 
should already be one of those that you can get from the existing 
{{FileSystem}}.

I don't think that the requirement for superuser privileges is a problem.  Just 
set {{errno}} to {{EPERM}} if the user doesn't have the correct permissions.  
The requirement to be superuser here is deliberate, and we don't want to open a 
security hole.

Please do attach the code; that's the first step towards getting it included in 
HDFS.  You can also click "submit patch" to get JIRA results on it.
                
> New libhdfs method hdfsGetDataNodes
> -----------------------------------
>
>                 Key: HDFS-4712
>                 URL: https://issues.apache.org/jira/browse/HDFS-4712
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>          Components: libhdfs
>            Reporter: andrea manzi
>
> we have implemented a possible extension to libhdfs to retrieve information 
> about the available datanodes ( there was a mail on the hadoop-hdsf-dev 
> mailing list initially abut this :
> http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-dev/201204.mbox/%3CCANhO-
> s0mvororrxpjnjbql6brkj4c7l+u816xkdc+2r0whj...@mail.gmail.com%3E)
> i would like to know how to proceed to create a patch, cause on the wiki 
> http://wiki.apache.org/hadoop/HowToContribute i can see info about JAVA 
> patches but nothing related to extensions in C.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to