myEclipse中配置Hadoop环境,按照网上的教程配置后,DFS连接失败,报错:server ipc version 9 cannot communicate with client version 3,意思是Hadoop server端和client端版本不匹配。
解决方法:
1. 查看server端Hadoop版本:
由于使用的是secureCRT,执行命令行:
hadoop version
输出版本:Hadoop2.6.0
2. 查看client端Hadoop版本:
myeclipse—>windows—>Preference—>Hadoop Map/Reduce—>Hadoop installation directory
Hadoop 版本为2.6.0
3. 查看eclipse Hadoop插件版本:
插件位置在eclipse安装路径/plugins下,我的myeclipse安装路径为D:\Program Files (x86)\myeclipse,插件位置:D:\Program Files (x86)\myeclipse\plugins
但是!插件版本不是2.6.0,是2.2.0,这是问题的出错点,网上重新下载了2.6.0版本的替换掉,重启myeclipse,不匹配错误消失。
4.遗留问题:
new MapReduceLocation时,填写的Map/Reduce Master 和DFS Master两个配置,在marpred-site.xml(/sunlight/hadoop-2.6.0/etc/hadoop),core-site.xml(/sunlight/hadoop-2.6.0/etc/hadoop)中没有找到相对应的值。
版本不匹配问题解决后,又产生新问题: operation category read is not supported in state standby