<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12
      Dev Guide: js | css | HTML(DOM) WEBCAST .NET4 Lib Web.config-WCF MVC3-EF4.1 T-SQL-(2012)

      eclipse luna 安裝 Hadoop 1.2.1 eclipse-plugin

        博主最近學(xué)習(xí)Hadoop 1.2.1,從多個(gè)搜索引擎的搜索結(jié)果當(dāng)中匯合得出本文Hadoop 1.2.1 Eclipse-plugin安裝過(guò)程介紹,如果你是從網(wǎng)上下載hadoop-eclipse-plugin-1.2.1.jar放進(jìn)eclipse的plugins目錄后發(fā)現(xiàn)并未被成功加載時(shí),可以嘗試本文內(nèi)的編譯安裝方法。

       

      一、軟件環(huán)境準(zhǔn)備

      JDK版本:jdk-6u45-windows-x64.exe

      Hadoop版本:hadoop-1.2.1.tar.gz

      IDE版本:eclipse-java-luna-SR1a-win32-x86_64.zip

      ANT版本:apache-ant-1.9.4-bin.zip

      操作系統(tǒng):Windows 8.1 64bit

       

      二、安裝前期準(zhǔn)備

      JDK:安裝過(guò)程忽略,請(qǐng)自行網(wǎng)上搜索安裝資料。

      Hadoop:將hadoop-1.2.1.tar.gz解壓到D:\

      eclipse:將eclipse-java-luna-SR1a-win32-x86_64.zip解壓到D:\Program Files\

      ANT:將apache-ant-1.9.4-bin.zip解壓到D:\Program Files\

      - 配置ANT環(huán)境變量 -

        目前我是將環(huán)境變量配置到用戶環(huán)境變量當(dāng)中,當(dāng)然你可以根據(jù)需要配置為系統(tǒng)環(huán)境變量。ant需要配置一個(gè)ANT_HOME和在Path中添加%ANT_HOME%\bin

          1.ANT_HOME = D:\Program Files\apache-ant-1.9.4

          2.Path 末尾添加 ;%ANT_HOME%\bin

          3.打開(kāi)命令行窗口輸入ant按回車(chē),如出現(xiàn)Buildfile等文字代表環(huán)境變量已設(shè)置正確,ant已可用

      ant設(shè)置過(guò)程如下圖示:

       

       

      軟件最終目錄情況如下圖示:

       

      三、編譯hadoop-eclipse-plugin-1.2.1

      1.用文本編輯器打開(kāi)D:\hadoop-1.2.1\src\contrib\eclipse-plugin\build.properties設(shè)置eclipse.home及version

      #   Licensed under the Apache License, Version 2.0 (the "License");
      #   you may not use this file except in compliance with the License.
      #   You may obtain a copy of the License at
      #
      #       http://www.apache.org/licenses/LICENSE-2.0
      #
      #   Unless required by applicable law or agreed to in writing, software
      #   distributed under the License is distributed on an "AS IS" BASIS,
      #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      #   See the License for the specific language governing permissions and
      #   limitations under the License.
      
      
      output.. = bin/
      bin.includes = META-INF/,\
                     plugin.xml,\
                     resources/,\
                     classes/,\
                     classes/,\
                     lib/
      eclipse.home=D:\\Program Files\\eclipse
      version=1.2.1

       

      2.修改D:\hadoop-1.2.1\src\contrib\eclipse-plugin\build.xml

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      
      <!--
         Licensed to the Apache Software Foundation (ASF) under one or more
         contributor license agreements.  See the NOTICE file distributed with
         this work for additional information regarding copyright ownership.
         The ASF licenses this file to You under the Apache License, Version 2.0
         (the "License"); you may not use this file except in compliance with
         the License.  You may obtain a copy of the License at
      
             http://www.apache.org/licenses/LICENSE-2.0
      
         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
      -->
      
      <project default="jar" name="eclipse-plugin">
      
        <import file="../build-contrib.xml"/>
      
        <path id="eclipse-sdk-jars">
          <fileset dir="${eclipse.home}/plugins/">
            <include name="org.eclipse.ui*.jar"/>
            <include name="org.eclipse.jdt*.jar"/>
            <include name="org.eclipse.core*.jar"/>
            <include name="org.eclipse.equinox*.jar"/>
            <include name="org.eclipse.debug*.jar"/>
            <include name="org.eclipse.osgi*.jar"/>
            <include name="org.eclipse.swt*.jar"/>
            <include name="org.eclipse.jface*.jar"/>
      
            <include name="org.eclipse.team.cvs.ssh2*.jar"/>
            <include name="com.jcraft.jsch*.jar"/>
          </fileset> 
            <fileset dir="D:/hadoop-1.2.1">  
                <include name="hadoop*.jar"/>  
            </fileset> 
        </path>
      
        <!-- Override classpath to include Eclipse SDK jars -->
        <path id="classpath">
          <pathelement location="${build.classes}"/>
          <pathelement location="${hadoop.root}/build/classes"/>
          <path refid="eclipse-sdk-jars"/>
        </path>
      
        <!-- Skip building if eclipse.home is unset. -->
        <target name="check-contrib" unless="eclipse.home">
          <property name="skip.contrib" value="yes"/>
          <echo message="eclipse.home unset: skipping eclipse plugin"/>
        </target>
      
       <target name="compile" depends="init, ivy-retrieve-common" unless="skip.contrib">
          <echo message="contrib: ${name}"/>
          <javac
           encoding="${build.encoding}"
           srcdir="${src.dir}"
           includes="**/*.java"
           destdir="${build.classes}"
           debug="${javac.debug}"
           deprecation="${javac.deprecation}">
           <classpath refid="classpath"/>
          </javac>
        </target>
      
        <!-- Override jar target to specify manifest -->
        <target name="jar" depends="compile" unless="skip.contrib">
          <mkdir dir="${build.dir}/lib"/>
          <!--copy file="${hadoop.root}/build/hadoop-core-${version}.jar" tofile="${build.dir}/lib/hadoop-core.jar" verbose="true"/>
          <copy file="${hadoop.root}/build/ivy/lib/Hadoop/common/commons-cli-${commons-cli.version}.jar"  todir="${build.dir}/lib" verbose="true"/-->
          <copy file="D:/hadoop-1.2.1/hadoop-core-${version}.jar" tofile="${build.dir}/lib/hadoop-core.jar" verbose="true"/>  
          <copy file="D:/hadoop-1.2.1/lib/commons-cli-${commons-cli.version}.jar"  todir="${build.dir}/lib" verbose="true"/>      
          <copy file="D:/hadoop-1.2.1/lib/commons-configuration-1.6.jar"  todir="${build.dir}/lib" verbose="true"/>      
          <copy file="D:/hadoop-1.2.1/lib/commons-httpclient-3.0.1.jar"  todir="${build.dir}/lib" verbose="true"/>      
          <copy file="D:/hadoop-1.2.1/lib/commons-lang-2.4.jar"  todir="${build.dir}/lib" verbose="true"/>      
          <copy file="D:/hadoop-1.2.1/lib/jackson-core-asl-1.8.8.jar"  todir="${build.dir}/lib" verbose="true"/>          
          <copy file="D:/hadoop-1.2.1/lib/jackson-mapper-asl-1.8.8.jar"  todir="${build.dir}/lib" verbose="true"/>          
          
          <jar
            jarfile="${build.dir}/hadoop-${name}-${version}.jar"
            manifest="${root}/META-INF/MANIFEST.MF">
            <fileset dir="${build.dir}" includes="classes/ lib/"/>
            <fileset dir="${root}" includes="resources/ plugin.xml"/>
          </jar>
        </target>
      
      </project>

       

      3.修改D:\hadoop-1.2.1\src\contrib\eclipse-plugin\META-INF\MANIFEST.MF

      Manifest-Version: 1.0
      Bundle-ManifestVersion: 2
      Bundle-Name: MapReduce Tools for Eclipse
      Bundle-SymbolicName: org.apache.hadoop.eclipse;singleton:=true
      Bundle-Version: 0.18
      Bundle-Activator: org.apache.hadoop.eclipse.Activator
      Bundle-Localization: plugin
      Require-Bundle: org.eclipse.ui,
       org.eclipse.core.runtime,
       org.eclipse.jdt.launching,
       org.eclipse.debug.core,
       org.eclipse.jdt,
       org.eclipse.jdt.core,
       org.eclipse.core.resources,
       org.eclipse.ui.ide,
       org.eclipse.jdt.ui,
       org.eclipse.debug.ui,
       org.eclipse.jdt.debug.ui,
       org.eclipse.core.expressions,
       org.eclipse.ui.cheatsheets,
       org.eclipse.ui.console,
       org.eclipse.ui.navigator,
       org.eclipse.core.filesystem,
       org.apache.commons.logging
      Eclipse-LazyStart: true
      Bundle-ClassPath: classes/,lib/hadoop-core.jar,lib/commons-cli-1.2.jar
       ,lib/commons-configuration-1.6.jar,lib/commons-httpclient-3.0.1.jar,l
       ib/commons-lang-2.4.jar,lib/jackson-core-asl-1.8.8.jar,lib/jackson-ma
       pper-asl-1.8.8.jar
      Bundle-Vendor: Apache Hadoop

       

      4.利用ant編譯hadoop-eclipse-plugin-1.2.1.jar

        打開(kāi)cmd.exe,用cd命令定位到D:\hadoop-1.2.1\src\contrib\eclipse-plugin后執(zhí)行ant回車(chē)

      >cd /d D:\hadoop-1.2.1\src\contrib\eclipse-plugin
      >ant >>d:\eclipse-plugin-build.log

        完成后打開(kāi)d:\eclipse-plugin-build.log在文件結(jié)尾看到BUILD SUCCESSFUL字樣則代表jar包編譯完成。這里需要注意的是設(shè)置build.properties中的eclipse.home為你eclipse的存放目錄位置。

       

      四、安裝hadoop-eclipse-plugin-1.2.1.jar

        安裝過(guò)程就稍微簡(jiǎn)單多了,將本機(jī)上D:\hadoop-1.2.1\build\contrib\eclipse-plugin\hadoop-eclipse-plugin-1.2.1.jar拷貝至D:\Program Files\eclipse\plugins\目錄后啟動(dòng)Eclipse即可。

       

       

      最終效果如下圖示:

       

      參考:

        1.JDK1.6安裝與環(huán)境變量設(shè)置詳細(xì)圖解

        2.ant安裝、環(huán)境變量配置及驗(yàn)證

        3.Build hadoop-eclipse-plugin-1.2.1.jar

      本文到此結(jié)束,謝謝。

      posted @ 2015-01-28 14:52  dotNetDR_  閱讀(2069)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 免费吃奶摸下激烈视频| 精品久久精品久久精品九九| 亚洲精品国产老熟女久久| 国产乱码一区二区三区免费| 资源县| 欧美日本在线一区二区三区| 国产亚洲综合欧美视频| 额尔古纳市| 国产免费网站看v片元遮挡| 无码人妻丝袜在线视频红杏| 亚洲精品香蕉一区二区| 精品久久久bbbb人妻| 男女爽爽无遮挡午夜视频| 国产精品久线在线观看| 视频一区视频二区视频三区| 亚洲欧美日韩成人综合一区| 峨山| 中文字幕av无码一区二区蜜芽三区| 国产小受被做到哭咬床单GV| 黎川县| 日本一区二区三区在线 |观看| 野外做受三级视频| 宁波市| 欧美亚洲一区二区三区在线| 永久免费AV无码网站大全| 成人亚欧欧美激情在线观看| 亚洲偷偷自拍码高清视频| 51妺嘿嘿午夜福利| 暖暖影院日本高清...免费| 18禁一区二区每日更新| 99精品久久毛片a片| 18禁动漫一区二区三区| 在线观看成人年视频免费| 久热这里只有精品12| 国产一区二区三区九九视频| 亚洲欧美日本久久网站| 少妇宾馆粉嫩10p| 最近中文字幕日韩有码| 欧美老熟妇乱子伦牲交视频| 熟女女同亚洲女同中文字幕| 最新亚洲人成网站在线影院|