Gotcha. Adding custom scripts to the classpath works fine for me. I like the idea of passing functions as strings for added flexibility but its not that big a deal.
Thanks. On Thu, May 26, 2011 at 5:10 PM, Tom White <tom.e.wh...@gmail.com> wrote: > 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. > > Cheers, > Tom > > On Thu, May 26, 2011 at 4:59 PM, Tom White <tom.e.wh...@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 <j...@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 > >> > > > -- Thanks, John C