国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

hadoop1.2.1下編譯及安裝eclipse4.2插件

來源:懂視網 責編:小采 時間:2020-11-09 08:32:15
文檔

hadoop1.2.1下編譯及安裝eclipse4.2插件

hadoop1.2.1下編譯及安裝eclipse4.2插件:xmlversion=1.0″encoding=UTF-8″standalone=no !– LicensedtotheApacheSoftwareFoundation(ASF)underoneormore contributorlicenseagreements.SeetheNOTICEfiledistributedwith thisw
推薦度:
導讀hadoop1.2.1下編譯及安裝eclipse4.2插件:xmlversion=1.0″encoding=UTF-8″standalone=no !– LicensedtotheApacheSoftwareFoundation(ASF)underoneormore contributorlicenseagreements.SeetheNOTICEfiledistributedwith thisw

?xmlversion=”1.0″encoding=”UTF-8″standalone=”no”? !– LicensedtotheApacheSoftwareFoundation(ASF)underoneormore contributorlicenseagreements.SeetheNOTICEfiledistributedwith thisworkforadditionalinformationregardingcopyrightownership.

  1. ?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the ”License”); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an ”AS IS” BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. –>
  15. encoding=”${build.encoding}”
  16. srcdir=”${src.dir}”
  17. includes=”**/*.java”
  18. destdir=”${build.classes}”
  19. debug=”${javac.debug}”
  20. deprecation=”${javac.deprecation}”>
  21. –>
  22. jarfile=”${build.dir}/hadoop-${name}-${version}.jar”
  23. manifest=”${root}/META-INF/MANIFEST.MF”>

5,修改build-contrib.xml文件

添加如下路徑

6,修改META-INF/MANIFEST.MF文件

最終文件為:

  1. Manifest-Version: 1.0
  2. Bundle-ManifestVersion: 2
  3. Bundle-Name: MapReduce Tools for Eclipse
  4. Bundle-SymbolicName: org.apache.hadoop.eclipse;singleton:=true
  5. Bundle-Version: 0.18
  6. Bundle-Activator: org.apache.hadoop.eclipse.Activator
  7. Bundle-Localization: plugin
  8. Require-Bundle: org.eclipse.ui,
  9. org.eclipse.core.runtime,
  10. org.eclipse.jdt.launching,
  11. org.eclipse.debug.core,
  12. org.eclipse.jdt,
  13. org.eclipse.jdt.core,
  14. org.eclipse.core.resources,
  15. org.eclipse.ui.ide,
  16. org.eclipse.jdt.ui,
  17. org.eclipse.debug.ui,
  18. org.eclipse.jdt.debug.ui,
  19. org.eclipse.core.expressions,
  20. org.eclipse.ui.cheatsheets,
  21. org.eclipse.ui.console,
  22. org.eclipse.ui.navigator,
  23. org.eclipse.core.filesystem,
  24. org.apache.commons.logging
  25. Eclipse-LazyStart: true
  26. Bundle-ClassPath: classes/,lib/hadoop-core.jar,lib/jackson-core-asl-1.8.8.jar ,lib/jackson-mapper-asl-1.8.8.jar, lib/commons-configuration-1.6.jar,lib/commons-lang-2.4.jar, lib/commons-httpclient-3.0.1.jar,lib/commons-cli-1.2.jar
  27. Bundle-Vendor: Apache Hadoop

7,保存完畢后,開始編譯我們自己的插件。右擊MapReduceTools工程,選擇Properties,選擇Builders,點擊右側的New,命名為Plugin_Builder,選擇Ant Builder,BuildFile選擇MapReduceTools里的build.xml文件,然后點擊確定。

8,開始編譯。點擊eclipse的Project選項,選擇Build Project,然后編譯成功。編譯后的jar文件放在hadoop安裝目錄下的build文件夾里,contrib下,有個hadoop-eclipse-1.2.1.jar文件,將其賦值到eclipse下的plugin里。

Ps.我在這里遇到了一個問題,有一個警告,說是無法復制hadoop目錄下的hadoop-core-${version}.jar文件,我暫時沒解決,但是好像沒什么影響,只是生成的jar文件是hadoop-eclipse-${version}.jar文件,如果有其他人遇到并且解決了,麻煩告訴我一下,我的解決方法是將名字改正確然后復制過去的,發現也可以用。

9.打開eclipse,打開Window——Preferences,選擇左側的Hadoop Map/Reduce,然后指定自己安裝的hadoop目錄,點擊確定。再打開Window——Open Perspective——other,選擇MapReduce藍色的小象,此時下方出現MapReduce Location,右鍵單擊New Hadoop Location,開始配置hadoop變量。

10,進入New Hadoop location后,定義你的location name,然后選擇和你的hadoop目錄下core-site.xml文件一致的主機名和端口,并在Advanced parameters里找到兩個重要的參數,

修改 hadoop.tmp.dir 為你 hadoop 集群中設置的目錄
修改 dfs.replication 為你 hdfs-site.xml 文件中配置的值

然后確定。此時確保你的hadoop服務已經開啟,接下來就可以在左側的DFS Location下找到你hadoop環境下的目錄,以后如果編譯程序也會很方便。

至此,hadoop-eclipse-1.2.1.jar安裝完成。

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

hadoop1.2.1下編譯及安裝eclipse4.2插件

hadoop1.2.1下編譯及安裝eclipse4.2插件:xmlversion=1.0″encoding=UTF-8″standalone=no !– LicensedtotheApacheSoftwareFoundation(ASF)underoneormore contributorlicenseagreements.SeetheNOTICEfiledistributedwith thisw
推薦度:
標簽: 安裝 1.2 插件
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 亚洲精品国产自在久久出水 | 99精品久久99久久久久 | 国产成人精品一区二三区 | 亚洲免费福利 | 久久91精品国产91久久 | 日韩经典一区 | 亚洲欧美韩国 | 久久国产亚洲欧美日韩精品 | 国产美女白丝袜精品_a不卡 | 国产精选一区二区 | 国产高清美女一级毛片久久 | 蜜臀一区| 欧美综合亚洲 | 欧美精品小视频 | 热久久伊人 | 美国一级大黄大色毛片视频一 | 中文国产成人精品久久久 | 97精品在线视频 | 亚洲第一大网站 | 日韩h视频 | 激情另类国内一区二区视频 | 国产精品久久毛片蜜月 | 美女毛片儿 | 亚州一区二区 | 亚洲欧美另类自拍第一页 | 人人爽天天碰天天躁夜夜躁 | 欧美综合在线视频 | 91久久国产综合精品女同我 | 91精品观看91久久久久久 | 亚洲欧美一区二区三区国产精品 | 日本欧美国产精品第一页久久 | 亚洲一区色图 | 国产精品一区在线播放 | 国产在线播放免费 | 欧美第3页 | 国产91精品一区二区视色 | 成人久久精品 | 精品国产日韩一区三区 | 日本久操| 国产一区二区在线看 | 国产在线精品一区二区夜色 |