yaojiank 发表于 2013-10-25 10:42:18

hdfs-over-ftp配置后,ftp无法访问,报错如下。

2013-05-16 15:49:09,660 : INFO : FtpServer : FTP server started
2013-05-16 15:49:40,120 : INFO : LoggingFilter : CREATED
2013-05-16 15:49:40,135 : INFO : LoggingFilter : OPENED
2013-05-16 15:49:40,174 : INFO : LoggingFilter : SENT: 220 Service ready for new user.
2013-05-16 15:49:46,631 : INFO : LoggingFilter : RECEIVED: USER HADOOP
2013-05-16 15:49:46,655 : INFO : LoggingFilter : SENT: 331 User name okay, need password for hadoop.
2013-05-16 15:49:46,656 : INFO : LoggingFilter : RECEIVED: PASS *****
2013-05-16 15:49:46,673 : INFO : PASS : Login success - hadoop
2013-05-16 15:49:46,673 : INFO : LoggingFilter : SENT: 230 User logged in, proceed.
2013-05-16 15:49:46,676 : INFO : LoggingFilter : RECEIVED: PWD
2013-05-16 15:49:46,694 : INFO : LoggingFilter : SENT: 257 "/" is current directory.
2013-05-16 15:49:46,697 : INFO : LoggingFilter : RECEIVED: CWD /
2013-05-16 15:49:46,697 : DEBUG : HdfsFileObject : is directory? : /
2013-05-16 15:49:46,782 : DEBUG : Configuration : java.io.IOException: config()
      at org.apache.hadoop.conf.Configuration.(Configuration.java:211)
      at org.apache.hadoop.conf.Configuration.(Configuration.java:198)
      at org.apache.hadoop.contrib.ftp.HdfsOverFtpSystem.hdfsInit(HdfsOverFtpSystem.java:29)
      at org.apache.hadoop.contrib.ftp.HdfsOverFtpSystem.getDfs(HdfsOverFtpSystem.java:50)
      at org.apache.hadoop.contrib.ftp.HdfsFileObject.isDirectory(HdfsFileObject.java:79)
      at org.apache.hadoop.contrib.ftp.HdfsFileSystemView.changeDirectory(HdfsFileSystemView.java:104)
      at org.apache.ftpserver.command.CWD.execute(CWD.java:69)
      at org.apache.ftpserver.DefaultFtpHandler.messageReceived(DefaultFtpHandler.java:137)
      at org.apache.ftpserver.listener.nio.FtpHandlerAdapter.messageReceived(FtpHandlerAdapter.java:60)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.ftpserver.filter.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:81)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.filter.logging.MdcInjectionFilter.filter(MdcInjectionFilter.java:137)
      at org.apache.mina.filter.util.CommonEventFilter.messageReceived(CommonEventFilter.java:70)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
      at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:551)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:543)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:487)
      at java.lang.Thread.run(Thread.java:619)
2013-05-16 15:49:47,130 : DEBUG : Client : The ping interval is60000ms.
2013-05-16 15:49:47,172 : DEBUG : Client : Connecting to /10.18.100.112:9000
2013-05-16 15:49:47,199 : DEBUG : Client : IPC Client (47) connection to /10.18.100.112:9000 from hadoop sending #0
2013-05-16 15:49:47,202 : DEBUG : Client : IPC Client (47) connection to /10.18.100.112:9000 from hadoop: starting, having connections 1
2013-05-16 15:49:47,213 : DEBUG : Client : closing ipc connection to /10.18.100.112:9000: null
java.io.EOFException
      at java.io.DataInputStream.readInt(DataInputStream.java:375)
      at org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:501)
      at org.apache.hadoop.ipc.Client$Connection.run(Client.java:446)
2013-05-16 15:49:47,216 : DEBUG : Client : IPC Client (47) connection to /10.18.100.112:9000 from hadoop: closed
2013-05-16 15:49:47,216 : DEBUG : Client : IPC Client (47) connection to /10.18.100.112:9000 from hadoop: stopped, remaining connections 0
2013-05-16 15:49:47,216 : DEBUG : HdfsFileObject : / is not dir
java.io.IOException: Call to /10.18.100.112:9000 failed on local exception: java.io.EOFException
      at org.apache.hadoop.ipc.Client.wrapException(Client.java:775)
      at org.apache.hadoop.ipc.Client.call(Client.java:743)
      at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
      at $Proxy16.getProtocolVersion(Unknown Source)
      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359)
      at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:106)
      at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:207)
      at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:170)
      at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:82)
      at org.apache.hadoop.contrib.ftp.HdfsOverFtpSystem.hdfsInit(HdfsOverFtpSystem.java:32)
      at org.apache.hadoop.contrib.ftp.HdfsOverFtpSystem.getDfs(HdfsOverFtpSystem.java:50)
      at org.apache.hadoop.contrib.ftp.HdfsFileObject.isDirectory(HdfsFileObject.java:79)
      at org.apache.hadoop.contrib.ftp.HdfsFileSystemView.changeDirectory(HdfsFileSystemView.java:104)
      at org.apache.ftpserver.command.CWD.execute(CWD.java:69)
      at org.apache.ftpserver.DefaultFtpHandler.messageReceived(DefaultFtpHandler.java:137)
      at org.apache.ftpserver.listener.nio.FtpHandlerAdapter.messageReceived(FtpHandlerAdapter.java:60)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.ftpserver.filter.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:81)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.filter.logging.MdcInjectionFilter.filter(MdcInjectionFilter.java:137)
      at org.apache.mina.filter.util.CommonEventFilter.messageReceived(CommonEventFilter.java:70)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
      at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:551)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:543)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:487)
      at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.EOFException
      at java.io.DataInputStream.readInt(DataInputStream.java:375)
      at org.apache.hadoop.ipc.Client$Connection.receiveResponse(Client.java:501)
      at org.apache.hadoop.ipc.Client$Connection.run(Client.java:446)
2013-05-16 15:49:47,222 : INFO : LoggingFilter : SENT: 550 No such directory.
2013-05-16 15:49:48,774 : INFO : LoggingFilter : RECEIVED: CWD /
2013-05-16 15:49:48,774 : DEBUG : HdfsFileObject : is directory? : /
2013-05-16 15:49:48,775 : DEBUG : CWD : Failed to change directory in file system
java.lang.NullPointerException
      at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:453)
      at org.apache.hadoop.contrib.ftp.HdfsFileObject.isDirectory(HdfsFileObject.java:80)
      at org.apache.hadoop.contrib.ftp.HdfsFileSystemView.changeDirectory(HdfsFileSystemView.java:104)
      at org.apache.ftpserver.command.CWD.execute(CWD.java:69)
      at org.apache.ftpserver.DefaultFtpHandler.messageReceived(DefaultFtpHandler.java:137)
      at org.apache.ftpserver.listener.nio.FtpHandlerAdapter.messageReceived(FtpHandlerAdapter.java:60)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.ftpserver.filter.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:81)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.filter.logging.MdcInjectionFilter.filter(MdcInjectionFilter.java:137)
      at org.apache.mina.filter.util.CommonEventFilter.messageReceived(CommonEventFilter.java:70)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
      at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:551)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:543)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:487)
      at java.lang.Thread.run(Thread.java:619)
2013-05-16 15:49:48,779 : INFO : LoggingFilter : SENT: 550 No such directory.
2013-05-16 15:49:49,960 : INFO : LoggingFilter : RECEIVED: CWD /
2013-05-16 15:49:49,960 : DEBUG : HdfsFileObject : is directory? : /
2013-05-16 15:49:49,961 : DEBUG : CWD : Failed to change directory in file system
java.lang.NullPointerException
      at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:453)
      at org.apache.hadoop.contrib.ftp.HdfsFileObject.isDirectory(HdfsFileObject.java:80)
      at org.apache.hadoop.contrib.ftp.HdfsFileSystemView.changeDirectory(HdfsFileSystemView.java:104)
      at org.apache.ftpserver.command.CWD.execute(CWD.java:69)
      at org.apache.ftpserver.DefaultFtpHandler.messageReceived(DefaultFtpHandler.java:137)
      at org.apache.ftpserver.listener.nio.FtpHandlerAdapter.messageReceived(FtpHandlerAdapter.java:60)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.ftpserver.filter.FtpLoggingFilter.messageReceived(FtpLoggingFilter.java:81)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.filter.logging.MdcInjectionFilter.filter(MdcInjectionFilter.java:137)
      at org.apache.mina.filter.util.CommonEventFilter.messageReceived(CommonEventFilter.java:70)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
      at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
      at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:60)
      at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:551)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:543)
      at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:487)
      at java.lang.Thread.run(Thread.java:619)
2013-05-16 15:49:49,965 : INFO : LoggingFilter : SENT: 550 No such directory.
页: [1]
查看完整版本: hdfs-over-ftp配置后,ftp无法访问,报错如下。