1、Centos:
1.1、单机安装
1.1.1、安装ntp服务
Kudu需要时间同步服务,即使是单机版,否则启动报错
# 安装
yum install chrony -y
# 配置
vim /etc/chrony.conf
server controller iburst
#启动
systemctl enable chronyd.service
systemctl restart chronyd.service
ntpdate controller
#验证
chronyc sources
chronyc sources -v 查看状态说明
timedatectl
1.1.2、配置kudu镜像仓库
# 配置yum
vim /etc/yum.repos.d/kudu.repo
[kudu]
name=kudu
baseurl=http://archive.cloudera.com/beta/kudu/redhat/7/x86_64/kudu/0/
gpgcheck=0
# 更新
yum clean all
yum makecache
1.1.3、安装kudu
# 安装
yum install kudu kudu-master kudu-tserver kudu-client0 kudu-client-devel -y
1.1.4、启动
systemctl start kudu-master
systemctl start kudu-tserver
systemctl enable kudu-master
systemctl enable kudu-tserver
1.2、集群安装
三节点:
1.2.1、安装
# 安装
yum install kudu kudu-master kudu-tserver kudu-client0 kudu-client-devel -y
1.2.2、修改配置文件
三个节点上执行
vim /etc/kudu/conf/master.gflagfile
--fs_wal_dir=/opt/data/kudu/master
--fs_data_dirs=/opt/data/kudu/master
--master_addresses=node-1:7051,node-2:7051,node-3:7051
vim /etc/kudu/conf/tserver.gflagfile
--fs_wal_dir=/opt/data/kudu/tserver
--fs_data_dirs=/opt/data/kudu/tserver
--tserver_master_addrs=node-1:7051,node-2:7051,node-3:7051
# 不同节点主机名不一样
[root@node-1 conf]# cat /etc/default/kudu-master
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=node-1:7051
[root@node-1 conf]# cat /etc/default/kudu-tserver
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=node-1:7050
# 修改目录权限
chown -R /opt/data/kudu
1.2.3、安装ntp服务
三个节点执行:如果需要一台ntpd服务端,可以将其配置成服务端
客户端:
yum install ntp -y
# 配置
vim /etc/ntp.conf
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 192.100.3.221 iburst
# 设置开启服务后自动同步上级ntp server时间
vim /etc/ntp/step-tickers
192.100.3.221
# 启动
systemctl restart ntpd
systemctl enable ntpd
# 开启同步
ntpdate 192.100.3.221
# 查看
[root@node-1 conf]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*yum_repository 192.100.3.221 11 u 42 64 377 0.167 0.667 0.123
前面有*说明同步成功
# 查看是否开启 NTP synchronized: yes
timedatectl
ntpstat
1.2.4、启动
systemctl start kudu-master
systemctl start kudu-tserver
# 开启自动启动
chkconfig kudu-master on
chkconfig kudu-tserver on
1.2.5、查看日志
cd /var/log/kudu