Kudu安装部署

Kudu集群安装必须配置ntpd服务器。

一、配置ntp服务
1)修改所有节点的/etc/ntp.conf
【命令】vi /etc/ntp.conf
restrict 192.168.6.3 nomodify notrap nopeer noquery          //当前节点IP地址
restrict 192.168.6.2 mask 255.255.255.0 nomodify notrap  //集群所在网段的网关(Gateway),子网掩码(Genmask)
2)选择一个主节点,修改其/etc/ntp.conf
【命令】vi /etc/ntp.conf
【内容】在server部分添加以下部分,并注释掉server 0 ~ n
server 127.127.1.0
Fudge 127.127.1.0 stratum 10
3)主节点以外,继续修改/etc/ntp.conf
【命令】vi /etc/ntp.conf
【内容】在server部分添加如下语句,将server指向主节点。
server 192.168.6.3
Fudge 192.168.6.3 stratum 10
===修改前===

Kudu安装部署_第1张图片

===修改后===
节点1(192.168.6.3):

Kudu安装部署_第2张图片

节点2(192.168.6.4):

Kudu安装部署_第3张图片

节点3(192.168.6.5):

Kudu安装部署_第4张图片

启动ntp服务、查看状态
1)启动ntp服务
【命令】service ntpd start
2)查看ntp服务器有无和上层ntp连通
【命令】ntpstat

查看ntp状态时,可能会出现如下所示情况

① unsynchronised time server re-starting polling server every 8 s

② unsynchronised polling server every 8 s

这种情况属于正常,ntp服务器配置完毕后,需要等待5-10分钟才能与/etc/ntp.conf中配置的标准时间进行同步。

等一段时间之后,再次使用ntpstat命令查看状态,就会变成如下正常结果:

 

3)查看ntp服务器与上层ntp的状态

【命令】ntpq -p

二、安装部署Kudu

1、下载Kudu地址:http://archive.cloudera.com/kudu/redhat/6/x86_64/kudu/5.12.2/RPMS/x86_64/

2、安装

master节点按照如下顺序进行安装:
rpm -ivh kudu-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
rpm -ivh kudu-master-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
rpm -ivh kudu-client0-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
rpm -ivh kudu-client0-devel-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
tablet节点按照如下顺序进行安装:
rpm -ivh kudu-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
rpm -ivh kudu-tserver-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
rpm -ivh kudu-client0-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm
rpm -ivh kudu-client0-devel-1.4.0+cdh5.12.1+0-1.cdh5.12.1.p0.10.el7.x86_64.rpm

3、修改配置文件

#master
[root@hadoop-senior01 kudu]# cat /etc/default/kudu-master 
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=hadoop-senior01.zhangbk.com:7051
#tserver
[root@hadoop-senior01 kudu]# cat /etc/default/kudu-tserver 
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=hadoop-senior01.zhangbk.com:7050


[root@hadoop-senior01 kudu]# cat /etc/kudu/conf/master.gflagfile
# Do not modify these two lines. If you wish to change these variables,
# modify them in /etc/default/kudu-master.
--fromenv=rpc_bind_addresses
--fromenv=log_dir

--fs_wal_dir=/var/lib/kudu/master
--fs_data_dirs=/var/lib/kudu/master
--master_addresses=hadoop-senior01.zhangbk.com:7051,hadoop-senior02.zhangbk.com:7051


[root@hadoop-senior01 kudu]# cat /etc/kudu/conf/tserver.gflagfile
# Do not modify these two lines. If you wish to change these variables,
# modify them in /etc/default/kudu-tserver.
--fromenv=rpc_bind_addresses
--fromenv=log_dir

--fs_wal_dir=/var/lib/kudu/tserver
--fs_data_dirs=/var/lib/kudu/tserver
--tserver_master_addrs=hadoop-senior01.zhangbk.com:7051,hadoop-senior02.zhangbk.com:7051

启动

service kudu-master start
service kudu-tserver start


service kudu-master stop
service kudu-tserver stop

kudu的图形界面

访问地址:http://192.168.235.21:8051/masters

遇到问题:

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F0318 22:56:16.808630 46241 master_main.cc:68] Check failed: _s.ok() Bad status: Service unavail
able: Cannot initialize clock: Error reading clock. Clock considered unsynchronized

没有配置ntpd

 

你可能感兴趣的:(Kudu)