4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)

下载并解压

https://www.eclipse.org/downloads/packages/release/Luna/SR2.
下载安装包,将安装包解压到/usr/lib
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)

创建桌面启动器

在桌面创建eclipse.desktop,并编辑内容
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)

4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)
编辑保存后,双击图标,桌面启动器就创建好了

eclipse中创建新项目

4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)

在项目工程中添加hadoop配置文件

4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)

为项目添加需要的JAR包

4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)

创建类,编写代码

4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)
4.3Eclipse安装与使用(Centos7安装eclipse luna并为调试hdfs java程序做准备)