You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hawq.apache.org by yuansong <yy...@126.com> on 2016/06/30 01:51:39 UTC
how I rmpbuild the HAWQ
Hi, when I rmpbuild the HAWQ, I can build success and install. but when i init master, it report the ERROR : “unable to import module : No module named psi.proccess" .
This is my hawq.spec file. who konows Where can I find the offical hawq.spec file? Or how can i update my hawq.spec to import all modules. i don't know which modules I should import and which libs I should copy. thanks !
Name:hawq
Version:2.0.0.0
Release:10%{?dist}
Summary: HAWQ
Prefix: /usr/local/hawq
Group:System Environment/Daemons
License:GPLv2
URL:http://hdb.docs.pivotal.io/
Source0:%{name}-%{version}.tar.gz
BuildRoot:%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:gcc,cmake
AutoReqProv: no
%description
kingbase HAWQ
%prep
%setup -q
%build
./configure \
--prefix=/root/rpmbuild/BUILDROOT/hawq-2.0.0.0-10.el6.x86_64/usr/local/hawq \
--with-python \
--with-perl
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install prefix=/root/rpmbuild/BUILDROOT/hawq-2.0.0.0-10.el6.x86_64/usr/local/hawq
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,0755)
/usr/local/hawq
%define __debug_install_post \
%{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\
%{nil}
Re: how I rmpbuild the HAWQ
Posted by Radar Da lei <rl...@pivotal.io>.
Hi Yuansong,
Recently we added some python modules back into Apache HAWQ, include 'psi',
so I think the latest version HAWQ can resolve your issue.
See: https://issues.apache.org/jira/browse/HAWQ-837
Then there is only one python module 'paramiko' you need to install on the
environment by yourself. This one's license is not compatible with Apache
HAWQ. So we will replace it later.
Install command:
pip --retries=50 --timeout=300 install paramiko
Thanks.
Regards,
Radar
On Thu, Jun 30, 2016 at 9:51 AM, yuansong <yy...@126.com> wrote:
> Hi, when I rmpbuild the HAWQ, I can build success and install. but
> when i init master, it report the ERROR : “unable to import module : No
> module named psi.proccess" .
> This is my hawq.spec file. who konows Where can I find the offical
> hawq.spec file? Or how can i update my hawq.spec to import all modules. i
> don't know which modules I should import and which libs I should copy.
> thanks !
>
>
> Name:hawq
> Version:2.0.0.0
> Release:10%{?dist}
> Summary: HAWQ
>
>
> Prefix: /usr/local/hawq
> Group:System Environment/Daemons
> License:GPLv2
> URL:http://hdb.docs.pivotal.io/
> Source0:%{name}-%{version}.tar.gz
> BuildRoot:%{_tmppath}/%{name}-%{version}-%{release}-root
>
>
> BuildRequires:gcc,cmake
> AutoReqProv: no
>
>
> %description
> kingbase HAWQ
>
>
> %prep
> %setup -q
>
>
>
>
> %build
> ./configure \
> --prefix=/root/rpmbuild/BUILDROOT/hawq-2.0.0.0-10.el6.x86_64/usr/local/hawq
> \
> --with-python \
> --with-perl
> make %{?_smp_mflags}
>
>
>
>
> %install
> rm -rf %{buildroot}
> make install
> prefix=/root/rpmbuild/BUILDROOT/hawq-2.0.0.0-10.el6.x86_64/usr/local/hawq
> %clean
> rm -rf %{buildroot}
>
>
>
>
> %files
> %defattr(-,root,root,0755)
> /usr/local/hawq
>
>
> %define __debug_install_post \
> %{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts}
> "%{_builddir}/%{?buildsubdir}"\
> %{nil}
>
>
>
>