zoukankan      html  css  js  c++  java
  • Hadoop 客户端问题

    错误:

    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    Exception in thread "main" java.net.ConnectException: Call From DESKTOP-PU0J6PO/192.168.32.1 to s101:8020 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)
     at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:732)
     at org.apache.hadoop.ipc.Client.call(Client.java:1479)
     at org.apache.hadoop.ipc.Client.call(Client.java:1412)
     at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
     at com.sun.proxy.$Proxy9.getFileInfo(Unknown Source)
     at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:771)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
     at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
     at com.sun.proxy.$Proxy10.getFileInfo(Unknown Source)
     at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:2108)
     at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1305)
     at org.apache.hadoop.hdfs.DistributedFileSystem$22.doCall(DistributedFileSystem.java:1301)
     at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
     at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1301)
     at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1424)
     at org.apache.hadoop.fs.FileUtil.checkDest(FileUtil.java:496)
     at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:348)
     at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:338)
     at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1965)
     at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1933)
     at org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1898)
     at big_demo1.FS_demo.main(FS_demo.java:15)
    Caused by: java.net.ConnectException: Connection refused: no further information
     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
     at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
     at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
     at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
     at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
     at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
     at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
     at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
     at org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)

    错误原因:

    端口啊!!!!!!!!!

  • 相关阅读:
    The Python Standard Library
    Python 中的round函数
    Python文件类型
    Python中import的用法
    Python Symbols 各种符号
    python 一行写多个语句
    免费SSL证书(https网站)申请,便宜SSL https证书申请
    元宇宙游戏Axie龙头axs分析
    OLE DB provider "SQLNCLI10" for linked server "x.x.x.x" returned message "No transaction is active.".
    The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "xxx.xxx.xxx.xxx" was unable to begin a distributed transaction.
  • 原文地址:https://www.cnblogs.com/wbdream/p/9833111.html
Copyright © 2011-2022 走看看