kudu安装方法简介
第一步:下载rpm包
http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.14.0/RPMS/x86_64/
kudu-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
kudu-client-devel-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
kudu-client0-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
kudu-debuginfo-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
kudu-master-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
kudu-tserver-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
第二步:安装rpm包
kudu-master节点安装:
rpm -ivh kudu-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-client-devel-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-client0-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-debuginfo-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-master-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-tserver-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
kudu-tserver节点安装(不安装kudu-master):
rpm -ivh kudu-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-client-devel-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-client0-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-debuginfo-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
rpm -ivh kudu-tserver-1.6.0+cdh5.14.0+0-1.cdh5.14.0.p0.47.el6.x86_64.rpm
第三步:配置
kudu配置项分为稳定配置(stable),高级配置(advanced);
稳定配置可用于配置常见任务;
高级配置包含有一些正在进行尝试的调试,可能会引起bug;
采用rpm安装之后,配置文件默认存在/etc/kudu/conf
kudu-master节点配置说明:
----master.gflagfile
配置项:
----block_cache_capacity_mb 块高速缓存容量(MB)(选配)
----log_force_fsync_all 每次写入后,Log/WAL 是否应显式调用(选配)
----fs_data_dirs Master 将放置其数据块的目录的逗号分隔列表(必须配置)
----master-addresses kudu-master的rpc通讯地址,不指定默认为单节点(多master必须配置,单master不能配置)
----fs_wal_dir Master 将其预写日志的目录(必须配置)
----log_dir 存储主日志文件的目录。(必须配置)
----tserver.gflagfile
----fs_data_dirs Tablet Server 将放置其数据块的目录的逗号分隔列表(必须配置)
----fs_wal_dir Tablet Server 将放置预写日志的目录(必须配置)
----log_dir 存储 Tablet Server 日志文件的目录(必须配置)
----tserver_master_addrs tablet server 应连接的主机的逗号分隔地址(必须配置)
----block_cache_capacity_mb 分配给 Kudu Tablet Server 块缓存的最大内存量(选配)
----memory_limit_hard_bytes Tablet Server 预存传入并未写入时消耗的最大内存量(选配)
kudu-tserver节点配置说明:
参照master的kudu-tserver配置
kudu配置操作如下:
vi /etc/default/kudu-master
文件内容如下:
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=mrj001:7051
vi /etc/default/kudu-tserver
文件内容如下:
export FLAGS_log_dir=/var/log/kudu
export FLAGS_rpc_bind_addresses=mrj001:7050
vi /etc/kudu/conf/master.gflagfile
文件内容如下:
--fromenv=rpc_bind_addresses
--fromenv=log_dir
--fs_wal_dir=/soft/kudu/master
--fs_data_dirs=/soft/kudu/master
vi /etc/kudu/conf/tserver.gflagfile
文件内容如下:
--fromenv=rpc_bind_addresses
--fromenv=log_dir
--fs_wal_dir=/soft/kudu/tserver
--fs_data_dirs=/soft/kudu/tserver
--tserver_master_addrs=mrj001:7051(新增)
第四步:ntp服务检测与安装
[root@mrj001 kudu]# yum -y install cyrus-sasl-plain lsb ntp
[root@mrj001 kudu]# rpm -ivh *
参考本人所写:https://blog.csdn.net/m0_38003171/article/details/79789557
第五步:设置目录权限
mkdir $PATH -p
chown -R kudu:kudu $PATH
备注:path为上述配置文件中自己配置的目录
第六步:启动kudu
[root@mrj001 default]# /etc/init.d/kudu-master start
[root@hadoop6 default]# /etc/init.d/kudu-tserver start
[root@mrj001 default]#chkconfig kudu-master on
[root@mrj001 default]#chkconfig kudu-tserver on
第七步:在ui访问kudu
http://192.168.137.6:8051/
http://192.168.137.6:8050/