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

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] 找不到指定的模块。


慕粉4945996
浏览 1262回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP