Apart from running in Standalone mode, Spark can also run on clusters managed by Apache Mesos. "Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks."
In addition to Spark, Hadoop, MPI and Hypertable also support running on clusters managed by Apache Mesos.
Listed below are the steps for deploying a Mesos Cluster. These should to be run on the node supposed to be the Master node in the Mesos Cluster.
1. Mesos 0.9.0-incubating can be downloaded from:
2. Extract Mesos setup
3. Change the current working directory to the extracted mesos setup for it's compilation.
The JAVA_HOME to be used needs to specified, while configuring Mesos. This can be done by specifying a command line option "--with-java-home" to the configure command as shown below:
After configuring, run the following two commands:
The following files and directories should have been created, if the above steps have been executed successfully:
4. Add the MESOS_NATIVE_LIBRARY variable declaration to "conf/spark-env.sh" in Spark's "conf" directory as shown below:
5. Copy the Mesos setup on all the nodes to be included in the Mesos cluster on the same location or simply setup Mesos on each of them by running:
This completes the process of setting up a Mesos Cluster.
1. On the Mesos Cluster's master node, edit the files "/usr/local/var/mesos/deploy/masters" to list down the IP of the Master node and "/usr/local/var/mesos/deploy/slaves" to list down the IPs of the slaves.
2. On all nodes of the Mesos Cluster, edit "/usr/local/var/mesos/conf/mesos.conf" and add the line master=HOST:5050, where HOST is the IP of the Mesos Cluster's master node.
This is the end of the Configuration Phase.
Good luck.
In addition to Spark, Hadoop, MPI and Hypertable also support running on clusters managed by Apache Mesos.
Listed below are the steps for deploying a Mesos Cluster. These should to be run on the node supposed to be the Master node in the Mesos Cluster.
1. Mesos 0.9.0-incubating can be downloaded from:
2. Extract Mesos setup
tar -xvzf mesos-0.9.0-incubating.tar.gz
|
3. Change the current working directory to the extracted mesos setup for it's compilation.
cd mesos-0.9.0
|
The JAVA_HOME to be used needs to specified, while configuring Mesos. This can be done by specifying a command line option "--with-java-home" to the configure command as shown below:
./configure --with-java-home=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64
|
After configuring, run the following two commands:
make
sudo make install |
The following files and directories should have been created, if the above steps have been executed successfully:
/usr/local/lib/libmesos.so
/usr/local/sbin/mesos-daemon.sh /usr/local/sbin/mesos-slave /usr/local/sbin/mesos-start-masters.sh /usr/local/sbin/mesos-stop-cluster.sh /usr/local/sbin/mesos-stop-slaves.sh /usr/local/sbin/mesos-master /usr/local/sbin/mesos-start-cluster.sh /usr/local/sbin/mesos-start-slaves.sh /usr/local/sbin/mesos-stop-masters.sh /usr/local/var/mesos/conf/mesos.conf.template /usr/local/var/mesos/deploy |
4. Add the MESOS_NATIVE_LIBRARY variable declaration to "conf/spark-env.sh" in Spark's "conf" directory as shown below:
export MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos.so
|
5. Copy the Mesos setup on all the nodes to be included in the Mesos cluster on the same location or simply setup Mesos on each of them by running:
cd mesos-0.9.0
sudo make install |
This completes the process of setting up a Mesos Cluster.
Configure Mesos for deployment
1. On the Mesos Cluster's master node, edit the files "/usr/local/var/mesos/deploy/masters" to list down the IP of the Master node and "/usr/local/var/mesos/deploy/slaves" to list down the IPs of the slaves.
2. On all nodes of the Mesos Cluster, edit "/usr/local/var/mesos/conf/mesos.conf" and add the line master=HOST:5050, where HOST is the IP of the Mesos Cluster's master node.
This is the end of the Configuration Phase.
Good luck.
Great Information
ReplyDeleteYaaron Studios is one of the rapidly growing editing studios in Hyderabad. We are the best Video Editing services in Hyderabad. We provides best graphic works like logo reveals, corporate presentation Etc. And also we gives the best Outdoor/Indoor shoots and Ad Making services.
Best video editing services in Hyderabad,ameerpet
Best Graphic Designing services in Hyderabad,ameerpet
Best Ad Making services in Hyderabad,ameerpet
Very useful and informative blog. Thank you so much for these kinds of informative blogs.
ReplyDeletewho provides seo services and e-commerce development services.
best website design services in gurgaon
best web design company in gurgaon
best website design in gurgaon
website design services in gurgaon
website design service in gurgaon
best website designing company in gurgaon
website designing services in gurgaon
web design company in gurgaon
best website designing company in india
top website designing company in india
best web design company in gurgaon
best web designing services in gurgaon
best web design services in gurgaon
website designing in gurgaon
website designing company in gurgaon
website design in gurgaon
graphic designing company in gurgaon
website company in gurgaon
website design company in gurgaon
web design services in gurgaon
best website design company in gurgaon
website company in gurgaon
Website design Company in gurgaon
best website designing services in gurgaon
best web design in gurgaon
website designing company in gurgaon
website development company in gurgaon
web development company in gurgaon
website design company
website designing services
Nice Information, your blog is sharing unique information...
ReplyDeleteThanks for sharing!!!
BA 3rd Year Result VBSPU
P.D.U.S.U. B.A 3rd Year Exam Result
CCSU BA 3rd Year Result
BA Final Year Result MGSU Name Wise