python - Is there a way to append data to a hdfs file using Pydoop? -
i trying write contents of object file in hdfs using python. this, have found hdfs api implemented in python named pydoop. reading api, can use dump()
method of pydoop write contents file in hdfs path have not seen method append()
append new content old file. know possible have found command line syntax hdfs thinking of using pydoop doing this. appreciated. thanks
haven't used pydoop, reads python api appending regular file.
from pydoop import hdfs hdfs.open('/path/to/file', 'a') f: f.write('bla')
Comments
Post a Comment