[ https://issues.apache.org/jira/browse/HDFS-4712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13636160#comment-13636160 ]
andrea manzi commented on HDFS-4712: ------------------------------------ Hi Colin, thanks for the reply. What we have mapped in JNI is creation of the DFSClient and the call to the method datanodeReport of that class. We have a struct mapping the DataNodeInfo and a method to free the the memory. The problem with this approach is that the user running the client should be a cluster superuser. I didn't think about the NameNodeRpcServer#getDatanodeReport that you are referring to. Do you think it would be feasible to expose that method instead and it will not require then superuser provilegies? thanks Andrea > 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