|
|
-
Re: how to rebuild hadoop-core-0.20.2-cdh3u4.jar張 福民 2012-12-02, 15:29
Hi, Harsh
I'm trying to solve the same problem. Thanks a lot for your answer. (2012/12/01 19:34), Harsh J wrote: > Hi, > > Since this is a CDH build specific question, I am moving the post to > [EMAIL PROTECTED] > [https://groups.google.com/a/cloudera.org/forum/?fromgroups=#!forum/cdh-user] > > To answer your question, you can simply do this: > > [Assuming $HADOOP_HOME points to your CDH3u4 tarball location, which > you can download from > http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u4.tar.gz btw.] > > $ cd $HADOOP_HOME/src > # Do your JobClient modifications under the sources here. > # Good idea to git init and commit the whole directory the first time, > to track your changes. > # After changes, build them into a jar > $ ant jar > # Copy over and overwrite original jar (good idea to keep a backup. > $ cp build/hadoop-core-0.20.2-cdh3u4.jar ../ > > That should be all! > > On Sat, Dec 1, 2012 at 6:46 AM, Nhung Nguyen <[EMAIL PROTECTED]> wrote: >> Hi , >> >> I am trying to modify JobClient.class inside hadoop-core-0.20.2-cdh3u4.jar. >> But I can't find a good way to compile the source-codes to get a new a jar ( >> with my modified JobClient.class) without changing too much. Any help would >> be appreciated. Thanks >> >> Nhung Nguyen > > -- ┏┏┏┏━━━━━━━━━━━━━━━━━━━━━━━━ ┏╋┏ J TrustSystem Co.,Ltd. 張 福民 ┏╋ URL http://jtrustsystem.co.jp/ ┏■ 〒600-8862 ┏ 京都市下京区七条御所ノ内中町50番地の5 ┃ Jトラスト京都ビル 4階 ┃ TEL/FAX 075-366-0375 / 075-322-1544 ┃ E-Mail [EMAIL PROTECTED] ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━ :+++++++++++++++++++++++++++++++++++++++++++++++++++++++: 発信されたメッセージには機密情報や個人情報が含まれている 場合があり、宛先にお名前が明示されている正規の受取人に限 りご利用いただけます。 誤送信等により、受取人でない方に配信されました場合は、お 手数ですが送信者までただちにご返信いただき、その後、破棄 または消去して下さいますようお願い申し上げます。 正規の受取人以外の方による使用(調査、複製、転送、配布、 公表等)は固くお断りいたします。 :+++++++++++++++++++++++++++++++++++++++++++++++++++++++: |