<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題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關(guān)鍵字專題關(guān)鍵字專題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插件

        來源:懂視網(wǎng) 責編:小采 時間: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
        推薦度:
        導(dǎo)讀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,點擊右側(cè)的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.我在這里遇到了一個問題,有一個警告,說是無法復(fù)制hadoop目錄下的hadoop-core-${version}.jar文件,我暫時沒解決,但是好像沒什么影響,只是生成的jar文件是hadoop-eclipse-${version}.jar文件,如果有其他人遇到并且解決了,麻煩告訴我一下,我的解決方法是將名字改正確然后復(fù)制過去的,發(fā)現(xiàn)也可以用。

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

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

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

        然后確定。此時確保你的hadoop服務(wù)已經(jīng)開啟,接下來就可以在左側(cè)的DFS Location下找到你hadoop環(huán)境下的目錄,以后如果編譯程序也會很方便。

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

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。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
        主站蜘蛛池模板: 3d成人免费动漫在线观看| 亚洲首页国产精品丝袜| 国产免费高清69式视频在线观看| 国产青草视频免费观看97| 亚洲国产精品网站在线播放| 国产网站免费观看| 美女视频黄a视频全免费网站色 | 成年免费a级毛片| 亚洲精品WWW久久久久久| 香蕉免费看一区二区三区| 在线观看午夜亚洲一区| 秋霞人成在线观看免费视频 | 国产亚洲一区二区三区在线| 免费精品99久久国产综合精品| 亚洲精品高清无码视频| 一级毛片免费视频| 亚洲AV无码无限在线观看不卡| 日韩免费视频播播| 三级毛片在线免费观看| 亚洲黄色在线视频| 成人免费淫片在线费观看| 思思久久99热免费精品6| 亚洲国产精品SSS在线观看AV| 69式互添免费视频| 国产成人va亚洲电影| 亚洲精品成人片在线播放| 免费观看激色视频网站(性色)| 亚洲国产欧美日韩精品一区二区三区 | mm1313亚洲国产精品美女| a级片免费观看视频| 亚洲制服丝袜精品久久| 亚洲成A人片在线观看中文| 十八禁无码免费网站| 亚洲国产精品ⅴa在线观看| 亚洲中文字幕无码久久2017| 亚洲免费观看网站| 免费一级毛片在线播放视频免费观看永久 | 永久在线观看免费视频 | 日韩内射激情视频在线播放免费| 亚洲精品免费网站| 亚洲精品无码永久在线观看你懂的|