You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Alex Luya <al...@gmail.com> on 2011/03/24 14:44:12 UTC

hadoop branch-0.20-append Build error:Target "package-libhdfs" does not exist in the project "Hadoop".

Assume you know 0.91 needs hadoop branch-0.20-append to run,and it's doc
gives a link:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-append/

to check hadoop,but when tried to check out source code from this link,
I got this error:
--------------------------------------------------------------------------------
svn: Repository moved permanently to
'/viewvc/hadoop/common/branches/branch-0.20-append/'; please relocate
--------------------------------------------------------------------------------

so finally,I checked source out from:

https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-append/

I am not sure whether they are same.


this is my build script:
//////////////////////////////////////////////////////////////////////////////////
#!/bin/bash
VERSION=0.20.0-append
ANT_HOME=/home/alex/Software/ant-1.8.2
XERCES_HOME=/home/alex/Software/xerces-c_2_8
FORREST_HOME=/home/alex/Software/forrest-0.8
ECLIPSE_HOME=/media/Backup/eclipse/eclipse_with_va
JDIFF_HOME=/home/alex/Software/jdiff-1.1.1
JAVA5_HOME=/usr/local/hadoop/jdk1.5.0_22
JAVA32_HOME=/usr/local/hadoop/jdk1.6.0_24_i586
JAVA64_HOME=/usr/local/hadoop/jdk1.6.0_24

set -x

ulimit -n 1024

### BUILD_ID is set by Hudson
#trunk=`pwd`/trunk

cd /home/alex/Software/branch-0.20-append

export JAVA_HOME=$JAVA32_HOME
export CFLAGS=-m32
export CXXFLAGS=-m32
$ANT_HOME/bin/ant -Dversion=$VERSION -Dcompile.native=true -Dcompile.c
++=true -Dlibhdfs=1 -Dlibrecordio=true -Dxercescroot=$XERCES_HOME
-Declipse.home=$ECLIPSE_HOME -Djdiff.home=$JDIFF_HOME -Djava5.home=
$JAVA5_HOME -Dforrest.home=$FORREST_HOME clean docs package-libhdfs
api-report tar test test-c++-libhdfs

RESULT=$?
if [ $RESULT != 0 ] ; then
 echo "Build Failed: 64-bit build not run"
 exit $RESULT
fi

export JAVA_HOME=$JAVA64_HOME
export CFLAGS=-m64
export CXXFLAGS=-m64
$ANT_HOME/bin/ant -Dversion=$VERSION -Dcompile.native=true -Dcompile.c
++=true compile-core-native compile-c++ tar
//////////////////////////////////////////////////////////////////////////////////////////////////

this is error message:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 [exec]
    [exec]   Copying broken links file to site root.
    [exec]
    [exec] Copying 1 file
to /home/alex/Software/branch-0.20-append-bak/src/docs/cn/build/site
    [exec]
    [exec] -----------------------------
    [exec] Static site was successfully generated at:

[exec] /home/alex/Software/branch-0.20-append-bak/src/docs/cn/build/site
    [exec] ------------------------------
    [exec]
    [exec]
    [exec] BUILD SUCCESSFUL
    [exec] Total time: 41 seconds
    [copy] Copying 107 files
to /home/alex/Software/branch-0.20-append-bak/build/docs/cn
    [copy] Copied 7 empty directories to 3 empty directories
under /home/alex/Software/branch-0.20-append-bak/build/docs/cn
   [style] Warning: the task name <style> is deprecated. Use <xslt>
instead.
   ...................................
instead.
   [style] Transforming
into /home/alex/Software/branch-0.20-append-bak/build/docs/cn
   [style]
Processing /home/alex/Software/branch-0.20-append-bak/src/mapred/mapred-default.xml to /home/alex/Software/branch-0.20-append-bak/build/docs/cn/mapred-default.html
   [style] Loading
stylesheet /home/alex/Software/branch-0.20-append-bak/conf/configuration.xsl

changes-to-html:

BUILD FAILED
Target "package-libhdfs" does not exist in the project "Hadoop".
///////////////////////////////////////////////////////////////////////////////////////////////////

I have tried to googling,but not solution available,can anybody help
me?Thanks in advance.



Re: hadoop branch-0.20-append Build error:Target "package-libhdfs" does not exist in the project "Hadoop".

Posted by Alex Luya <al...@gmail.com>.
I have jdk 1.5 configured,by the way,in this link,I can't find tricks as
you said
On Thu, 2011-03-24 at 09:51 -0700, Stack wrote:
> Building hadoop forrest is a pain at the best of times.  Requires java
> 1.5.  See the Hadoop build instructions referenced from hbase doc:
> http://wiki.apache.org/hadoop/HowToRelease  It talks explicitly about
> the tricks getting forrest build to work.
> 
> Hopefully this helps,
> St.Ack
> 
> (I'll fix the doc. to clarify diff between viewing the repo and
> checkout -- thanks for that)
> 
> On Thu, Mar 24, 2011 at 8:07 AM, Alex Luya <al...@gmail.com> wrote:
> > Thanks,this error has gone,but another error comes up:
> > -----------------------------------------------------------------------------------------------
> > BUILD FAILED
> > /home/alex/Software/branch-0 .20-append/build.xml:927: The following error
> > occurred while executing this line:
> > /home/alex/Software/branch-0 .20-append/build.xml:933: exec returned: 1
> >
> > Total time: 1 minute 17 seconds
> > + RESULT=1
> > + '[' 1 '!=' 0 ']'
> > + echo 'Build Failed: 64-bit build not run'
> > Build Failed: 64-bit build not run
> > + exit 1
> > -----------------------------------------------------------------------------------------------------------------
> > I checked content in file build.xml:
> > ------------------------------------------------------------------------------------------------------------
> > line 927:<antcall target="cn-docs"/>
> >           </target>
> >
> >          <target name="cn-docs" depends="forrest.check, init"
> >              description="Generate forrest-based Chinese documentation. To
> > use, specify -Dforrest.home=&lt;base of Apache Forrest installation&gt; on
> > the command line."
> >              if="forrest.home">
> > line 933          <exec dir="${src.docs.cn}"
> > executable="${forrest.home}/bin/forrest" failonerror="true">
> > -----------------------------------------------------------------------------------------------------------------------------------------------
> > It seems try to execute forrest,what is the problem here?I am running a
> > 64bit ubuntu,with 64bit jdk installed.
> >
> >
> >
> > On Thu, Mar 24, 2011 at 10:01 PM, Harsh J <qw...@gmail.com> wrote:
> >
> >> On Thu, Mar 24, 2011 at 7:14 PM, Alex Luya <al...@gmail.com>
> >> wrote:
> >> > I am not sure whether they are same.
> >>
> >> The doc link is a viewable link (links to a webservice that has nifty
> >> version control browsing features). Your deduced link is the right one
> >> for svn checkouts instead.
> >>
> >> > clean docs package-libhdfs
> >> > Target "package-libhdfs" does not exist in the project "Hadoop".
> >>
> >> I don't think there exists a 'package-libhdfs' target in the
> >> 0.20-append branch's build.xml, maybe you meant to perform a
> >> 'package-native' instead (which builds the libhdfs as well)?
> >>
> >> --
> >> Harsh J
> >> http://harshj.com
> >>
> >



Re: hadoop branch-0.20-append Build error:Target "package-libhdfs" does not exist in the project "Hadoop".

Posted by Stack <st...@duboce.net>.
Building hadoop forrest is a pain at the best of times.  Requires java
1.5.  See the Hadoop build instructions referenced from hbase doc:
http://wiki.apache.org/hadoop/HowToRelease  It talks explicitly about
the tricks getting forrest build to work.

Hopefully this helps,
St.Ack

(I'll fix the doc. to clarify diff between viewing the repo and
checkout -- thanks for that)

On Thu, Mar 24, 2011 at 8:07 AM, Alex Luya <al...@gmail.com> wrote:
> Thanks,this error has gone,but another error comes up:
> -----------------------------------------------------------------------------------------------
> BUILD FAILED
> /home/alex/Software/branch-0 .20-append/build.xml:927: The following error
> occurred while executing this line:
> /home/alex/Software/branch-0 .20-append/build.xml:933: exec returned: 1
>
> Total time: 1 minute 17 seconds
> + RESULT=1
> + '[' 1 '!=' 0 ']'
> + echo 'Build Failed: 64-bit build not run'
> Build Failed: 64-bit build not run
> + exit 1
> -----------------------------------------------------------------------------------------------------------------
> I checked content in file build.xml:
> ------------------------------------------------------------------------------------------------------------
> line 927:<antcall target="cn-docs"/>
>           </target>
>
>          <target name="cn-docs" depends="forrest.check, init"
>              description="Generate forrest-based Chinese documentation. To
> use, specify -Dforrest.home=&lt;base of Apache Forrest installation&gt; on
> the command line."
>              if="forrest.home">
> line 933          <exec dir="${src.docs.cn}"
> executable="${forrest.home}/bin/forrest" failonerror="true">
> -----------------------------------------------------------------------------------------------------------------------------------------------
> It seems try to execute forrest,what is the problem here?I am running a
> 64bit ubuntu,with 64bit jdk installed.
>
>
>
> On Thu, Mar 24, 2011 at 10:01 PM, Harsh J <qw...@gmail.com> wrote:
>
>> On Thu, Mar 24, 2011 at 7:14 PM, Alex Luya <al...@gmail.com>
>> wrote:
>> > I am not sure whether they are same.
>>
>> The doc link is a viewable link (links to a webservice that has nifty
>> version control browsing features). Your deduced link is the right one
>> for svn checkouts instead.
>>
>> > clean docs package-libhdfs
>> > Target "package-libhdfs" does not exist in the project "Hadoop".
>>
>> I don't think there exists a 'package-libhdfs' target in the
>> 0.20-append branch's build.xml, maybe you meant to perform a
>> 'package-native' instead (which builds the libhdfs as well)?
>>
>> --
>> Harsh J
>> http://harshj.com
>>
>

Re: hadoop branch-0.20-append Build error:Target "package-libhdfs" does not exist in the project "Hadoop".

Posted by Alex Luya <al...@gmail.com>.
Thanks,this error has gone,but another error comes up:
-----------------------------------------------------------------------------------------------
BUILD FAILED
/home/alex/Software/branch-0 .20-append/build.xml:927: The following error
occurred while executing this line:
/home/alex/Software/branch-0 .20-append/build.xml:933: exec returned: 1

Total time: 1 minute 17 seconds
+ RESULT=1
+ '[' 1 '!=' 0 ']'
+ echo 'Build Failed: 64-bit build not run'
Build Failed: 64-bit build not run
+ exit 1
-----------------------------------------------------------------------------------------------------------------
I checked content in file build.xml:
------------------------------------------------------------------------------------------------------------
line 927:<antcall target="cn-docs"/>
           </target>

          <target name="cn-docs" depends="forrest.check, init"
              description="Generate forrest-based Chinese documentation. To
use, specify -Dforrest.home=&lt;base of Apache Forrest installation&gt; on
the command line."
              if="forrest.home">
line 933          <exec dir="${src.docs.cn}"
executable="${forrest.home}/bin/forrest" failonerror="true">
-----------------------------------------------------------------------------------------------------------------------------------------------
It seems try to execute forrest,what is the problem here?I am running a
64bit ubuntu,with 64bit jdk installed.



On Thu, Mar 24, 2011 at 10:01 PM, Harsh J <qw...@gmail.com> wrote:

> On Thu, Mar 24, 2011 at 7:14 PM, Alex Luya <al...@gmail.com>
> wrote:
> > I am not sure whether they are same.
>
> The doc link is a viewable link (links to a webservice that has nifty
> version control browsing features). Your deduced link is the right one
> for svn checkouts instead.
>
> > clean docs package-libhdfs
> > Target "package-libhdfs" does not exist in the project "Hadoop".
>
> I don't think there exists a 'package-libhdfs' target in the
> 0.20-append branch's build.xml, maybe you meant to perform a
> 'package-native' instead (which builds the libhdfs as well)?
>
> --
> Harsh J
> http://harshj.com
>

Re: hadoop branch-0.20-append Build error:Target "package-libhdfs" does not exist in the project "Hadoop".

Posted by Harsh J <qw...@gmail.com>.
On Thu, Mar 24, 2011 at 7:14 PM, Alex Luya <al...@gmail.com> wrote:
> I am not sure whether they are same.

The doc link is a viewable link (links to a webservice that has nifty
version control browsing features). Your deduced link is the right one
for svn checkouts instead.

> clean docs package-libhdfs
> Target "package-libhdfs" does not exist in the project "Hadoop".

I don't think there exists a 'package-libhdfs' target in the
0.20-append branch's build.xml, maybe you meant to perform a
'package-native' instead (which builds the libhdfs as well)?

-- 
Harsh J
http://harshj.com