Hadoop offers a REST API using curl. For some reason, I need to use httplib but not pycurl.
Can you translate this request to httplib? The test.txt
local file should be transmitted by HTTPConnection.send(data)
, as I need transmit the file by chunk.
curl -i -X PUT -T test.txt "http://www.SomeDomain.com/webhdfs/v1/levi/test.txt?op=CREATE"