使用Python的hdfs包读取h5文件,是乱码,而且不管怎样都转不过来。
代码如下:
from hdfs import *
import pandas as pd
import h5py
c = Client("http://192.168.5.161:50070")
with c.read('test/000001.h5') as fs:
data = fs.read()
怎样用hdfs读取h5文件? 目的是直接在hadoop上通过Python读取h5文件,而不是将文件下载本地读取,或者有其他方法也可以,谢谢!