[ https://issues.apache.org/jira/browse/HDFS-4712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13635506#comment-13635506 ]
Colin Patrick McCabe commented on HDFS-4712: -------------------------------------------- Hi Andrea, The procedure for creating C patches is much the same as that for Java. Post your patch here in the form of a diff, get Jenkins results and feedback, and then get a +1 from a committer. It sounds like what you want is some way to expose {{NameNodeRpcServer#getDatanodeReport}}, which ultimately calls {{FSNamesystem#datanodeReport}}. If you return dynamically allocated memory, please be sure to also offer a function in libhdfs to free that memory. You should not assume that the application and the library use the same memory allocator. Also, as M. C. Srivas commented, please be aware that the list of DataNodes can change at any point. It would help if you would describe what you're trying to do. > 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