zoukankan      html  css  js  c++  java
  • hadoop-eclipse-plugin-2.6.0-cdh5.4.0 插件编译

    1.JDK配置

        1) 安装jdk

        2) 配置环境变量

          JAVA_HOME、CLASSPATH、PATH等设置

     2.Eclipse

       1).下载eclipse-jee-juno-SR2.rar

       2).解压到本地磁盘

    3.Ant

      1)下载

       http://ant.apache.org/bindownload.cgi

       apache-ant-1.9.4-bin.zip

      2)解压到一个盘

     

    3).环境变量的配置

        新建ANT_HOME=E:antapache-ant-1.9.4-binapache-ant-1.9.4

        在PATH后面加;%ANT_HOME%in

     

      4)cmd 测试一下是否配置正确

        ant version  

    4.Hadoop

     
    我用的是hadoop 2.6 cdh5.4.0
     

    下载hadoop2x-eclipse-plugin源代码

     1)目前hadoop2的eclipse-plugins源代码由github脱管,下载地址是

    https://github.com/winghc/hadoop2x-eclipse-plugin,然后在右侧的Download ZIP连接点击下载

     

    2)下载hadoop2x-eclipse-plugin-master.zip

       解压到本地磁盘

     

    三.编译hadoop-eclipse-plugin插件

     

       

     1.hadoop2x-eclipse-plugin-master解压在C:盘打开命令行cmd,切换到C:eclipse-masterhadoop2x-eclipse-plugin-mastersrccontribeclipse-plugin 目录

     

    2.执行ant jar

     命令我用红色箭头标注了,前面是你要cd进去的地址即上面第一条的地址,第二个是你eclipse的路径,第三个是你hadoop的路径hadoop-eclipse-plugin-2.6.0-cdh5.4.0 <wbr> <wbr>插件编译

    在此声明一下:我的各个路径如下:
    C:antapache-ant-1.9.7   
    C:eclipse-masterhadoop2x-eclipse-plugin-master     
    C:Users25Desktopeclipse
     
    中间可能会遇到问题,下面附上我遇到的问题
     
    1:ivy-common XXX   忘了什么东西了,卡住了,好久不见动,这时候你就别抱希望了,别等了
    2:提醒你找不到这个包,我遇到的有jackson-core-asl-1.9.13.jar   jackson-mapper-asl-1.9.13.jar
    我进入这个目录:C:eclipse-masterhadoop2x-eclipse-plugin-mastersrccontribeclipse-plugin,下面有个build.xml文件,我进去把所有${hadoop.home}改成了2.6.0-cdh5.4.0   把还有个什么名字改了我忘了,改成了我C:Hadoophadoop-2.6.0-cdh5.4.0sharehadoopcommonlib  这个目录下有的版本号,具体哪个地方改了,下面我直接附上我的build.xml这个文件吧,改后的版本我的是1.8.8
     
    build.xml:改的地方我标红了。
     
    网易插代码显示有问题,改用图片吧,不标红了
    hadoop-eclipse-plugin-2.6.0-cdh5.4.0 <wbr> <wbr>插件编译

    hadoop-eclipse-plugin-2.6.0-cdh5.4.0 <wbr> <wbr>插件编译

     
    好吧,改完之后重新执行命令,对了别忘了,ant jar 中间有个空格!
    还有,编译完的文件在C:eclipse-masterhadoop2x-eclipse-plugin-masteruildcontribeclipse-plugin
    这个目录下,好了,就这样完成了,放到eclipse plugins  目录下吧!网上搜的基本不好使,还是自己弄的靠谱
     
    原创,转载注明出处
     

    来源于sina博客搬家

  • 相关阅读:
    一个小程序的经验总结
    my favorite computer publishers
    关于在天涯看小说
    书店
    Server 2003&Windows 7&Server 2008 R2&Visual Studio&MSDN: my personal best practice
    Google搜索:基本语法
    【我喜欢的一篇文章】Fire And Motion
    Windbg学习笔记(1)
    如何清除Help Viewer 2.0之Filter Contents中的列表内容
    5年了,难道我真的不适合做一个程序员吗,请告诉我我该怎么做?
  • 原文地址:https://www.cnblogs.com/tnsay/p/5752718.html
Copyright © 2011-2022 走看看