fix 421 Maximum login limit has been reached. on hdfs-over-ftp
来源:互联网 发布:ipad air2必备软件 编辑:程序博客网 时间:2024/05/05 02:28
refer: http://clhjoe.wikispaces.com/fix+421+Maximum+login+limit+has+been+reached.+on+hdfs-over-ftp
hdfs-over-ftp是based on Apache ftpserver project的opensource软件,在我编dfs-fuse编不起来的时候实在是一个access hdfs的好方法,然而实际使用后发现常常会出现Maximum login limit has been reached的问题,trace一下code发现问题出现在ftpserver的ConnectionConfigFactory.java里private int maxLogins = 10;
所以当登入数超过10就一直喷error error error而hdfs-over-ftp又没有地方可以修改这个参数,所以只好自己改了。我是直接在HdfsOverFtpServer.java里修改了startServer()这个method
public static void startServer() throws Exception { log.info("Starting Hdfs-Over-Ftp server. port: " + port + " data-ports: " + passivePorts + " hdfs-uri: " + hdfsUri); HdfsOverFtpSystem.setHDFS_URI(hdfsUri); FtpServerFactory ftpServerFactory = new FtpServerFactory(); //-->add for set connection limit ConnectionConfigFactory scf=new ConnectionConfigFactory (); scf.setMaxLogins(999999); //--< DataConnectionConfigurationFactory dataConFactory = new DataConnectionConfigurationFactory(); dataConFactory.setPassivePorts(passivePorts); ListenerFactory listenerFactory = new ListenerFactory(); //-->add for set connection limit listenerFactory.setDataConnectionConfiguration(dataConFactory.createDataConnectionConfiguration()); //--< listenerFactory.setPort(port); Map listenerMap = new HashMap(); listenerMap.put("default", listenerFactory.createListener()); HdfsUserManager userManager = new HdfsUserManager(new Md5PasswordEncryptor(), new File("users.conf"), "admin"); ftpServerFactory.setListeners(listenerMap); ftpServerFactory.setUserManager(userManager); ftpServerFactory.setFileSystem(new HdfsFileSystemFactory()); ftpServerFactory.setConnectionConfig(scf.createConnectionConfig()); FtpServer ftpServer = ftpServerFactory.createServer(); ftpServer.start(); }
修改了标记的两块,看不太懂原先hdfs-over-ftp.sh脚本的话,直接将command放screen执行java -cp .:lib/ftplet-api-1.0.0.jar:lib/slf4j-api-1.5.2.jar:lib/ftpserver-core-1.
对应ftpserver-1.0.0-M3这个版本:
DefaultConnectionConfig.java里private int maxLogins = 10;
在HdfsOverFtpServer.java里修改了startServer()这个method,在相应位置对应添加如下两块即可
DefaultConnectionConfig con = new DefaultConnectionConfig();con.setMaxLogins(0);//0代表无限制server.setConnectionConfig(con);
- fix 421 Maximum login limit has been reached. on hdfs-over-ftp
- The maximum report processing jobs limit configured by your system administrator has been reached
- Crystal report 出现maximum report processing jobs limit configured by your system administrator has been reached错误的解决办法.
- Crystal report 出现maximum report processing jobs limit configured by your system administrator has been reached错误的解决办法.
- iOS真机调试-Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 days
- iOS开发中,真机调试-Your maximum App ID limit has been reached. You may create up to 10 App IDs every 7 da
- The maximum number of apps for free development profiles has been reached
- The maximum number of apps for free development profiles has been reached.
- The maximum number of apps for free development profiles has been reached
- FortiGate has reached connection limit..message
- iOS开发中,提示信息The maximum number of apps for free development profiles has been reached
- Accessing HDFS over FTP
- Hadoop2.7.1---hdfs-over-ftp
- HDFS小工具 -- HDFS over ftp
- inotify报错upper limit on inotify watches reached
- hdfs-over-ftp安装与配置
- hdfs-over-ftp安装与配置
- hdfs-over-ftp安装与配置
- dbcp 连接数据库实例
- linux压缩和解压缩命令大全
- USB HID设备读取数据问题
- 第11周项目1(2)
- openfire原理和源码分析
- fix 421 Maximum login limit has been reached. on hdfs-over-ftp
- fatal error C1083:无法打开包括文件:“Stdafx.h”: No such file or directory
- java 反射
- contentSize、contentInset和contentOffset区别
- 输出金字塔星号图(运用调用函数)
- 如何在iOS平台上实现视频硬解码?
- C++排序
- 抽象工厂模式
- 求两数的最大公约数