Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Step 1: Prepare a HAWQ source code tarball for rpm building.
    • a) Make sure the source code tarball name format is: apache-hawq-src-%{hawq_version}-incubating.tar.gz
    • b) Make sure the extracted directory name format is: apache-hawq-src-%{hawq_version}-incubating
    • c) Put the HAWQ source tarball to %{top_dir}/contrib/hawq-package folder. Or use "HAWQ_SOURCE_TARBALL_PATH" to specify the find path of HAWQ source tarball.
  • Step 2: Install build dependencies of HAWQ, following instruction at:

    No Format
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    # For CentOs 7 the link is https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
    rpm -ivh epel-release-latest-7.noarch.rpm
    yum makecache
    # On redhat7, make sure enabled rhel-7-server-extras-rpms and rhel-7-server-optional-rpms channel in /etc/yum.repos.d/redhat.repo
    # Otherwise yum will prompt some packages(e.g. gperf) not be found
    yum install -y man passwd sudo tar which git mlocate links make bzip2 net-tools \
      autoconf automake libtool m4 gcc gcc-c++ gdb bison flex gperf maven indent \
      libuuid-devel krb5-devel libgsasl-devel expat-devel libxml2-devel \
      perl-ExtUtils-Embed pam-devel python-devel libcurl-devel snappy-devel \
      thrift-devel libyaml-devel libevent-devel bzip2-devel openssl-devel \
      openldap-devel protobuf-devel readline-devel net-snmp-devel apr-devel \
      libesmtp-devel python-pip json-c-devel \
      java-1.7.0-openjdk-devel lcov cmake\
      openssh-clients openssh-server perl-JSON perl-Env
    
    # need tomcat6 if enable-rps
    # download from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.44/
    
    pip --retries=50 --timeout=300 install pycrypto

     

  • Step 3: Run 'make distclean' and './configure'.
  • Step 4: Run 'make rpm' in the top directory of source code
    • You can set environment variable "HAWQ_RELEASE_VERSION" to specify HAWQ version
  • Step 5: You can find HAWQ/PFX/Ranger plugin rpms tarball at:
    • %{top_dir}/contrib/hawq-package/apache-hawq-rpm-%{hawq_version}-incubating.tar.gz
  • Please refer to: https://github.com/apache/incubator-hawq/blob/master/contrib/hawq-package/README for details.

...