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 <[email protected]>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

Reply via email to