元数据治理平台—Datahub安装配置
1.安装docker,docker-compose,jq
1.1安装docker
安装docker
yum -y install docker
查看版本
docker -v
通过下面的命令可以启停docker
systemctl start docker // 启动docker
systemctl stop docker // 关闭docker
1.2安装Docker Compose
curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
修改执行权限
sudo chmod +x /usr/local/bin/docker-compose
建立软连接
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
查看版本,验证安装成功。
docker-compose --version
1.3安装jq
安装EPEL源
yum install epel-release
安装完EPEL源后,可以查看下jq包是否存在:
yum list jq
安装jq:
yum install jq
2.安装python3
安装依赖
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
下载安装包
wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
tar -zxvf Python-3.8.3.tgz
编译安装
mkdir /usr/local/python3
cd Python-3.8.3
./configure --prefix=/usr/local/python3
make && make install
创建软连接
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
检查版本
python3 -V
pip3 -V
3.安装与启动datahub
python3 -m pip install --upgrade pip wheel setuptools
检查环境
python3 -m pip uninstall datahub acryl-datahub || true # sanity check - ok if it fails
收到这样的提示说明没有问题。
WARNING: Skipping datahub as it is not installed.
WARNING: Skipping acryl-datahub as it is not installed.
安装datahub,此步骤时间较长,耐心等待。
python3 -m pip install --upgrade acryl-datahub
卸载
pip uninstall urllib3
安装
pip3 install urllib3==1.26.15
查看datahub版本
python3 -m datahub version
启动datahub
文件地址:https://github.com/datahub-project/datahub/blob/master/docker/quickstart/docker-compose-without-neo4j.quickstart.yml
python3 -m datahub docker quickstart --quickstart-compose-file /root/.datahub/docker-compose-without-neo4j.quickstart.yml
访问WebUI
在这里插入图片描述