python操作hdfs时抛出hdfs.util.HdfsError: None的异常?

python操作hdfs向hdfs上传文件时抛出异常
File "E:/代码/2019-6/6-10/myhdfs.py", line 7, in
client.upload('/foo','E:\资料\py.txt')
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 605, in upload
raise err
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 594, in upload
_upload(path_tuple)
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 524, in _upload
self.write(_temp_path, wrap(reader, chunk_size, progress), **kwargs)
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 456, in write
buffersize=buffersize,
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 112, in api_handler
raise err
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 107, in api_handler
**self.kwargs
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 210, in _request
_on_error(response)
File "E:\python-01\bin\lib\site-packages\hdfs\client.py", line 50, in _on_error
raise HdfsError(message, exception=exception)
hdfs.util.HdfsError: None

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐