Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hadoop 使用 curl 提供了一个 REST API。出于某种原因,我需要使用 httplib 而不是 pycurl。
你能把这个请求翻译成httplib吗?test.txt本地文件应该由 传输,HTTPConnection.send(data)因为我需要按块传输文件。
test.txt
HTTPConnection.send(data)
curl -i -X PUT -T test.txt "http://www.SomeDomain.com/webhdfs/v1/levi/test.txt?op=CREATE"