日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Kudu安装(官网推荐的步骤)(installing build Kudu from source)

發布時間:2025/3/20 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Kudu安装(官网推荐的步骤)(installing build Kudu from source) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

?

  不多說,直接上干貨!

?

?

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-3-epel-6-x86_64-1-2.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-3-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/bashsudo 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-3-epel-6-x86_64-1-2.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-3-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

?

?

?

?

?

?

總結

以上是生活随笔為你收集整理的Kudu安装(官网推荐的步骤)(installing build Kudu from source)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。