hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jason hadoop <jason.had...@gmail.com>
Subject Re: Running Hadoop without bin/hadoop
Date Fri, 03 Jul 2009 02:05:46 GMT
There is a decent section on this in the pro hadoop book, basically part of
the unit test section.

You have to define a hadoop.log.dir java property and ensure that the
hadoop-default.xml file and any local parameters you need are available.
Then you can run standalone with no particular trouble.

On Thu, Jul 2, 2009 at 11:33 AM, Michael Basnight <mbasnight@gmail.com>wrote:

> I have a java app that runs in tomcat and now needs to talk to my hadoop
> infrastructure. Typically, all the testing ive done / examples show starting
> something that uses hadoop via the 'bin/hadoop -jar' cmd, but as you can
> imagine this is no good for a existing tomcat app. Ive looked thru the .sh
> files in the bin/ dir, and it would require extensive work to mod the script
> to export the env variables so that tomcat can be restarted without a
> special init script (and with those variables in tact). The last thing i
> want to do is hand crank files that may or may not change in new hadoop
> distros. Is there a known way to use the hadoop infrastructure outside of
> the bin/hadoop -jar command?
>
> mb
>



-- 
Pro Hadoop, a book to guide you from beginner to hadoop mastery,
http://www.amazon.com/dp/1430219424?tag=jewlerymall
www.prohadoopbook.com a community for Hadoop Professionals

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message