HDFS配置eclipse
配置Windows环境变量
配置环境变量
**step1.配置jdk环境变量 **
step2.配置hadoop环境变量
step3.修改系统的用户名
root为linux中的超级与用户
配置eclipse的环境
step1.在关闭eclipse的状态下将hadoop-eclipse-plugin-2.6.9.jar 包放入eclipse的安装目录下的plugins文件中
step2.启动eclipse
配置eclipse
在Windows的preferences中
step1.打开HADOOP MAP/Reduce — 放入hadoop-2.6.5文件
step2. 打开java的Build path 的User Library — 导入依赖包(方便以后一次性引用,因为建一次引一次太麻烦)
在Show View中
** step1.添加 Map/Reduce Locations(Other中)会在下面显示一个Map/Reduce Locations**
step2.在Map/Reduce Locations栏中 new Hadoop Location 中 取消勾选 User M/R Master host 更改Host为虚拟机中的HDFS namenode的ip 以及端口,修改User name为root,点击finish