SlideShare a Scribd company logo
基于Eclipse和Hadoop平台 应用开发入门手册 西铭(李振华) 2010-4-12 1
目录 2
1.你准备好了吗? ,[object Object]
   Linux 64bit 运行Hadoop
   Windows 用于运行Eclipse
   Java SE Development Kit(JDK)
下载:http://java.sun.com/javase/downloads/widget/jdk6.jsp
需要下载Windows 32bit和Linux64bit 2个版本
Cygwin(Linux开发环境忽略)
下载: http://cygwin.com/
   Ant
下载:http://ant.apache.org/bindownload.cgi
需要下载Linux系统上
   Eclipse Galileo版
下载:http://www.eclipse.org/downloads/
需要下载Eclipse IDE for Java Developers
   For Windows 32bit和Linux64bit 2个版本
Hadoop
   0.19.2官方版下载:http://www.apache.org/dyn/closer.cgi/hadoop/core/3
2.Windows环境搭建-WorkDir 注:本案例以Hadoop0.19.2进行安装演示,与官方版本的配置区别会提示说明。 工作目录(workdir)=D:earchCenterwork 将下载的windows版本的JDK1.6、Eclipse、Hadoop0.19.2放到工作目录下 4
2.Windows环境搭建-安装JDK 1.直接安装JDK安装包 2.设定系统环境变量     JAVA_HOME=C:rogram Filesavadk1.6.0_19(你安装的目录)     Path = 在原有path内容后面加“; C:rogram Filesavadk1.6.0_19in” 5
2.Windows环境搭建-安装Cygwin 1.直接双击Cygwin,运行setup.exe 2. 选择通过internet 安装,next;设置安装目录,next;选择直连访问internet,next;选择一个下载站点,next; 3.现在安装的内容时,通过search框搜索ssh,找到Open SSH,点击安装;之后同样方法查找ssl,点击安装;一直到最后安装完成 6
2.Windows环境搭建-安装Cygwin 4. 设置环境变量,将D:rogram Filesygwinin路径追加到path环境变量中 7
3.Linux环境搭建-WorkDir 注:工作目录可以自己根据情况设定,这里演示使用 开发服务器:dev5 操作系统:Linux 64位 4U7版本 工作目录(WorkDir)=/home/zhenhua 将下载的JDK、Ant、Eclipse、Hadoop for Linux版本放到工作目录下 1.wget http://apache.etoak.com//hadoop/core/hadoop-0.19.2/hadoop-0.19.2.tar.gz 2.使用gzip –d 和 tar -xf分别解开压缩包 8
3.Linux环境搭建-安装JDK 注:一般系统都自带JDK,如果没有可以自行安装,具体安装细节(略) 9
3.Linux环境搭建-安装Ant 将解压缩后的apache-ant-1.8软件包放到工作目录下,重命名为ant-1.8 10
3.Linux环境搭建-Compile Hadoop 编译官方版本Hadoop-0.19.2,提示BUILD SUCCESSFUL 完成。 11
3.Linux环境搭建-Compile HadoopPlugin 编译Hadoop-0.19.2 Plugin for eclipse,需要修改Java源代码 修改/home/zhenhua/hadoop-0.19.2/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/launch/ HadoopApplicationLaunchShortcut.java 12
3.Linux环境搭建-Compile HadoopPlugin 编译官方版本Hadoop-0.19.2 Plugin for eclipse,需要修改build.xml 修改/home/zhenhua/hadoop-0.19.2/src/contrib/eclipse-plugin/build.xml 将${hadoop.root}/build/hadoop-${version}-core.jar 改为 	    ${hadoop.root}/hadoop-${version}-core.jar 13

More Related Content

What's hot

使用 Java 上的 future/promise API
使用 Java 上的 future/promise  API使用 Java 上的 future/promise  API
使用 Java 上的 future/promise API
koji lin
 
Net Parallel Programming .NET平行處理與執行序
Net Parallel Programming .NET平行處理與執行序Net Parallel Programming .NET平行處理與執行序
Net Parallel Programming .NET平行處理與執行序HO-HSUN LIN
 
Reactive X 响应式编程
Reactive X 响应式编程Reactive X 响应式编程
Reactive X 响应式编程
Jun Liu
 
Log analytics
Log analyticsLog analytics
Log analyticsitseo
 
Lucene2 4 Demo
Lucene2 4 DemoLucene2 4 Demo
Lucene2 4 Demoyiditushe
 
Autorelease pool
Autorelease poolAutorelease pool
Autorelease poolMichael Pan
 
基于Lucene的站内搜索
基于Lucene的站内搜索基于Lucene的站内搜索
基于Lucene的站内搜索fulin tang
 
基于Lucene的站内搜索
基于Lucene的站内搜索基于Lucene的站内搜索
基于Lucene的站内搜索fulin tang
 
程式人雜誌 2015年五月
程式人雜誌 2015年五月程式人雜誌 2015年五月
程式人雜誌 2015年五月
鍾誠 陳鍾誠
 
JAVA内存泄漏及诊断
JAVA内存泄漏及诊断JAVA内存泄漏及诊断
JAVA内存泄漏及诊断
ivannotes
 
Bluemix&OpenWhisk
Bluemix&OpenWhiskBluemix&OpenWhisk
Bluemix&OpenWhisk
Hsuan-Ju Lin
 
GC算法和IE中JS内存泄露
GC算法和IE中JS内存泄露GC算法和IE中JS内存泄露
GC算法和IE中JS内存泄露
xwcoder
 
Java单元测试
Java单元测试Java单元测试
Java单元测试darlingshan
 

What's hot (15)

使用 Java 上的 future/promise API
使用 Java 上的 future/promise  API使用 Java 上的 future/promise  API
使用 Java 上的 future/promise API
 
Zoo keeper
Zoo keeperZoo keeper
Zoo keeper
 
Net Parallel Programming .NET平行處理與執行序
Net Parallel Programming .NET平行處理與執行序Net Parallel Programming .NET平行處理與執行序
Net Parallel Programming .NET平行處理與執行序
 
Reactive X 响应式编程
Reactive X 响应式编程Reactive X 响应式编程
Reactive X 响应式编程
 
Log analytics
Log analyticsLog analytics
Log analytics
 
Lucene2 4 Demo
Lucene2 4 DemoLucene2 4 Demo
Lucene2 4 Demo
 
Autorelease pool
Autorelease poolAutorelease pool
Autorelease pool
 
基于Lucene的站内搜索
基于Lucene的站内搜索基于Lucene的站内搜索
基于Lucene的站内搜索
 
基于Lucene的站内搜索
基于Lucene的站内搜索基于Lucene的站内搜索
基于Lucene的站内搜索
 
Zoo keeper
Zoo keeperZoo keeper
Zoo keeper
 
程式人雜誌 2015年五月
程式人雜誌 2015年五月程式人雜誌 2015年五月
程式人雜誌 2015年五月
 
JAVA内存泄漏及诊断
JAVA内存泄漏及诊断JAVA内存泄漏及诊断
JAVA内存泄漏及诊断
 
Bluemix&OpenWhisk
Bluemix&OpenWhiskBluemix&OpenWhisk
Bluemix&OpenWhisk
 
GC算法和IE中JS内存泄露
GC算法和IE中JS内存泄露GC算法和IE中JS内存泄露
GC算法和IE中JS内存泄露
 
Java单元测试
Java单元测试Java单元测试
Java单元测试
 

Viewers also liked

使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率Zhen Li
 
Hadoop基础及hive入门
Hadoop基础及hive入门Hadoop基础及hive入门
Hadoop基础及hive入门haiwang
 
使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率Zhen Li
 
轻松写出优雅的Java代码之check style
轻松写出优雅的Java代码之check style轻松写出优雅的Java代码之check style
轻松写出优雅的Java代码之check style
Zhen Li
 
Java 性能瓶劲分析之最佳实践
Java 性能瓶劲分析之最佳实践Java 性能瓶劲分析之最佳实践
Java 性能瓶劲分析之最佳实践Denger Tung
 
Film director research
Film director researchFilm director research
Film director research
sukhpreetrayatt
 
EDM CATALOG - BRAILLON USA
EDM CATALOG - BRAILLON USAEDM CATALOG - BRAILLON USA
EDM CATALOG - BRAILLON USA
Braillon Magnetic Systems Inc.
 
PROYECTO DE LA UNIDAD 3
PROYECTO DE LA UNIDAD 3 PROYECTO DE LA UNIDAD 3
PROYECTO DE LA UNIDAD 3
Glenda Ch
 
Simulation of incremental conductance mppt with direct control method using c...
Simulation of incremental conductance mppt with direct control method using c...Simulation of incremental conductance mppt with direct control method using c...
Simulation of incremental conductance mppt with direct control method using c...
eSAT Journals
 
Prosedur pengembangan modul
Prosedur pengembangan modulProsedur pengembangan modul
Prosedur pengembangan modul
PAICAsman
 
4. a torres-las reformas educativas en méxico
4.  a torres-las reformas educativas en méxico4.  a torres-las reformas educativas en méxico
4. a torres-las reformas educativas en méxico
Armando Torres Ruiz
 
我在 Mac 上的常用开发工具
我在 Mac 上的常用开发工具我在 Mac 上的常用开发工具
我在 Mac 上的常用开发工具
dennis zhuang
 
Clojure 1.8 Direct-Linking WWH
Clojure 1.8  Direct-Linking  WWHClojure 1.8  Direct-Linking  WWH
Clojure 1.8 Direct-Linking WWH
dennis zhuang
 
Nio trick and trap
Nio trick and trapNio trick and trap
Nio trick and trap
dennis zhuang
 
Java 与 CPU 高速缓存
Java 与 CPU 高速缓存Java 与 CPU 高速缓存
Java 与 CPU 高速缓存
dennis zhuang
 
Mesos intro
Mesos introMesos intro
Mesos intro
dennis zhuang
 
Hystrix 介绍
Hystrix 介绍Hystrix 介绍
Hystrix 介绍
dennis zhuang
 
Erlang scheduler
Erlang schedulerErlang scheduler
Erlang scheduler
dennis zhuang
 
Los océanos y mares
Los océanos y maresLos océanos y mares
Los océanos y mares
Rosemary Mallqui Bajonero
 

Viewers also liked (20)

使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率
 
Hadoop基础及hive入门
Hadoop基础及hive入门Hadoop基础及hive入门
Hadoop基础及hive入门
 
使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率使用Samba提升linux平台开发效率
使用Samba提升linux平台开发效率
 
轻松写出优雅的Java代码之check style
轻松写出优雅的Java代码之check style轻松写出优雅的Java代码之check style
轻松写出优雅的Java代码之check style
 
Java 性能瓶劲分析之最佳实践
Java 性能瓶劲分析之最佳实践Java 性能瓶劲分析之最佳实践
Java 性能瓶劲分析之最佳实践
 
Crystal Lyn True - 2016- Resume
Crystal Lyn True - 2016- ResumeCrystal Lyn True - 2016- Resume
Crystal Lyn True - 2016- Resume
 
Film director research
Film director researchFilm director research
Film director research
 
EDM CATALOG - BRAILLON USA
EDM CATALOG - BRAILLON USAEDM CATALOG - BRAILLON USA
EDM CATALOG - BRAILLON USA
 
PROYECTO DE LA UNIDAD 3
PROYECTO DE LA UNIDAD 3 PROYECTO DE LA UNIDAD 3
PROYECTO DE LA UNIDAD 3
 
Simulation of incremental conductance mppt with direct control method using c...
Simulation of incremental conductance mppt with direct control method using c...Simulation of incremental conductance mppt with direct control method using c...
Simulation of incremental conductance mppt with direct control method using c...
 
Prosedur pengembangan modul
Prosedur pengembangan modulProsedur pengembangan modul
Prosedur pengembangan modul
 
4. a torres-las reformas educativas en méxico
4.  a torres-las reformas educativas en méxico4.  a torres-las reformas educativas en méxico
4. a torres-las reformas educativas en méxico
 
我在 Mac 上的常用开发工具
我在 Mac 上的常用开发工具我在 Mac 上的常用开发工具
我在 Mac 上的常用开发工具
 
Clojure 1.8 Direct-Linking WWH
Clojure 1.8  Direct-Linking  WWHClojure 1.8  Direct-Linking  WWH
Clojure 1.8 Direct-Linking WWH
 
Nio trick and trap
Nio trick and trapNio trick and trap
Nio trick and trap
 
Java 与 CPU 高速缓存
Java 与 CPU 高速缓存Java 与 CPU 高速缓存
Java 与 CPU 高速缓存
 
Mesos intro
Mesos introMesos intro
Mesos intro
 
Hystrix 介绍
Hystrix 介绍Hystrix 介绍
Hystrix 介绍
 
Erlang scheduler
Erlang schedulerErlang scheduler
Erlang scheduler
 
Los océanos y mares
Los océanos y maresLos océanos y mares
Los océanos y mares
 

Similar to 基于Eclipse和hadoop平台应用开发入门手册

2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks
Roberson Liou
 
打開窗,讓大象跨進來 - Microsoft HDInsight
打開窗,讓大象跨進來 - Microsoft HDInsight打開窗,讓大象跨進來 - Microsoft HDInsight
打開窗,讓大象跨進來 - Microsoft HDInsight
Kuo-Chun Su
 
漫談 Source Control Management
漫談 Source Control Management漫談 Source Control Management
漫談 Source Control Management
Wen-Shih Chao
 
KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較
KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較
KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較Stipc Nsysu
 
Lucene 全文检索实践
Lucene 全文检索实践Lucene 全文检索实践
Lucene 全文检索实践yiditushe
 
利用Signalr打造即時通訊@Tech day geek
利用Signalr打造即時通訊@Tech day geek利用Signalr打造即時通訊@Tech day geek
利用Signalr打造即時通訊@Tech day geek
Johnson Gau
 
Kind editor设计思路
Kind editor设计思路Kind editor设计思路
Kind editor设计思路taobao.com
 
容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中
Andrew Wu
 
Kindeditor设计思路v2
Kindeditor设计思路v2Kindeditor设计思路v2
Kindeditor设计思路v2luolonghao
 
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
Shengyou Fan
 
Introduction and Internals of SQL on hadoop by WangHaihua
Introduction and Internals of SQL on hadoop by WangHaihuaIntroduction and Internals of SQL on hadoop by WangHaihua
Introduction and Internals of SQL on hadoop by WangHaihua
Wang Haihua
 
The Evolution of Async Programming (GZ TechParty C#)
The Evolution of Async Programming (GZ TechParty C#)The Evolution of Async Programming (GZ TechParty C#)
The Evolution of Async Programming (GZ TechParty C#)jeffz
 
twMVC#27 | C# 7.0 新功能介紹
twMVC#27 | C# 7.0 新功能介紹twMVC#27 | C# 7.0 新功能介紹
twMVC#27 | C# 7.0 新功能介紹
twMVC
 
建置Python開發環境
建置Python開發環境建置Python開發環境
建置Python開發環境
吳錫修 (ShyiShiou Wu)
 
Spring 2.x 中文
Spring 2.x 中文Spring 2.x 中文
Spring 2.x 中文Guo Albert
 
jsdoc-toolkit
jsdoc-toolkitjsdoc-toolkit
jsdoc-toolkit
satans17
 
HTML+COIMOTION 開發跨平台 app
HTML+COIMOTION 開發跨平台 appHTML+COIMOTION 開發跨平台 app
HTML+COIMOTION 開發跨平台 app
Ben Lue
 
Android 智慧型手機程式設計
Android 智慧型手機程式設計Android 智慧型手機程式設計
Android 智慧型手機程式設計
Kyle Lin
 

Similar to 基于Eclipse和hadoop平台应用开发入门手册 (20)

2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks2023-netconf-deploy-azure-function-with-KEDA-on-aks
2023-netconf-deploy-azure-function-with-KEDA-on-aks
 
打開窗,讓大象跨進來 - Microsoft HDInsight
打開窗,讓大象跨進來 - Microsoft HDInsight打開窗,讓大象跨進來 - Microsoft HDInsight
打開窗,讓大象跨進來 - Microsoft HDInsight
 
漫談 Source Control Management
漫談 Source Control Management漫談 Source Control Management
漫談 Source Control Management
 
KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較
KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較
KSDG_007_Web 編程另闢蹊徑-GWT,Dart,TypeScript介紹與比較
 
Lucene 全文检索实践
Lucene 全文检索实践Lucene 全文检索实践
Lucene 全文检索实践
 
利用Signalr打造即時通訊@Tech day geek
利用Signalr打造即時通訊@Tech day geek利用Signalr打造即時通訊@Tech day geek
利用Signalr打造即時通訊@Tech day geek
 
Kind editor设计思路
Kind editor设计思路Kind editor设计思路
Kind editor设计思路
 
容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中
 
Kindeditor设计思路v2
Kindeditor设计思路v2Kindeditor设计思路v2
Kindeditor设计思路v2
 
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
[GDG Kaohsiung DevFest 2023] 以 Compose 及 Kotlin Multiplatform 打造多平台應用程式
 
Osgi Intro
Osgi IntroOsgi Intro
Osgi Intro
 
Introduction and Internals of SQL on hadoop by WangHaihua
Introduction and Internals of SQL on hadoop by WangHaihuaIntroduction and Internals of SQL on hadoop by WangHaihua
Introduction and Internals of SQL on hadoop by WangHaihua
 
The Evolution of Async Programming (GZ TechParty C#)
The Evolution of Async Programming (GZ TechParty C#)The Evolution of Async Programming (GZ TechParty C#)
The Evolution of Async Programming (GZ TechParty C#)
 
twMVC#27 | C# 7.0 新功能介紹
twMVC#27 | C# 7.0 新功能介紹twMVC#27 | C# 7.0 新功能介紹
twMVC#27 | C# 7.0 新功能介紹
 
建置Python開發環境
建置Python開發環境建置Python開發環境
建置Python開發環境
 
Spring 2.x 中文
Spring 2.x 中文Spring 2.x 中文
Spring 2.x 中文
 
jsdoc-toolkit
jsdoc-toolkitjsdoc-toolkit
jsdoc-toolkit
 
HTML+COIMOTION 開發跨平台 app
HTML+COIMOTION 開發跨平台 appHTML+COIMOTION 開發跨平台 app
HTML+COIMOTION 開發跨平台 app
 
OSGi Small Lab
OSGi Small LabOSGi Small Lab
OSGi Small Lab
 
Android 智慧型手機程式設計
Android 智慧型手機程式設計Android 智慧型手機程式設計
Android 智慧型手機程式設計
 

基于Eclipse和hadoop平台应用开发入门手册