Kudu安装(官网推荐的步骤)(installing Kudu using parcels or packages)
不多说,直接上干货!
Kudu安装前的建议说明(博主推荐)
Kudu官网推荐的步骤:
本篇博文是installing Kudu using parcels or packages的方式。
http://kudu.apache.org/docs/installation.html#_build_from_source
规划
kudumaster kudu-tserver
master 是 是
slave1 否 是
slave2 否 是
第一步:配置Yum的Repository
对于这里,其实看官网一点都不难啦。大家别恐惧,对于大数据的各个组件,也就是那么一回事。
我这里的Linux操作系统是CentOS6.5,若你是其他的版本,对应官网来,对照入座就是了。
说白了,这种安装的风格,跟ClouderManager一样的,毕竟是一个大家族的。
这里,因为我的大数据集群是master、slave1、slave2。
[cloudera-kudu] # Packages for Cloudera's Distribution for kudu, Version 5, on RedHat or CentOS 6 x86_64 name=Cloudera's Distribution for kudu, Version 5 baseurl=http://archive.cloudera.com/kudu/redhat/6/x86_64/kudu/5/ gpgkey = http://archive.cloudera.com/kudu/redhat/6/x86_64/kudu/RPM-GPG-KEY-cloudera gpgcheck = 1
#这是官网的解释
sudo yum install kudu # Base Kudu files sudo yum install kudu-master # Kudu master init.d service script and default configuration sudo yum install kudu-tserver # Kudu tablet server init.d service script and default configuration sudo yum install kudu-client0 # Kudu C++ client shared library sudo yum install kudu-client-devel # Kudu C++ client SDK
但是,我这里为了给大家更仔细详细的来安装部署。
比如我这里master是作为kudu-master的,
# yum install kudu kudu-master kudu-client0 kudu-client-devel -y
比如我这里master、slave1、slave2是作为kudu-tserver的,
# yum install kudu kudu-tserver kudu-client0 kudu-client-devel -y
# 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=/opt/kudu/master --fs_data_dirs=/opt/kudu/master
# 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=/home/data/kudu/master
--fs_data_dirs=/home/data/kudu/master
# 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=/opt/kudu/tserver --fs_data_dirs=/opt/kudu/tserver --tserver_master_addrs=master:7051
# 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=/home/data/kudu/tserver
--fs_data_dirs=/home/data/kudu/tserver
--tserver_master_addrs=master:7051
设置权限
以下是默认安装的
# mkdir /opt/kudu && chown kudu:kudu /opt/kudu
# mkdir /home/data/kudu && chown kudu:kudu /home/data/kudu
sudo service kudu-master start sudo service kudu-tserver start
/etc/init.d/kudu-master start
/etc/init.d/kudu-tserver start
systemctl start NTP
synchronised to NTP server (120.25.108.11) at stratum 3 time correct to within 114 ms polling server every 1024 s
cd /home/data/kudu chowm -R kudu:kudu ./*
可以看到所有组件都已安装完毕了。
更多见官网,其实不难的,比如开机启动啊等,
sudo chkconfig kudu-master on
sudo chkconfig kudu-tserver on
官网
http://kudu.apache.org/docs/installation.html#rhel_from_source
另一种安装Kudu的方法。
Kudu安装(官网推荐的步骤)(installing build Kudu from source)
作者:大数据和人工智能躺过的坑
出处:http://www.cnblogs.com/zlslch/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。
如果您认为这篇文章还不错或者有所收获,您可以通过右边的“打赏”功能 打赏我一杯咖啡【物质支持】,也可以点击右下角的【好文要顶】按钮【精神支持】,因为这两种支持都是我继续写作,分享的最大动力!