标签:print war host list hdfs 连接 pytho cal hive
from hdfs.client import Client
client = Client("http://localhost:50070")
print client.list(‘/‘)
hdfs_dir = ‘/data/hive/warehouse‘
with client.read(hdfs_dir) as f:
print f.read()
标签:print war host list hdfs 连接 pytho cal hive
原文地址:http://www.cnblogs.com/kayy/p/7755770.html