Spark3000 disciple 12th class spark ha Combat summary

Source: Internet
Author: User

Listen to the 12th lesson of the Liaoliang teacher tonight Spark ha combat, class notes and assignments are as follows:

Spark ha requires the installation of zookeeper, and a stable version of 3.4.6 is recommended.

1. Download zookeeper3.4.6,
2. Configure Environment variables
3. Create data logs
4.VI conf/zoo.cfg
Create myID in the 5 data directory

spark-env.sh Configuring HA:

Export spark_daemon_java_opts= "-dspark.deploy.recoverymode=zookeeper-dspark.deploy.zookeeper.url=master:2181, work1:2181,work2:2181-Dspark.deploy.zookeepr.dir=/spark "

STANDBY Master, step aside meaning, wait for the service

Test: ./stop-master.sh

Failover recovery will not be restored immediately, the general minute level.

Wait a moment to see that master automatically switches successfully.

Follow-up courses can be referred to Sina Weibo Liaoliang _dt Big Data Dream Factory: Http://weibo.com/ilovepains

Liaoliang China Spark First person, public number Dt_spark

Spark3000 disciple 12th class spark ha Combat summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.