whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom White <tom.e.wh...@gmail.com>
Subject Re: Custom install and config functions when calling Whirr from code
Date Fri, 27 May 2011 00:10:11 GMT
I wasn't very clear. The code looks for a 'functions' directory on the
classpath, and reads from that. So if it's trying to load
'install_hadoop.sh' it will look for 'functions/install_hadoop.sh' on
the classpath. So you have to add the directory containing the
'functions' directory to your application classpath.

It might make sense to allow other ways of specifying the functions
for a service, not just by classpath lookup. E.g. if the program wants
to pass the functions as strings. Feel free to raise a JIRA for
improvements in this area.


On Thu, May 26, 2011 at 4:59 PM, Tom White <tom.e.white@gmail.com> wrote:
> Hi John,
> The functions directory itself needs to be on the classpath. You can
> achieve this by including it in your application JAR (like the Whirr
> service JARs do), or by adding it to the application classpath (like
> the bin/whirr script does).
> Hope that helps.
> Cheers,
> Tom
> On Thu, May 26, 2011 at 3:29 PM, John Conwell <john@iamjohn.me> wrote:
>> I have customized the install and config functions for cassandra, and put
>> these two files in the functions folder, and it works great from the cmd
>> line whirr utility.
>> But when launching a cluster via the Serice.launchCluster() method how do
>> you specify a custom function file for either install or configuration?
>> Thanks,
>> John C

View raw message