随堂笔记--
hdfs.
with hdfs_client.open(filepath,'wb',replication=1) as f:
f.write(b'hello')
replication=1是备份数量为1,write写入b'hello'是以二进制写入
assert 是断言
python操作HDFS代码可参考,具体使用时需要看hdfs3的API文档
hdfs3