From 4d33755169802513baf45194bc5870bc992dae8b Mon Sep 17 00:00:00 2001 From: shivzone Date: Mon, 30 Oct 2017 16:36:13 -0700 Subject: [PATCH] HAWQ-1541. Removed pxf configs from webapp --- pxf/Makefile | 6 +-- pxf/build.gradle | 7 +--- .../test/resources/pxf-profiles-default.xml | 38 +++++++++++++++++++ .../test/resources/pxf-profiles-default.xml | 38 +++++++++++++++++++ 4 files changed, 80 insertions(+), 9 deletions(-) create mode 100644 pxf/pxf-hive/src/test/resources/pxf-profiles-default.xml create mode 100644 pxf/pxf-service/src/test/resources/pxf-profiles-default.xml diff --git a/pxf/Makefile b/pxf/Makefile index bd2b939a9d..166a59210b 100644 --- a/pxf/Makefile +++ b/pxf/Makefile @@ -19,13 +19,13 @@ default: all ifneq "$(HD)" "" - BUILD_PARAMS= -Dhd=$(HD) + BUILD_PARAMS+= -Dhd=$(HD) else ifneq "$(PXF_HOME)" "" - BUILD_PARAMS= -DdeployPath="$(PXF_HOME)" + BUILD_PARAMS+= -DdeployPath="$(PXF_HOME)" else ifneq "$(GPHOME)" "" PXF_HOME= "$(GPHOME)/pxf" - BUILD_PARAMS= -DdeployPath="$(PXF_HOME)" + BUILD_PARAMS+= -DdeployPath="$(PXF_HOME)" else @echo "Cannot invoke install without configuring either PXF_HOME or GPHOME" exit diff --git a/pxf/build.gradle b/pxf/build.gradle index 996e6935fb..78c5249b86 100644 --- a/pxf/build.gradle +++ b/pxf/build.gradle @@ -197,14 +197,9 @@ project('pxf-service') { tasks.war { archiveName = 'pxf.war' processResources { - filesMatching('**/pxf-private*.classpath') { + filesMatching('**/pxf-*') { details -> - if (details.name == "pxf-private${hddist}.classpath") { - details.name = "pxf-private.classpath" - } else { - // exclude classpath file for a different distribution details.exclude() - } } } } diff --git a/pxf/pxf-hive/src/test/resources/pxf-profiles-default.xml b/pxf/pxf-hive/src/test/resources/pxf-profiles-default.xml new file mode 100644 index 0000000000..bc3aa71300 --- /dev/null +++ b/pxf/pxf-hive/src/test/resources/pxf-profiles-default.xml @@ -0,0 +1,38 @@ + + + + + + + + HiveText + + org.apache.hawq.pxf.plugins.hive.HiveInputFormatFragmenter + org.apache.hawq.pxf.plugins.hive.HiveLineBreakAccessor + org.apache.hawq.pxf.plugins.hive.HiveStringPassResolver + org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher + org.apache.hawq.pxf.service.io.Text + + + diff --git a/pxf/pxf-service/src/test/resources/pxf-profiles-default.xml b/pxf/pxf-service/src/test/resources/pxf-profiles-default.xml new file mode 100644 index 0000000000..4d7641fe6d --- /dev/null +++ b/pxf/pxf-service/src/test/resources/pxf-profiles-default.xml @@ -0,0 +1,38 @@ + + + + + + + + Hive + + org.apache.hawq.pxf.plugins.hive.HiveDataFragmenter + org.apache.hawq.pxf.plugins.hive.HiveAccessor + org.apache.hawq.pxf.plugins.hive.HiveResolver + org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher + org.apache.hawq.pxf.service.io.GPDBWritable + + +