不多说,直接上干货!

Kudu安装前的建议说明(博主推荐)

  这是安装Kudu的另一种方法

Kudu安装(官网推荐的步骤)(installing Kudu using parcels or packages)

http://kudu.apache.org/docs/installation.html#rhel_from_source

Build From Source

  If installing Kudu using parcels or packages does not provide the flexibility you need, you can build Kudu from source. You can build from source on any supported operating system.

 
Known Build Issues
  • It is not possible to build Kudu on Microsoft Windows.

  • A C+11 capable compiler (GCC 4.8) is required.

  我们把它翻译过来,叫做

  从source里选择安装Kudu,然后编译环境任意可以选择。

  我这里还是以RHEL or CentOS为例。其实大家可以去看官网

第一步:安装必要的libraries

sudo yum install autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi \
cyrus-sasl-plain gcc gcc-c++ gdb git krb5-server krb5-workstation libtool \
make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common which

第二步:如果centos版本低于7.0(比如CentOS6.5),安装toolset,下载不了手动下载一下。

$ DTLS_RPM=rhscl-devtoolset--epel--x86_64--.noarch.rpm
$ DTLS_RPM_URL=https://www.softwarecollections.org/repos/rhscl/devtoolset-3/epel-6-x86_64/noarch/${DTLS_RPM}
$ wget ${DTLS_RPM_URL} -O ${DTLS_RPM}
$ sudo yum install -y scl-utils ${DTLS_RPM}
$ sudo yum install -y devtoolset--toolchain

第三步:可选项,安装gem、ruby-devel、ascidoctor。

$ sudo yum install doxygen gem graphviz ruby-devel zlib-devel

  注意:如果建立在7.0以上的RHEL或CentOS上,则可能需要使用rubygems替换gem包。

第四步:下载kudu工程,最新版本建议使用cloudera kudu git

$ git clone https://github.com/apache/kudu
$ cd kudu

第五步:安装第三方必要的包,很耗时

$ build-support/enable_devtoolset.sh thirdparty/build-if-necessary.sh

第六步:cmake构建makefile文件,然后make编译工程,若cmake剔除test,加入参数-DNO_TESTS=1

$ cd kudu
$ mkdir -p build/release
$ cd build/release ../../build-support/enable_devtoolset.sh \ ../../thirdparty/installed/bin/cmake \ -DCMAKE_BUILD_TYPE=release \ ../..
$ make -j4

第七步:Optional: Install Kudu binaries, libraries, and headers. If you do not specify an installation directory through the DESTDIRenvironment variable, /usr/local/ is the default.

sudo make DESTDIR=/opt/kudu install

 第八步:Optional: Build the documentation. NOTE: This command builds local documentation that is not appropriate for uploading to the Kudu website.

$ make docs

总的是

  This script provides an overview of the procedure to build Kudu on a newly-installed RHEL or CentOS host, and can be used as the basis for an automated deployment scenario. It skips the steps marked Optional above.

#!/bin/bash

sudo yum -y install autoconf automake cyrus-sasl-devel cyrus-sasl-gssapi \
cyrus-sasl-plain gcc gcc-c++ gdb git krb5-server krb5-workstation libtool \
make openssl-devel patch pkgconfig redhat-lsb-core rsync unzip vim-common which
DTLS_RPM=rhscl-devtoolset--epel--x86_64--.noarch.rpm
DTLS_RPM_URL=https://www.softwarecollections.org/repos/rhscl/devtoolset-3/epel-6-x86_64/noarch/${DTLS_RPM}
wget ${DTLS_RPM_URL} -O ${DTLS_RPM}
sudo yum install -y scl-utils ${DTLS_RPM}
sudo yum install -y devtoolset--toolchain
git clone https://github.com/apache/kudu
cd kudu
build-support/enable_devtoolset.sh thirdparty/build-if-necessary.sh
mkdir -p build/release
cd build/release
../../build-support/enable_devtoolset.sh \
../../thirdparty/installed/common/bin/cmake \
-DCMAKE_BUILD_TYPE=release \
../..
make -j4

第九步:目录结构

..bin
..CMakeCache.txt
..CMakeFiles
..cmake_install.cmake
..CTestTetFile.cmake
..lib
..Makefile
..src
												

最新文章

  1. Docker笔记一:基于Docker容器构建并运行 nginx + php + mysql ( mariadb ) 服务环境
  2. 注解spring
  3. jQuery.ajaxSetup() 函数详解
  4. 捉襟见肘之UIView中contentMode属性
  5. C#基础总复习02
  6. textarea文本域
  7. solr 通过URL删除索引
  8. html列表问题
  9. QT 实现在QLabel上画图
  10. [OpenCV] 编译源程序 2.4.10 以支持 CUDA
  11. BZOJ.4145.[AMPPZ2014]The Prices(状压DP)
  12. Python---Models 模型
  13. 程序设计与算法(一)C语言程序设计CAP之字符串
  14. PowerDesigner设置Oracle不区分大小写
  15. I/O多路复用之 epoll 详解
  16. Centos 6.x/7.x yum安装php5.6.X
  17. delphi DockPresident
  18. Linux下安装配置SNMP服务
  19. linux中iptables的用法
  20. 手动安装Silverlight 4 Tools for Visual Studio 2010

热门文章

  1. [raspberry pi3] zram设置
  2. 读取XML文档存入泛型List<T>集合中
  3. Django之QuerySet 查询
  4. Xgboost的sklearn接口参数说明
  5. 用Oracle的函数,判断点是否在多边形内
  6. [51nod1239] 欧拉函数之和(杜教筛)
  7. javascript小菜单—demo
  8. php暂停函数sleep()和usleep的区别
  9. 用rc.local工具开机自启动
  10. vue.js使用elemnetUi