Centos7安装kudu

1、下载kudu rpm包
下载地址:
https://archive.cloudera.com/cdh5/redhat/7/x86_64/cdh/5.14.0/RPMS/x86_64/

下载rpm包如下:
kudu-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
kudu-client0-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
kudu-client-devel-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
kudu-debuginfo-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
kudu-master-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
kudu-tserver-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
2、准备安装,我由三个虚拟机,分别为hadoop-1、hadoop-2、hadoop-3
master: hadoop-1、hadoop-2、hadoop-3
tserver: hadoop-1、hadoop-2、hadoop-3
3、安装依赖
sudo yum install cyrus-sasl-plain lsb
4、安装ntp
yum -y install ntp
5、安装
kudu-master节点安装:
rpm -ivh kudu-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-client0-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-client-devel-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-debuginfo-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-master-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-tserver-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
kudu-tserver节点安装(不安装kudu-master):
rpm -ivh kudu-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-client0-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-client-devel-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-debuginfo-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
rpm -ivh kudu-tserver-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el7.x86_64.rpm
4、修改配置
vi /etc/default/kudu-master
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=主机名:7051
vi /etc/kudu/conf/master.gflagfile
–fromenv=rpc_bind_addresses
–fromenv=log_dir
–fs_wal_dir=/export/servers/kudu/master
–fs_data_dirs=/export/servers/kudu/master
–master_addresses=hadoop-1:7051,hadoop-2:7051,hadoop-3:7051
vi /etc/default/kudu-tserver
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=主机名:7050
vi /etc/kudu/conf/tserver.gflagfile
–fromenv=rpc_bind_addresses
–fromenv=log_dir
–fs_wal_dir=/export/servers/kudu/tserver
–fs_data_dirs=/export/servers/kudu/tserver
–tserver_master_addrs=hadoop-1:7051,hadoop-2:7051,hadoop-3:7051
5、将/export/servers/kudu目录的权限修改为kudu
chown -R kudu:kudu /export/servers/kudu
6、master、tserver时间同步
/etc/init.d/ntpd restart
7、启动
/etc/init.d/kudu-master start
/etc/init.d/kudu-tserver start
8、查看kudu webUI
http://hadoop-1:8051/
如果master三个、tserver三个则代表成功

你可能感兴趣的:(大数据)