Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F287A200D19 for ; Fri, 6 Oct 2017 22:21:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F10F71609E1; Fri, 6 Oct 2017 20:21:42 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4381D1609D0 for ; Fri, 6 Oct 2017 22:21:42 +0200 (CEST) Received: (qmail 66142 invoked by uid 500); 6 Oct 2017 20:21:41 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 66133 invoked by uid 99); 6 Oct 2017 20:21:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2017 20:21:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A16181809B3 for ; Fri, 6 Oct 2017 20:21:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.222 X-Spam-Level: X-Spam-Status: No, score=-4.222 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tHMdXTe65Xni for ; Fri, 6 Oct 2017 20:21:39 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id C9FDA5FD83 for ; Fri, 6 Oct 2017 20:21:38 +0000 (UTC) Received: (qmail 66121 invoked by uid 99); 6 Oct 2017 20:21:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2017 20:21:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2F4BFF5CE8; Fri, 6 Oct 2017 20:21:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shivram@apache.org To: commits@hawq.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-1535. Link PXF Library during install Date: Fri, 6 Oct 2017 20:21:38 +0000 (UTC) archived-at: Fri, 06 Oct 2017 20:21:43 -0000 Repository: incubator-hawq Updated Branches: refs/heads/master c00b8d3ff -> 0fca19d0a HAWQ-1535. Link PXF Library during install Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/0fca19d0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/0fca19d0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/0fca19d0 Branch: refs/heads/master Commit: 0fca19d0a43e8519d8970ff63bbb4291038263ca Parents: c00b8d3 Author: shivzone Authored: Fri Oct 6 13:21:32 2017 -0700 Committer: shivzone Committed: Fri Oct 6 13:21:32 2017 -0700 ---------------------------------------------------------------------- pxf/Makefile | 12 ++++++++++-- pxf/build.gradle | 2 +- .../configs/templates/pxf-private.classpath.template | 12 ++++++------ 3 files changed, 17 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0fca19d0/pxf/Makefile ---------------------------------------------------------------------- diff --git a/pxf/Makefile b/pxf/Makefile index 3ac38b1..bd2b939 100644 --- a/pxf/Makefile +++ b/pxf/Makefile @@ -22,11 +22,13 @@ ifneq "$(HD)" "" BUILD_PARAMS= -Dhd=$(HD) else ifneq "$(PXF_HOME)" "" - BUILD_PARAMS= -DdeployPath=$(PXF_HOME) + BUILD_PARAMS= -DdeployPath="$(PXF_HOME)" else ifneq "$(GPHOME)" "" - BUILD_PARAMS= -DdeployPath="$(GPHOME)/pxf" + PXF_HOME= "$(GPHOME)/pxf" + BUILD_PARAMS= -DdeployPath="$(PXF_HOME)" else @echo "Cannot invoke install without configuring either PXF_HOME or GPHOME" + exit endif endif @@ -92,6 +94,12 @@ tomcat: install: ./gradlew install $(BUILD_PARAMS) + @if [ -d "$(PXF_HOME)/lib" ] ; then \ + pushd $(PXF_HOME)/lib && \ + for X in pxf-*-[0-9]*.jar; do \ + ln -sf $$X `echo $$X | sed -e 's/-[a-zA-Z0-9.]*.jar/.jar/'`; \ + done && popd; \ + fi bundle: ./gradlew bundle $(BUILD_PARAMS) http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0fca19d0/pxf/build.gradle ---------------------------------------------------------------------- diff --git a/pxf/build.gradle b/pxf/build.gradle index e27074e..e47aa6e 100644 --- a/pxf/build.gradle +++ b/pxf/build.gradle @@ -614,7 +614,7 @@ def pxfTargetDir = System.properties['deployPath'] ?: "build/" task install(type: Copy, dependsOn: [subprojects.build, tomcatGet]) { into "${pxfTargetDir}" - subprojects { subProject -> + subprojects { project -> from("${project.name}/build/libs") { into 'lib' } } from("pxf-service/src/scripts/pxf-service") { http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0fca19d0/pxf/pxf-service/src/configs/templates/pxf-private.classpath.template ---------------------------------------------------------------------- diff --git a/pxf/pxf-service/src/configs/templates/pxf-private.classpath.template b/pxf/pxf-service/src/configs/templates/pxf-private.classpath.template index d5d1910..c7d9b47 100644 --- a/pxf/pxf-service/src/configs/templates/pxf-private.classpath.template +++ b/pxf/pxf-service/src/configs/templates/pxf-private.classpath.template @@ -23,11 +23,11 @@ PXF_HOME/conf # PXF Libraries -PXF_HOME/lib/pxf-hbase-*[0-9].jar -PXF_HOME/lib/pxf-hdfs-*[0-9].jar -PXF_HOME/lib/pxf-hive-*[0-9].jar -PXF_HOME/lib/pxf-json-*[0-9].jar -PXF_HOME/lib/pxf-jdbc-*[0-9].jar +PXF_HOME/lib/pxf-hbase.jar +PXF_HOME/lib/pxf-hdfs.jar +PXF_HOME/lib/pxf-hive.jar +PXF_HOME/lib/pxf-json.jar +PXF_HOME/lib/pxf-jdbc.jar # Hadoop/Hive/HBase configurations HADOOP_HOME/etc/hadoop @@ -77,4 +77,4 @@ HBASE_HOME/lib/hbase-common*.jar HBASE_HOME/lib/hbase-protocol*.jar HBASE_HOME/lib/htrace-core*.jar HBASE_HOME/lib/netty*.jar -HBASE_HOME/lib/zookeeper*.jar \ No newline at end of file +HBASE_HOME/lib/zookeeper*.jar