Centos7如何编译安装kafka-manager
Kafka Manager是一个开源的,基于Web的用户界面,用于管理Apache Kafka集群,它提供了一个集中式的控制台,用于查看和管理Kafka集群的状态,包括Topics、Consumer Groups、Brokers等,本文将介绍如何在CentOS 7上编译安装Kafka Manager。
环境准备
在开始编译安装Kafka Manager之前,我们需要确保以下环境已经准备好:
1、JDK 1.8或更高版本
2、Maven 3.5或更高版本
3、Git
4、Apache Kafka
5、Node.js
6、Python 3.6或更高版本
7、Redis
8、MySQL或PostgreSQL数据库
9、Docker和Docker Compose
下载源码
我们需要从GitHub上克隆Kafka Manager的源码:
git clone https://github.com/yahoo/kafka-manager.git cd kafka-manager git checkout v0.10.0
编译安装
接下来,我们开始编译安装Kafka Manager:
1、安装依赖库:
yum install -y java-1.8.0-openjdk-devel mvn python36u python36u-libs python36u-devel git nodejs npm redis mysql-server mysql-devel postgresql postgresql-devel docker docker-compose wget unzip tar gzip zip curl jq netcat openssh-server openldap-clients openldap-servers openldap-devel zookeeperd zookeeperd-clients zookeeperd-devel krb5 krb5-devel librdkafka librdkafka-devel openssl openssl-devel protobuf protobuf-compiler protobuf-devel golang golang-1.10 golang-dep golang-go gettext-base gettext libintl libintl-devel luarocks luarocks-devel
2、安装Node.js:
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - yum install -y nodejs
3、安装Python3:
yum install -y python36u python36u-libs python36u-devel curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3.6 get-pip.py && pip3 install --upgrade pip setuptools wheel virtualenv && deactivate && python3 setup.py install --prefix=/usr/local --record record.txt && source activate root && pip install --user numpy pandas requests pyarrow thrift tensorflow tensorflow_probability sklearn seaborn scikit_learn jupyter ipython hdfs PyYAML httplib2 boto3 googleapiclient googleapiclient_discovery googleauth googleauth_oauthlib googleauth_httplib2 googleapiclient_cache httplib2_message deflate zlib_ng zlib cmake lz4 snappy bzip2 xz lzo gzip jsonschema argparse configparser dataclasses enum34 six six.moves ast pprint importlib_resources pathlib pickle dill itertools concurrent futures multiprocessing resource module types os sys re queue threading logging warnings urllib3 chardet idna cffi dateutil backports_abc concurrent.futures numbers textwrap calendar functools operator zipfile tarfile gzip file itertools string io contextlib io importlib io copy io tempfile io subprocess io shutil tempfile_contextmanager tempfile_detached contextlib contextmanager tempfile_generator contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextmanager tempfile_contextManager contextlib contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager contextManager context
原创文章,作者:K-seo,如若转载,请注明出处:https://www.kdun.cn/ask/124873.html