centos7 安装单机版kudu

1.安装ntp
  yum install ntp -y
2.启动ntp
  systemctl  start|stop|restart ntpd.service
3.添加安装包yum源 
  [cloudera-kudu]
  # Packages for Cloudera's Distribution for kudu, Version 0, on RedHat or CentOS 6 x86_64
  name=Cloudera's Distribution for kudu, Version 0
  baseurl=http://archive.cloudera.com/beta/kudu/redhat/7/x86_64/kudu/0/
  gpgkey=http://archive.cloudera.com/beta/kudu/redhat/7/x86_64/kudu/RPM-GPG-KEY-cloudera 
  gpgcheck = 1
4.安装kudu(yum 安装方式)
  yum install kudu kudu-master kudu-tserver kudu-client0 kudu-client-devel -y
  其中子节点可以不用安装kudu-master

5.配置参数(需要创建好相应目录)
  master:
    1./etc/default/kudu-master 
      export FLAGS_log_dir=/opt/kudu/log //日志目录
      export FLAGS_rpc_bind_addresses=kd:7051
    2./etc/kudu/conf.dist/master.gflagfile
      --fs_wal_dir=/opt/kudu/data/master
      --fs_data_dirs=/opt/kudu/data/master
      --default_num_replicas=1 //设置备份数 不设置默认为3
  tserver:
    1./etc/default/kudu-tserver
      export FLAGS_log_dir=/opt/kudu/log
      export FLAGS_rpc_bind_addresses=kd:7050
    2./etc/kudu/conf.dist/tserver.gflagfile
      --fs_wal_dir=/opt/kudu/data/tserver
      --fs_data_dirs=/opt/kudu/data/tserver
      --tserver_master_addrs=kd:7051 //绑定master节点
6.启动kudu
  service kudu-master start|stop
  service kudu-tserver start|stop

你可能感兴趣的:(CDH,kudu)