标签:arm host test bsp 亲测 har cli 读取 2.7
# -*- coding:utf-8 -*- from hdfs.client import Client client = Client("http://localhost:50070") filepath="/data/input/test.txt" with client.read(filepath) as fs: content = fs.read() print(content)
提示:mac pycharm python2.7环境,亲测无误!
标签:arm host test bsp 亲测 har cli 读取 2.7
原文地址:https://www.cnblogs.com/RHadoop-Hive/p/9396169.html