利用HAProxy实现Hive Server负载均衡
https://www.cnblogs.com/smartloli/p/4368676.html
下载
https://src.fedoraproject.org/repo/pkgs/haproxy/
http://download.openpkg.org/components/cache/haproxy/
https://pan.baidu.com/s/1NzhZc85jxOJsx9plnXi6qQ
HAProxy安装
# 安装gcc组
yum install -y gcc*
# 安装openssl
yum -y install openssl-devel pcre-devel
# 解压安装包
tar -xzvf haproxy-1.9.8.tar.gz
# 进入HAProxy
cd /opt/haproxy-1.9.8
# 编译HAProxy组件
make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_CRYPT_H=1 USE_LIBCRYPT=1
# 安装HAProxy
sudo make install
# 验证
haproxy -vv