You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Clay B. (JIRA)" <ji...@apache.org> on 2016/01/07 00:55:40 UTC

[jira] [Commented] (HAWQ-307) Ubuntu Support

    [ https://issues.apache.org/jira/browse/HAWQ-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15086523#comment-15086523 ] 

Clay B. commented on HAWQ-307:
------------------------------

I have been getting this to work on my Ubuntu 14.04 laptop recently to the point unit tests will run. I have the GitHub [cbaenziger/incubator-hawq branch HAWQ-307|https://github.com/cbaenziger/incubator-hawq/tree/HAWQ-307] to provide Ubuntu build support to the point {{make unittest-check}} passes.

h2. Issues I hit were:
h3. shell scripts:
On Ubuntu {{/bin/sh}} is the dash shell while the shell scripts here expect bash. I updated {{#!}} lines to be {{/bin/bash}} for scripts I hit.

An open question, as both Ubuntu, CentOS (and I think MacOS X) have {{/bin/bash}} should all {{#!}}'s across the code base be updated? The list of current scripts using {{/bin/sh}} are:
* src/test/mb/mbregress.sh
* src/test/regress/regressplans.sh
* src/test/performance/start-pgsql.sh
* src/test/bench/wholebench.sh
* src/test/bench/runwisc.sh
* src/test/bench/create.sh
* src/pl/pljava/src/sql/pljava_install.sh
* src/backend/port/aix/mkldexport.sh
* src/backend/port/aix/mkldexport.sh
* src/backend/port/aix/mkldexport.sh
* src/backend/port/aix/mkldexport.sh
* src/backend/catalog/genbki.sh
* src/backend/utils/Gen_fmgrtab.sh
* src/timezone/data/yearistype.sh
* src/bin/ipcclean/ipcclean.sh
* contrib/hawq-hadoop/hawq-mapreduce-ao/test-record.sh
* contrib/hawq-hadoop/hawq-mapreduce-ao/test-aoFileReader.sh
* contrib/hawq-hadoop/hawq-mapreduce-tool/run-tests.sh
* contrib/hawq-hadoop/hawq-mapreduce-tool/run-performance-tests-locally.sh
* contrib/hawq-hadoop/hawq-mapreduce-tool/run-all-feature-tests-locally.sh
* pxf/tomcat/src/scripts/pre-install.sh
* pxf/pxf-service/src/scripts/pxf-env.sh
* pxf/pxf-service/src/scripts/pre-install.sh
* pxf/pxf-service/src/scripts/post-install.sh
* depends/libyarn/releng/bin/install-phd.sh
* depends/libyarn/releng/bin/cleanup-phd.sh

h3. libyarn:
Could not run {{../bootstrap}}; hitting the CMake issue:
{code}
-- Detecting CXX compiler ABI info - done
CMake Error at CMake/Platform.cmake:13 (STRING):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:15 (INCLUDE)


CMake Error at CMake/Platform.cmake:17 (MESSAGE):
  Cannot get gcc version from "g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4

  Copyright (C) 2013 Free Software Foundation, Inc.

  This is free software; see the source for copying conditions.  There is NO

  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  

  "
Call Stack (most recent call first):
  CMakeLists.txt:15 (INCLUDE)
{code}

I lifted the libhdfs3 {{CMake/Platform.cmake}} code which seemed to work fine but only checks major and minor version and not patch.

h3. Test cases and {{open(2)}}:
It seemed a few calls were misusing open(2) expecting perhaps fopen(3) semantics?
* {{src/backend/resourcemanager/communication/rmcomm_QD2RM.c}}: Didn't provide a file mode for {{O_CREAT}}.
* {{src/tools/fsync/test_fsync.c}}: Seemed to be using too many args.

h3. Update {{BUILD_INSTRUCTIONS.md}}
I provided the package versions used by Ubuntu 14.04 as per {{dpkg -l}}. However, the dependency chain is complex enough I have been [building using Chef and Test-Kitchen|https://github.com/cbaenziger/incubator-hawq/tree/test_kitchen] as may help HAWQ-127 and I will bring up in another JIRA.

> Ubuntu Support
> --------------
>
>                 Key: HAWQ-307
>                 URL: https://issues.apache.org/jira/browse/HAWQ-307
>             Project: Apache HAWQ
>          Issue Type: New Feature
>          Components: Build
>            Reporter: Lei Chang
>             Fix For: 2.1.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)