Ambari安装
Apache Ambari 项目旨在通过开发用于预置、管理和监控 Apache Hadoop 集群的软件来简化 Hadoop 管理。 Ambari 提供直观、易于使用的 Hadoop 管理 Web UI,由其 RESTful API 提供支持。 Ambari on ubuntu22.04
组件版本
Composant | Version Apache | Version Clemlab |
---|---|---|
Apache Ambari | 2.7.11.0 | 2.7.11.0 |
Apache Atlas | 2.3.0 | 2.3.0.1.2.4.0 |
Apache Flink | 1.17.0 | 1.17.0.1.2.4.0 |
Apache Hadoop | 3.3.6 | 3.3.6.1.2.4.0 |
Apache HBase | 2.5.6 | 2.5.6.1.2.4.0 |
Apache Hive | 3.1.3 | 3.1.3.1.2.4.0 |
Apache Kafka | 3.6.2 | 3.6.2.1.2.4.0 |
Apache Knox | 2.0.0 | 2.0.0.1.2.4.0 |
Apache Livy | 0.8.0 | 0.8.0.1.2.4.0 |
Apache NiFi | 1.24.0 | 1.24.0.1.2.4.0 |
Apache NiFi Registry | 1.24.0 | 1.24.0.1.2.4.0 |
Apache Oozie | 5.2.1 | 5.2.1.1.2.4.0 |
Apache Ozone | 1.4.0 | 1.4.0.1.2.4.0 |
Apache Phoenix | 5.1.3 | 5.1.3.1.2.4.0 |
Apache Ranger | 2.4.0 | 2.4.0.1.2.4.0 |
Apache Ranger KMS | 2.4.0 | 2.4.0.1.2.4.0 |
Apache Spark 2 | 2.4.8 | 2.4.8.1.2.4.0 |
Apache Spark 3 | 3.5.1 | 3.5.1.1.2.4.0 |
Apache TEZ | 0.10.2 | 0.10.2.1.2.4.0 |
Apache Zeppelin | 0.10.2 | 0.10.2.1.2.4.0 |
Apache Zookeeper | 3.8.4 | 3.8.4.1.2.4.0 |
建立本地仓库
wget -c https://clemlabs.s3.eu-west-3.amazonaws.com/ubuntu22-python3/ambari-release/2.7.11.0.0-161/repos-ambari.tar.gzwget -c https://clemlabs.s3.eu-west-3.amazonaws.com/ubuntu22/odp-release/1.2.4.0-108/repos.tar.gzwget -c https://clemlabs.s3.eu-west-3.amazonaws.com/ubuntu22/odp-utils/1.2.4.0/repos-utils.tar.gztar xvzf repos-ambari.tar.gz -C /tar xvzf repos.tar.gz -C /tar xvzf repos-utils.tar.gz -C /
apt install -y apache2sudo systemctl enable apache2 && sudo systemctl start apache2
echo 'deb http://ambari.kailinesb.com/ambari-release/dist/ubuntu22/1.x/BUILDS/2.7.11.0.0-161/AMBARI AMBARI main' > /etc/apt/sources.list.d/ambari.listecho 'deb http://ambari.kailinesb.com/odp-release/dist/ubuntu22/1.x/BUILDS/1.2.4.0-108/ODP ODP main' > /etc/apt/sources.list.d/odp.listecho 'deb http://ambari.kailinesb.com/odp-utils/dist/ubuntu22/1.x/BUILDS/1.2.4.0/ODP-UTILS ODP-UTILS main' > /etc/apt/sources.list.d/odp-utils.list
安装依赖
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 449E83E81403D1C5apt update -y && sudo apt upgrade -yapt install -y curl unzip tar wget sed gcc libssl-dev sssd-krb5 python3-dev libsnappy-dev
时间配置
sudo apt-get install -y ntpsudo update-rc.d ntp defaults
安装Ambari
sudo apt install -y ambari-server postgresql mysql-serversystemctl enable --now postgresql mysql
添加Mysql驱动包
wget 'https://cdn.mysql.com/archives/mysql-connector-java-5.1/mysql-connector-java-5.1.49.tar.gz'tar xvzf mysql-connector-java-5.1.49.tar.gzambari-server setup --jdbc-db=mysql --jdbc-driver=/root/mysql-connector-java-5.1.49/mysql-connector-java-5.1.49.jar
建立Postgresql账号
su - postgrespsqlcreate database ambari;\c ambaricreate user ambari superuser;alter user ambari encrypted password 'gaojinbo.com';
psql -U postgres -d ambari < /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql
配置Ambari
ambari-server setup#选择数据库postgresql 按提示操作
启动服务
sudo systemctl enable ambari-serversudo systemctl start ambari-server
http://192.168.21.195:18080/#默认密码admin/admin