/srv/irclogs.ubuntu.com/2018/01/15/#juju.txt

=== salmankhan1 is now known as salmankhan
elmaciejHi! Can someone quickly explain me how to write my charm - I want it to connect to existing spark client, copy jar file to spark master and run a spark job. It has to be a charm actually not a script . Can someone advise me how to start it - I'm reading documentation and honestly it totaly confused me14:27
kwmonroeelmaciej: you mentioned a req for being a charm, but the spark charm has a 'spark-submit' action that may do what you want. the  readme talks about the spark-submit action here: https://github.com/apache/bigtop/tree/master/bigtop-packages/src/charm/spark/layer-spark#actions21:43
kwmonroeyou can pass a jar (local, remote, hdfs -- whatever spark-submit accepts as it's jar param),  give it runtime options, and schedule it to run with cron if needed.21:45
kwmonroeelmaciej: if that doesn't work for you, the tengu team has written a subordinate charm called 'spark-job' that sits on a deployed spark charm.  it takes a job url and runs that on the spark cluster: https://jujucharms.com/u/tengu-team/spark-job21:47
kwmonroeelmaciej: if that doesn't suite your needs but you still want to take the subordinate charm approach, i suggest modelling your charm off of their source: https://github.com/tengu-team/layer-python-spark-job21:48
kwmonroeelmaciej: and if that's still not the route you'd like to go, the spark interface has a short client snippet for charms that need to "require" spark:  https://github.com/juju-solutions/interface-spark21:56
kwmonroeall this is predicated on some knowledge of charm authoring -- if you're just starting out, i'd recommend trying a hello-world with help from https://jujucharms.com/docs/stable/developer-getting-started, and asking specifics here -- we can def help you!22:01

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!