参考:
http://blog.csdn.net/sinat_33741547/article/details/54428726
1、先更新pip,防止版本过低
pip install --upgrade pip
2、pip install pyHdfs
from pyhdfs import HdfsClient
client = HdfsClient(hosts='192.168.1.210:50070')
print(client.list_status('/'))
参考: http://blog.csdn.net/sinat_33741547/article/details/54428726 1、先更新pip,防止版本过低
from pyhdfs import HdfsClient |
||