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