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

James Clampffer updated HDFS-9758:
----------------------------------
    Attachment: hdfs_posix.py

Adding my example using the the C API and CTypes to implement File and 
FileSystem in python

HdfsFile.readline isn't even half baked, the idea was to read 4KB blocks that 
looked like pages into a dict until a newline char was found.  That dict could 
also function as a small cache.  The rest of the implementation should work 
though.

> libhdfs++: Implement Python bindings
> ------------------------------------
>
>                 Key: HDFS-9758
>                 URL: https://issues.apache.org/jira/browse/HDFS-9758
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: James Clampffer
>         Attachments: hdfs_posix.py
>
>
> It'd be really useful to have bindings for various scripting languages.  
> Python would be a good start because of it's popularity and how easy it is to 
> interact with shared libraries using the ctypes module.  I think bindings for 
> the V8 engine that nodeJS uses would be a close second in terms of expanding 
> the potential user base.
> Probably worth starting with just adding a synchronous API and building from 
> there to avoid interactions with python's garbage collector until the 
> bindings prove to be solid.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to