【Cloudberry(一)安装分布式数据库集群】
原文链接:https://blog.csdn.net/driftingman/article/details/144475491Linux 修改主机名主机名保存在/etc/hostname文件里,所以我们可以打开这个文件,手动编辑主机名。5、关闭防火墙、selinux、swapswapoff -aswap.使用阿里云归档。
这里写自定义目录标题
原文链接:https://blog.csdn.net/driftingman/article/details/144475491
Linux 修改主机名
hostnamectl set-hostname node1
hostnamectl set-hostname node2
hostnamectl set-hostname node3
主机名保存在/etc/hostname文件里,所以我们可以打开这个文件,手动编辑主机名。
sudo nano /etc/hosts
192.168.145.129
192.168.145.2
vi /etc/hosts
192.168.145.128 node1
192.168.145.129 node2
192.168.145.130 node3
5、关闭防火墙、selinux、swap
systemctl stop firewalld && systemctl disable firewalld
sed -i ‘s/enforcing/disabled/’ /etc/selinux/config && setenforce 0
swapoff -a
sed -ri ‘s/.swap./#&/’ /etc/fstab
使用阿里云归档
删除现有所有仓库文件
rm -f /etc/yum.repos.d/*.repo
使用阿里云的 CentOS 8 归档(不是 Stream 8)
cat > /etc/yum.repos.d/CentOS-Base.repo << ‘EOF’
[base]
name=CentOS-8 - Base - AliArchive
baseurl=https://mirrors.aliyun.com/centos-vault/8.5.2111/BaseOS/x86_64/os/
gpgcheck=0
enabled=1
[appstream]
name=CentOS-8 - AppStream - AliArchive
baseurl=https://mirrors.aliyun.com/centos-vault/8.5.2111/AppStream/x86_64/os/
gpgcheck=0
enabled=1
EOF
清理缓存
dnf clean all
重建缓存
dnf makecache
安装 git
dnf -y install git
先更新系统所有包
dnf update -y
安装依赖项
dnf groupinstall -y “Development Tools” --allowerasing
这个选项允许 DNF 删除冲突的包来解决依赖问题。
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install -y epel-release
单独处理冲突的包
先解决 Python 相关包的冲突
sudo dnf remove -y platform-python-pip python3-pip
sudo dnf install -y platform-python-devel python3-devel
sudo dnf install -y python3-pip
然后安装其他包
sudo dnf install -y apr-devel bison bzip2-devel cmake3 flex gcc gcc-c++ krb5-devel libcurl-devel libevent-devel libkadm5 libxml2-devel libzstd-devel openssl-devel perl-ExtUtils-Embed readline-devel xerces-c-devel zlib-devel
~/cloudberrydb/readmes/README.Rhel-Rocky.bash
pip3.9 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r ~/cloudberrydb/python-dependencies.txt
如果报错或卡住
中断当前安装后,清理yum进程
sudo rm -f /var/run/yum.pid
更新yum缓存
sudo yum clean all
sudo yum makecache
单独安装python39
sudo yum install -y python39
然后安装pip
sudo yum install -y python39-pip
编译CloudberryDB,设置安装路径为/usr/local/cloudberrydb
cd cloudberrydb
./configure --with-perl --with-python --with-libxml --with-gssapi --prefix=/usr/local/cloudberrydb
make -j8
make install
编译报错,
make[3]: Leaving directory ‘/root/cloudberrydb/gpMgmt/bin/stream’
make[2]: Leaving directory ‘/root/cloudberrydb/gpMgmt/bin’
make[1]: *** [Makefile:7: all-bin-recurse] Error 2
make[1]: Leaving directory ‘/root/cloudberrydb/gpMgmt’
make: *** [GNUmakefile:31: all] Error 2
清理重建
cd /root/cloudberrydb
make clean
make
https://github.com/apache/cloudberry/issues/1432
sudo dnf install python3-setuptools
sudo dnf install --enablerepo=crb python3-wheel
source /usr/local/cloudberry-db/cloudberry-env.sh
make create-demo-cluster -C ~/cloudberry
更多推荐


所有评论(0)