为了账号安全,请及时绑定邮箱和手机立即绑定

这个错误是因为test_port设置错误?

/ 猿问

这个错误是因为test_port设置错误?

weixin_雨人_cnwzB0 2019-01-05 17:35:05

http://localhost:50070/  可以登录

-----------下面这样设置的-------------

test_host = 'localhost'

test_port = 50070

----------------------------------------

Traceback (most recent call last):

  File "E:\python\hadoop\mkdemo\hdfsdemo.py", line 37, in <module>

   hdfs_client = HDFileSystem(host=test_host,port=test_port) 

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit

e-packages\hdfs3\core.py", line 76, in __init__

    self.connect()

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit

e-packages\hdfs3\core.py", line 94, in connect

    get_lib()

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit

e-packages\hdfs3\core.py", line 657, in get_lib

    from .lib import _lib as l

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\sit

e-packages\hdfs3\lib.py", line 15, in <module>

    _lib = ct.cdll.LoadLibrary(name)

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\cty

pes\__init__.py", line 434, in LoadLibrary

    return self._dlltype(name)

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\cty

pes\__init__.py", line 356, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: [WinError 126] 找不到指定的模块。


查看完整描述

目前暂无任何回答

添加回答

回复

举报

0/150
提交
取消
意见反馈 邀请有奖 帮助中心 APP下载
官方微信