Unpickle File From Hdfs
I'm currently using Python 3 and would like to load a pickle file out of HDFS. from pywebhdfs.webhdfs import PyWebHdfsClient import pickle hdfs = PyWebHdfsClient(host='...', user
Solution 1:
Per BluBb, pickle.load
requires a Python FileHandler. hdfs.read_file
returns bytes in this case and using pickle.loads
read the model properly.
Post a Comment for "Unpickle File From Hdfs"