StarCluster - Mailing List Archive

Re: The simplest plugin for installing

From: Jacob Barhak <no email>
Date: Tue, 24 Dec 2013 21:38:11 -0600

Thanks Hugh,

Your response will probably save me some work of figuring out plugins.

Someone was thinking and made work easier for developers.

Happy holidays indeed.

        Jacob

Sent from my iPhone

On Dec 24, 2013, at 8:10 AM, "MacMullan, Hugh" <hughmac_at_wharton.upenn.edu> wrote:

> Hi Jacob:
>
> There's a plugin for that! pypkginstaller
>
> [plugin webapp-packages]
> setup_class = starcluster.plugins.pypkginstaller.PyPkgInstaller
> packages = flask, SQLAlchemy
>
> If your question is more "I'm looking for tips/tricks for developing plugins", I'm the wrong guy. :)
>
> Happy Holidays!
> -Hugh
>
> -----Original Message-----
> From: starcluster-bounces_at_mit.edu [mailto:starcluster-bounces_at_mit.edu] On Behalf Of Jacob Barhak
> Sent: Monday, December 23, 2013 5:37 PM
> To: starcluster_at_mit.edu
> Subject: [StarCluster] The simplest plugin for installing
>
> Hello,
>
> This is a question to the plugin experts out there.
>
> I wish to run a pip install command on each node and master after the cluster was initialized.
>
> I looked at plugins people write and it seems this should not be hard to do. Yet many plugins handle cases such as add node and remove node.
>
> My question is what is the most minimal set of methods required for a simple plugin such as the one I need. Do I only need to override __init__ ? Do I need to be aware of anything else to avoid breaking something?
>
> Also, if anyone has an easier solution for my problem of running the same shell command on all instances together after startup, then please do hint.
>
> Note that I am aware of the option of creating an AMI yet I rather not go in that path for now. I want a softer solution that installs software on a machine after startup.
>
> I hope this is simple and straightforward.
>
> Jacob
>
> Sent from my iPhone
> _______________________________________________
> StarCluster mailing list
> StarCluster_at_mit.edu
> http://mailman.mit.edu/mailman/listinfo/starcluster
>
> _______________________________________________
> StarCluster mailing list
> StarCluster_at_mit.edu
> http://mailman.mit.edu/mailman/listinfo/starcluster
Received on Tue Dec 24 2013 - 22:38:15 EST
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject