You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Vinod Gupta Tankala <tv...@readypulse.com> on 2011/10/05 18:33:20 UTC

error building hadoop for hbase

Hi,
I am following the instructions here (
http://www.michael-noll.com/blog/2011/04/14/building-an-hadoop-0-20-x-version-for-hbase-0-90-2/#examples-use-git-not-svn)
to build my own hadoop distribution that can work with hbase-0.90.2 version.
I believe I need to do this to  be able to run hbase in distributed mode.

But when i run 'ant mvn-install' on linux (amazon ec2 instance), i get this
error -

--------------
BUILD FAILED
/media/ephemeral0/git/hadoop-common/build.xml:1975: Problem: failed to
create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was
not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/usr/share/ant/lib
        -/home/ec2-user/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem
---------------------

when i run this on my windows machine, there is no .m2 directory.

Also, if someone can point me to an already built compatible hadoop
distribution for hbase-0.90.2, that would be great. That ways I won't have
to go through this trouble.

thanks
vinod

ps - i did google for  'Problem: failed to create task or type
replaceregexp'. But none of that really helped. I downloaded and copies
ant-nodeps-1.6.5.jar to /usr/share/ant/lib and that didn't work.

Re: error building hadoop for hbase

Posted by Vinod Gupta Tankala <tv...@readypulse.com>.
here are my answers -
*
*
*Why hbase 0.90.2 and not hbase 0.90.4, the latest release?*
I have a standalone setup of hbase (0.90.2) in my current production system
that has lots of data (~20GB). but its hosted on a m1.large and it is
running out of memory. our service is currently in alpha mode. we want to
get to beta soon. so my plan was to get a m1.xlarge ec2 instance and copy
over all the data from this host to new bigger host and run in distributed
mode. so to be safe, i am choosing hbase-0.90.2. is my approach correct?

*Make sure you have the ant optionals or an ant that includes all
dependencies as per the above message.*
yes i have ant optionals.

*That seems like an old verision of ant.  Try a newer one?*
i am running ant 1.7.1. but when i did google search, i found a place to get
ant-nodejs.jar from 1.6.5 and i wanted to quickly try it out. ill get the
corresponding one and try it.

thanks

On Wed, Oct 5, 2011 at 10:26 AM, Stack <st...@duboce.net> wrote:

> On Wed, Oct 5, 2011 at 9:33 AM, Vinod Gupta Tankala
> <tv...@readypulse.com> wrote:
> > Hi,
> > I am following the instructions here (
> >
> http://www.michael-noll.com/blog/2011/04/14/building-an-hadoop-0-20-x-version-for-hbase-0-90-2/#examples-use-git-not-svn
> )
> > to build my own hadoop distribution that can work with hbase-0.90.2
> version.
>
> Why hbase 0.90.2 and not hbase 0.90.4, the latest release?
>
>
> > This is not a bug; it is a configuration problem
> > ---------------------
> >
>
> Make sure you have the ant optionals or an ant that includes all
> dependencies as per the above message.
>
>
> > when i run this on my windows machine, there is no .m2 directory.
> >
>
> I'm not sure how .m2 gets set up on windows.   Maybe you need to build
> something w/ maven first (you could try building hbase).
>
>
> > Also, if someone can point me to an already built compatible hadoop
> > distribution for hbase-0.90.2, that would be great. That ways I won't
> have
> > to go through this trouble.
> >
>
> http://hbase.apache.org/book.html#hadoop is our current hadoop story.
> You could try one of the other offerings listed there -- e.g. CDH --
> if you don't want to build hadoop yourself.
>
> >
> > ps - i did google for  'Problem: failed to create task or type
> > replaceregexp'. But none of that really helped. I downloaded and copies
> > ant-nodeps-1.6.5.jar to /usr/share/ant/lib and that didn't work.
> >
>
> That seems like an old verision of ant.  Try a newer one?
>
> St.Ack
>

Re: error building hadoop for hbase

Posted by Stack <st...@duboce.net>.
On Wed, Oct 5, 2011 at 9:33 AM, Vinod Gupta Tankala
<tv...@readypulse.com> wrote:
> Hi,
> I am following the instructions here (
> http://www.michael-noll.com/blog/2011/04/14/building-an-hadoop-0-20-x-version-for-hbase-0-90-2/#examples-use-git-not-svn)
> to build my own hadoop distribution that can work with hbase-0.90.2 version.

Why hbase 0.90.2 and not hbase 0.90.4, the latest release?


> This is not a bug; it is a configuration problem
> ---------------------
>

Make sure you have the ant optionals or an ant that includes all
dependencies as per the above message.


> when i run this on my windows machine, there is no .m2 directory.
>

I'm not sure how .m2 gets set up on windows.   Maybe you need to build
something w/ maven first (you could try building hbase).


> Also, if someone can point me to an already built compatible hadoop
> distribution for hbase-0.90.2, that would be great. That ways I won't have
> to go through this trouble.
>

http://hbase.apache.org/book.html#hadoop is our current hadoop story.
You could try one of the other offerings listed there -- e.g. CDH --
if you don't want to build hadoop yourself.

>
> ps - i did google for  'Problem: failed to create task or type
> replaceregexp'. But none of that really helped. I downloaded and copies
> ant-nodeps-1.6.5.jar to /usr/share/ant/lib and that didn't work.
>

That seems like an old verision of ant.  Try a newer one?

St.Ack