安装kafka
来源:互联网 发布:同数据库 编辑:程序博客网 时间:2024/05/16 04:48
环境:mac
很多网上说的安装教程都是根据wget编译包再进行解压编译的操作的,但是mac本身是不支持wget的操作
1.安装wget功能
强烈推荐使用brew安装,使用编译包安装会出现各种稀奇古怪问题. brew install wget.注意 不要用root权限操作.会出现以下的报错
Error: Running Homebrew as root is extremely dangerous and no longer supported.As Homebrew does not drop privileges on installation you would be giving allbuild scripts full access to your system.
2.安装zookeeper
1.brew into zookeeper安装完成之后,去修改zookeeper的配置文件,mac安装默认在/usr/local/etc/zookeeper下的zoo.cfg找到dataDir的属性 将文件保存在自己想要的路径。(zookeeper的参数详解点击打开链接)
# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial# synchronization phase can takeinitLimit=10# The number of ticks that can pass between# sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.# do not use /tmp for storage, /tmp here is just# example sakes.dataDir=/Users/hls/Desktop/zooker# the port at which the clients will connectclientPort=2181# the maximum number of client connections.# increase this if you need to handle more clients#maxClientCnxns=60
保存成功之后,启动zookeeper。
zkServer3.安装java
kafka本身依赖jdk,如果直接brew install kafka 会出现以下提示.
honglvshideMacBook-Pro:zookeeper hls$ brew install kafkakafka: Java 1.8+ is required to install this formula.JavaRequirement unsatisfied!You can install with Homebrew-Cask: brew cask install javaYou can download from: https://www.oracle.com/technetwork/java/javase/downloads/index.html
安装mac的java
brew cask install java如果在安装的过程中出现中断,可以尝试使用
brew cask reinstall java
4.安装kafka
brew install kafka
阅读全文
1 0
- kafka安装
- kafka 安装
- kafka安装
- kafka安装
- kafka安装
- kafka安装
- kafka安装
- kafka安装
- kafka安装
- kafka安装
- kafka安装
- 安装kafka
- kafka安装
- kafka安装
- 安装kafka
- kafka安装
- Kafka 安装
- kafka安装
- linux安装svn
- "A Review of Medical Image Classification Techniques-2011"笔记
- 基于MT6261行车记录仪
- Kotlin成了Google的亲儿子!吓的我赶紧学习学习
- Spring Boot Security属性介绍
- 安装kafka
- 杭电ACM 1005(Number Sequence)c++
- Android N PhoneAPP 启动关系类初始化
- js时间格式化
- SQLite的使用
- 第三方支付平台业务分析
- 生成随机数的方法
- 201301 JAVA 题目2-3级(走网格,从左上角到右下角)
- 非常适用的Sourceinsight插件,提高效率事半功倍