Re: pre-install 3-party Python package on spark cluster
2 cents: 1. You should use an environment management tool, such as ansible, puppet or chef to handle this kind of use cases (and lot more, Eg what if you want to add more nodes or to replace one bad node) 2. There are options such as -py-files to provide a zip file On Tue, Jan 12, 2016 at 6:11 AM, Annabel Melongo < melongo_anna...@yahoo.com.invalid> wrote: > When you run spark submit in either client or cluster mode, you can either > use the options --packages or -jars to automatically copy your packages to > the worker machines. > > Thanks > > > On Monday, January 11, 2016 12:52 PM, Andy Davidson > wrote: > > > I use https://code.google.com/p/parallel-ssh/ to upgrade all my slaves > > > > From: "taotao.li" > Date: Sunday, January 10, 2016 at 9:50 PM > To: "user @spark" > Subject: pre-install 3-party Python package on spark cluster > > I have a spark cluster, from machine-1 to machine 100, and machine-1 acts > as > the master. > > Then one day my program need use a 3-party python package which is not > installed on every machine of the cluster. > > so here comes my problem: to make that 3-party python package usable on > master and slaves, should I manually ssh to every machine and use pip to > install that package? > > I believe there should be some deploy scripts or other things to make this > grace, but I can't find anything after googling. > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/pre-install-3-party-Python-package-on-spark-cluster-tp25930.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > > > > > -- Best Regards, Ayan Guha
Re: pre-install 3-party Python package on spark cluster
When you run spark submit in either client or cluster mode, you can either use the options --packages or -jars to automatically copy your packages to the worker machines. Thanks On Monday, January 11, 2016 12:52 PM, Andy Davidson wrote: I use https://code.google.com/p/parallel-ssh/ to upgrade all my slaves From: "taotao.li" Date: Sunday, January 10, 2016 at 9:50 PM To: "user @spark" Subject: pre-install 3-party Python package on spark cluster I have a spark cluster, from machine-1 to machine 100, and machine-1 acts asthe master. Then one day my program need use a 3-party python package which is notinstalled on every machine of the cluster. so here comes my problem: to make that 3-party python package usable onmaster and slaves, should I manually ssh to every machine and use pip toinstall that package? I believe there should be some deploy scripts or other things to make thisgrace, but I can't find anything after googling. --View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/pre-install-3-party-Python-package-on-spark-cluster-tp25930.htmlSent from the Apache Spark User List mailing list archive at Nabble.com. -To unsubscribe, e-mail: user-unsubscribe@spark.apache.orgFor additional commands, e-mail: user-h...@spark.apache.org
Re: pre-install 3-party Python package on spark cluster
I use https://code.google.com/p/parallel-ssh/ to upgrade all my slaves From: "taotao.li" Date: Sunday, January 10, 2016 at 9:50 PM To: "user @spark" Subject: pre-install 3-party Python package on spark cluster > I have a spark cluster, from machine-1 to machine 100, and machine-1 acts as > the master. > > Then one day my program need use a 3-party python package which is not > installed on every machine of the cluster. > > so here comes my problem: to make that 3-party python package usable on > master and slaves, should I manually ssh to every machine and use pip to > install that package? > > I believe there should be some deploy scripts or other things to make this > grace, but I can't find anything after googling. > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/pre-install-3-party-Python > -package-on-spark-cluster-tp25930.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >
pre-install 3-party Python package on spark cluster
I have a spark cluster, from machine-1 to machine 100, and machine-1 acts as the master. Then one day my program need use a 3-party python package which is not installed on every machine of the cluster. so here comes my problem: to make that 3-party python package usable on master and slaves, should I manually ssh to every machine and use pip to install that package? I believe there should be some deploy scripts or other things to make this grace, but I can't find anything after googling. -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/pre-install-3-party-Python-package-on-spark-cluster-tp25930.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org