`
sillycat
  • 浏览: 2551328 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

DevOps(7)Spark Deployment on VM with Kafka

 
阅读更多
DevOps(7)Spark Deployment on VM with Kafka
 
1. Install the zookeeper
 
> sudo ln -s /home/carl/tool/zookeeper-3.4.6 /opt/zookeeper-3.4.6
> sudo ln -s /opt/zookeeper-3.4.6 /opt/zookeeper
 
Add it to the path
> cp conf/zoo_sample.cfg conf/zoo.cfg
 
Start the server
> zkServer.sh start zoo.cfg
 
Connect to the server
> zkCli.sh -server localhost:2181
 
Stop the server
> zkServer.sh stop
 
2. Install kafka
 
Build the source
> ./gradlew -PscalaVersion=2.10.0 releaseTarGz -x signArchives
 
Find the binary file here
> cd core/build/distributions/
 
Place the binary file to working directory and add it to the path.
 
Adjust the config file  vi config/server.properties 
 
Command to start kafka
nohup bin/kafka-server-start.sh config/server-dev2.properties &
 
Install the kafka monitor
 
Build and generate the assembly jar 
> sbt clean update
> sbt assembly
 
Similar command to start that
> java -cp /opt/kafka-monitor/lib/*.jar com.quantifind.kafka.offsetapp.OffsetGetterWeb --zk ubuntu-dev1,ubuntu-dev2 --port8082--refresh 10.seconds --retain 2.days
 
Tip:
Some Mysql Timezone Config
> mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p mysql
 
Or
 
mysql_tzinfo_to_sql /usr/share/zoneinfo/ > mysql.sql
 
Fix the too long string manually
> cat mysql.sql | mysql -u root -p mysql
 
3. Install rabbitMQ
 
Install erlang from source
>sudo apt-get install build-essential libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev
 
 
Install rabbitmq from source
 
Command to start rabbitmq
>sudo RABBITMQ_NODE_PORT=5672 RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15672}]" RABBITMQ_NODENAME=rabbit1 sbin/rabbitmq-server -detached
 
When I use guest/guest to login, I get this error message:
=ERROR REPORT==== 5-Feb-2015::13:14:08 ===
webmachine error: path="/api/whoami"
"Unauthorized"
 
Solution:
That is a new feature, I need to solve it like this
 
Creating User, set group, set permission
> rabbitmqctl -n rabbit1 add_user sillycat xxxxx
> rabbitmqctl -n rabbit1 set_user_tags sillycat administrator
> rabbitmqctl -n rabbit1 set_permissions -p / sillycat ".*" ".*" ".*"
 
Start the App and Visit the console
cd /opt/rabbitmq
sudo RABBITMQ_NODE_PORT=5672 RABBITMQ_SERVER_START_ARGS="-rabbitmq_management listener [{port,15672}]" RABBITMQ_NODENAME=rabbit2 sbin/rabbitmq-server -detached

enable cluster

sudo sbin/rabbitmqctl -n rabbit2 stop_app
sudo sbin/rabbitmqctl -n rabbit2 join_cluster rabbit1@ubuntu-dev1
sudo sbin/rabbitmqctl -n rabbit2 start_app

visit page
 
References:
 
 
 
 
分享到:
评论

相关推荐

    300页PPT讲述Spark DevOps进阶技巧

    根据提供的文件信息,我们可以提炼出关于Spark DevOps进阶技巧的相关知识点。首先,文件信息中提及了databricks,作为Apache Spark的创始人之一,在2013年底成立,原始团队来自伯克利大学的AMPLab,且已经完成了两轮...

    DevOps with Kubernetes accelerating software delivery with container orch

    with DevOps skills has been growing rapidly over the last few years. It has accelerated software development and delivery speed and has also helped business agility. Chapter 2, DevOps with Container, ...

    Hands-On DevOps with Vagrant azw3

    Title: Hands-On DevOps with Vagrant Author: Alex Braunton Length: 232 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2018-10-17 ISBN-10: 1789138051 ISBN-13: ...

    DevOps with Kubernetes_Code 源码

    DevOps with Kubernetes_Code 源码 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Implementing.DevOps.on.AWS.epub

    Work through practical examples and gain DevOps best practices to successfully deploy applications on AWS Successfully provision and operate distributed application systems and your AWS infrastructure...

    DevOps with Kubernetes, 2nd Edition epub with src code

    《DevOps with Kubernetes, 2nd Edition》是2019年出版的一本关于使用Kubernetes进行DevOps实践的专业书籍,旨在帮助运维人员和运维开发者掌握如何利用Kubernetes这一强大的容器编排工具来优化和自动化软件开发流程...

    DevOps with Kubernetes and Helm

    本文以“DevOps with Kubernetes and Helm”为标题,围绕DevOps理念与Kubernetes、Helm这两个工具的结合使用展开了讨论。DevOps是一种融合了人员、流程和技术的实践,以实现持续地向最终用户交付价值。在描述中,...

    DevOps_with_OpenShift.pdf_devops_

    《DevOps与OpenShift》是关于DevOps实践与Red Hat OpenShift容器平台的深度解析。在当前数字化转型的大潮中,DevOps已经成为企业快速迭代、高效交付软件的关键策略,而OpenShift作为开源容器平台,为企业提供了强大...

    DevOps+with+Kubernetes-Packt+Publishing(2017).pdf )

    with DevOps skills has been growing rapidly over the last few years. It has accelerated software development and delivery speed and has also helped business agility. Chapter 2, DevOps with Container, ...

    DevOps with Kubernetes英文

    标题"DevOps with Kubernetes"表明这本PDF文档将深入探讨如何在DevOps实践中应用Kubernetes,以实现高效的持续集成、持续交付(CI/CD)流程。Kubernetes提供了强大的自动化功能,可以自动扩展应用、管理服务发现、...

    DevOps_with_OpenShift.pdf

    根据提供的文件信息,我们可以深入探讨《DevOps with OpenShift》这一主题所涵盖的关键知识点。本书由Stefano Picozzi、Mike Hepburn与Noel O’Connor共同编写,旨在帮助读者理解如何利用OpenShift来简化云部署过程...

    DevOps基础课程讲义

    * 不可变部署(Immutable Deployment): DevOps 通过不可变部署来确保基础设施的可靠性和一致性。 持续交付: * 持续集成(Continuous Integration): DevOps 通过持续集成来确保代码的正确性和可靠性。 * 持续...

    exin-devops所有课程相关考试

    7. **安全性与合规性**:DevOps并不忽视安全,DevSecOps提倡尽早引入安全检查。了解如何在CI/CD流程中集成安全测试,以及如何满足法规要求。 8. **度量与反馈**:学习如何通过度量指标(如MTTR、Lead Time、...

Global site tag (gtag.js) - Google Analytics