This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new d47ec30a4 BIGTOP-4113. Drop GPDB (#1276)
d47ec30a4 is described below
commit d47ec30a4f232a4e75ac233551f49bde6d3f578e
Author: masatana <[email protected]>
AuthorDate: Mon Jun 3 19:51:56 2024 +0900
BIGTOP-4113. Drop GPDB (#1276)
---
bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml | 7 -
bigtop-deploy/puppet/hieradata/site.yaml | 1 -
bigtop-deploy/puppet/manifests/cluster.pp | 5 -
bigtop-deploy/puppet/modules/gpdb/README.md | 19 --
.../puppet/modules/gpdb/manifests/init.pp | 242 ---------------------
.../modules/gpdb/templates/creat-new-table.sh | 2 -
.../puppet/modules/gpdb/templates/gp_dbid | 3 -
.../puppet/modules/gpdb/templates/gpssh.conf | 12 -
.../puppet/modules/gpdb/templates/init-db.sh | 4 -
.../modules/gpdb/templates/insert-to-new-table.sh | 2 -
.../templates/start-master-db-in-admin-mode.sh | 2 -
.../puppet/modules/gpdb/templates/stop-db.sh | 2 -
.../modules/gpdb/templates/test-master-db.sh | 2 -
bigtop-deploy/puppet/modules/gpdb/tests/init.pp | 23 --
bigtop-packages/src/common/gpdb/do-component-build | 21 --
.../src/common/gpdb/do-component-configure | 19 --
bigtop-packages/src/common/gpdb/install_gpdb.sh | 19 --
bigtop-packages/src/deb/gpdb/changelog | 1 -
bigtop-packages/src/deb/gpdb/compat | 1 -
bigtop-packages/src/deb/gpdb/control | 27 ---
bigtop-packages/src/deb/gpdb/copyright | 15 --
bigtop-packages/src/deb/gpdb/rules | 46 ----
bigtop-packages/src/deb/gpdb/source/format | 1 -
bigtop-packages/src/rpm/gpdb/BUILD/.gitignore | 0
bigtop-packages/src/rpm/gpdb/RPMS/.gitignore | 0
bigtop-packages/src/rpm/gpdb/SOURCES/.gitignore | 0
bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec | 74 -------
bigtop-packages/src/rpm/gpdb/SRPMS/.gitignore | 0
bigtop-tests/smoke-tests/gpdb/TestGpdb.groovy | 57 -----
bigtop-tests/smoke-tests/gpdb/build.gradle | 32 ---
bigtop.bom | 9 -
build.gradle | 1 -
provisioner/utils/smoke-tests.sh | 1 -
33 files changed, 650 deletions(-)
diff --git a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
index 1f689c481..c81ba4690 100644
--- a/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
+++ b/bigtop-deploy/puppet/hieradata/bigtop/cluster.yaml
@@ -210,13 +210,6 @@ flink::common::parallelism_default: "1"
flink::common::jobmanager_failover_strategy: "region"
flink::common::rest_port: "8081"
-# GPDB
-# The first element is FQDN for master node and the succeeding ones are for
segment nodes.
-gpdb::common::nodes: ["%{hiera('bigtop::hadoop_head_node')}",
"%{hiera('bigtop::hadoop_head_node')}"]
-gpdb::common::gp_home: "/usr/lib/gpdb"
-gpdb::common::db_base_dir: "/data_gp"
-gpdb::common::master_db_port: "5432"
-gpdb::common::segment_db_port_prefix: "4000"
# Ranger
ranger::admin::admin_password: "Admin01234"
diff --git a/bigtop-deploy/puppet/hieradata/site.yaml
b/bigtop-deploy/puppet/hieradata/site.yaml
index 72df5a301..df4a8d0e6 100644
--- a/bigtop-deploy/puppet/hieradata/site.yaml
+++ b/bigtop-deploy/puppet/hieradata/site.yaml
@@ -20,7 +20,6 @@ hadoop::hadoop_storage_dirs:
#hadoop_cluster_node::cluster_components:
# - alluxio
# - flink
-# - gpdb
# - hbase
# - hcat
# - hive
diff --git a/bigtop-deploy/puppet/manifests/cluster.pp
b/bigtop-deploy/puppet/manifests/cluster.pp
index 51840cf4b..2cfca0da8 100644
--- a/bigtop-deploy/puppet/manifests/cluster.pp
+++ b/bigtop-deploy/puppet/manifests/cluster.pp
@@ -107,10 +107,6 @@ $roles_map = {
zeppelin => {
master => ["zeppelin-server"],
},
- gpdb => {
- master => ["gpdb-master"],
- worker => ["gpdb-segment"],
- },
kafka => {
worker => ["kafka-server"],
},
@@ -178,7 +174,6 @@ class node_with_roles ($roles = hiera("bigtop::roles"))
inherits hadoop_cluster_
"kerberos",
"zeppelin",
"kafka",
- "gpdb",
"bigtop_utils",
"phoenix",
"ranger",
diff --git a/bigtop-deploy/puppet/modules/gpdb/README.md
b/bigtop-deploy/puppet/modules/gpdb/README.md
deleted file mode 100644
index bc0cfcf3e..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-# Package instalation notes
-
-Greenplum scripts need the following python libs: psutil, paramiko.
-And they need python-pip package, which in its turn needs libffi-dev,
python-lockfile.
diff --git a/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp
b/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp
deleted file mode 100644
index d62b3f7b0..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp
+++ /dev/null
@@ -1,242 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-class gpdb {
-
- class deploy($roles) {
- if ("gpdb-master" in $roles or "gpdb-segment" in $roles) {
- include gpdb::common
- }
- }
-
- class common($nodes, $gp_home, $db_base_dir, $master_db_port,
$segment_db_port_prefix) {
-
- include stdlib
-
- class { 'gpdb::common::install_packages': }
-
- class { 'gpdb::common::gpadmin_user':}
-
- class { 'gpdb::common::prepare_file_structure':
- base_dir => "$db_base_dir",
- require => Class['gpdb::common::gpadmin_user']
- }
-
- class { 'gpdb::common::prepare_db_dirs':
- base_dir => "$db_base_dir",
- nodes => $nodes,
- gp_home => $gp_home,
- master_port => $master_db_port,
- segment_port_prefix => $segment_db_port_prefix,
- require => [Class['gpdb::common::prepare_file_structure'],
Class['gpdb::common::install_packages']]
- }
-
- class { 'gpdb::common::start_master_node':
- base_dir => "$db_base_dir",
- nodes => $nodes,
- gp_home => $gp_home,
- master_port => $master_db_port,
- segment_port_prefix => $segment_db_port_prefix,
- require => Class['gpdb::common::prepare_db_dirs']
- }
-
- class gpadmin_user{
- group { 'gpadmin':
- ensure => 'present',
- }
- user { 'gpadmin':
- ensure => 'present',
- system => false,
- managehome => true,
- groups => 'gpadmin',
- shell => '/bin/bash',
- }
- }
-
- class install_packages{
- package { ["gpdb"]:
- ensure => latest,
- }
- }
-
- class prepare_file_structure($base_dir = undef){
- file { "$base_dir":
- ensure => 'directory',
- owner => 'gpadmin',
- group => 'gpadmin',
- }
- file { "$base_dir/master":
- ensure => 'directory',
- owner => 'gpadmin',
- group => 'gpadmin',
- }
- file { "$base_dir/primary":
- ensure => 'directory',
- owner => 'gpadmin',
- group => 'gpadmin',
- }
- }
-
- class prepare_db_dirs($nodes = undef, $base_dir = undef, $gp_home = undef,
$master_port = undef, $segment_port_prefix = undef){
- file { '/home/gpadmin/init-db.sh':
- content => template('gpdb/init-db.sh'),
- require => [
- File["$base_dir/primary"],
- File["$base_dir/master"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- file { '/home/gpadmin/stop-db.sh':
- content => template('gpdb/stop-db.sh'),
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- each($nodes) |$index, $value| {
- notice($value)
- if ($::fqdn == $value) {
- $dbid = $index+1
- $content = $index-1
- $hostname = $value
- $segment_nodes_count=size($nodes)-1
- if ($dbid == 1){
- $port = $master_port
- $db_sub_dir = "master"
- $m_options = "master"
- $x_options = "-x 0 -E"
- $z_options = "$segment_nodes_count"
- } else{
- $port = "$segment_port_prefix${content}"
- $db_sub_dir = "primary"
- $m_options = "mirrorless"
- $x_options = ""
- $z_options = "$segment_nodes_count"
- }
- $db_dir = "$base_dir/${db_sub_dir}/gpseg${content}"
- exec { "create_master_db${db_dir}":
- command => "init-db.sh $db_dir",
- require => [File["/home/gpadmin/init-db.sh"]],
- path => '/home/gpadmin',
- user => 'gpadmin',
- }
- file_line { "allow all host connection${db_dir}":
- path => "${db_dir}/pg_hba.conf",
- line => 'host all all 0.0.0.0/0 trust',
- require => [Exec["create_master_db${db_dir}"]],
- }
- file_line { "add 1 conf${db_dir}":
- path => "${db_dir}/postgresql.conf",
- line => 'log_statement=all',
- require => [Exec["create_master_db${db_dir}"]],
- }
- file_line { "add 2 conf${db_dir}":
- path => "${db_dir}/postgresql.conf",
- line => 'max_wal_size=384MB',
- require => [Exec["create_master_db${db_dir}"]],
- }
- file_line { "add 3 conf${db_dir}":
- path => "${db_dir}/postgresql.conf",
- line => "port=${port}",
- require => [Exec["create_master_db${db_dir}"]],
- }
- file_line { "add 4 conf${db_dir}":
- path => "${db_dir}/postgresql.conf",
- line => 'logging_collector = off',
- require => [Exec["create_master_db${db_dir}"]],
- }
- file { "${db_dir}/gp_dbid":
- content => template('gpdb/gp_dbid'),
- require => [Exec["create_master_db${db_dir}"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- file { "${db_dir}/gpssh.conf":
- content => template('gpdb/gpssh.conf'),
- require => [Exec["create_master_db${db_dir}"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- }
- }
- }
-
-
- class start_master_node($nodes = undef, $base_dir = undef, $gp_home =
undef, $master_port = undef, $segment_port_prefix = undef){
- if ($::fqdn == $nodes[0]) {
- notice("must make admin")
- file { '/home/gpadmin/start-master-db-in-admin-mode.sh':
- content => template('gpdb/start-master-db-in-admin-mode.sh'),
- require => [Exec["create_master_db$base_dir/master/gpseg-1"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- file { '/home/gpadmin/test-master-db.sh':
- content => template('gpdb/test-master-db.sh'),
- require => [Exec["create_master_db$base_dir/master/gpseg-1"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- exec { 'start-master-db-in-admin-mode':
- command => "start-master-db-in-admin-mode.sh
$base_dir/master/gpseg-1",
- path => '/home/gpadmin',
- user => 'gpadmin',
- require => [
- Exec["create_master_db$base_dir/master/gpseg-1"],
- File['/home/gpadmin/start-master-db-in-admin-mode.sh']
- ],
- }
- file { '/home/gpadmin/creat-new-table.sh':
- content => template('gpdb/creat-new-table.sh'),
- require => [Exec["start-master-db-in-admin-mode"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- file { '/home/gpadmin/insert-to-new-table.sh':
- content => template('gpdb/insert-to-new-table.sh'),
- require => [Exec["start-master-db-in-admin-mode"]],
- owner => 'gpadmin',
- group => 'gpadmin',
- mode => '0700',
- }
- exec { "creat-new-table":
- environment => ["PGOPTIONS=-c gp_session_role=utility"],
- command => "creat-new-table.sh",
- path => '/home/gpadmin',
- user => 'gpadmin',
- require => [
- File["/home/gpadmin/creat-new-table.sh"],
- Exec['start-master-db-in-admin-mode'],
- ],
- }
- exec { "insert-to-new-table":
- environment => ["PGOPTIONS=-c gp_session_role=utility"],
- command => "insert-to-new-table.sh",
- path => '/home/gpadmin',
- user => 'gpadmin',
- require => [
- File["/home/gpadmin/insert-to-new-table.sh"],
- Exec['creat-new-table'],
- ],
- }
- }
- }
- }
-}
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/creat-new-table.sh
b/bigtop-deploy/puppet/modules/gpdb/templates/creat-new-table.sh
deleted file mode 100755
index 679a26417..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/creat-new-table.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-export PGOPTIONS="-c gp_session_role=utility";<%= @gp_home %>/bin/psql -p <%=
@master_port %> -d "template1" -c "CREATE TABLE bigtopusers (id integer, name
text, age numeric);" || true
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/gp_dbid
b/bigtop-deploy/puppet/modules/gpdb/templates/gp_dbid
deleted file mode 100755
index ea764ca29..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/gp_dbid
+++ /dev/null
@@ -1,3 +0,0 @@
-# Greenplum Database identifier for this master/segment.
-# Do not change the contents of this file.
-dbid = <%= @dbid %>
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/gpssh.conf
b/bigtop-deploy/puppet/modules/gpdb/templates/gpssh.conf
deleted file mode 100755
index 640747f5e..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/gpssh.conf
+++ /dev/null
@@ -1,12 +0,0 @@
-[gpssh]
-# delaybeforesend specifies the time in seconds to wait at the
-# beginning of an ssh interaction before doing anything.
-# Increasing this value can have a big runtime impact at the
-# beginning of gpssh.
-delaybeforesend = 0.05
-
-# prompt_validation_timeout specifies a timeout multiplier that
-# will be used in validating the ssh prompt. Increasing this
-# value will have a small runtime impact at the beginning of
-# gpssh.
-prompt_validation_timeout = 1.0
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/init-db.sh
b/bigtop-deploy/puppet/modules/gpdb/templates/init-db.sh
deleted file mode 100755
index f2836b51d..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/init-db.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-if [ ! -d $1 ]; then
- export LD_LIBRARY_PATH=<%= @gp_home %>/lib:/lib;<%= @gp_home %>/bin/initdb
-E UNICODE -D $1 --max_connections=750 --shared_buffers=128000kB
-fi
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/insert-to-new-table.sh
b/bigtop-deploy/puppet/modules/gpdb/templates/insert-to-new-table.sh
deleted file mode 100755
index 6dd6e5ba7..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/insert-to-new-table.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-export PGOPTIONS="-c gp_session_role=utility";<%= @gp_home %>/bin/psql -p <%=
@master_port %> -d "template1" -c "INSERT INTO bigtopusers (name, age) VALUES
('Jack', 28);" || true
diff --git
a/bigtop-deploy/puppet/modules/gpdb/templates/start-master-db-in-admin-mode.sh
b/bigtop-deploy/puppet/modules/gpdb/templates/start-master-db-in-admin-mode.sh
deleted file mode 100755
index 1c1cb46d4..000000000
---
a/bigtop-deploy/puppet/modules/gpdb/templates/start-master-db-in-admin-mode.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-export PGPORT=<%= @master_port %>;<%= @gp_home %>/bin/pg_ctl -w -l
$1/log/startup.log -D $1 -o "-p <%= @master_port %> --gp_dbid=1 -i
--gp_contentid=-1 -c gp_role=utility -m" start
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/stop-db.sh
b/bigtop-deploy/puppet/modules/gpdb/templates/stop-db.sh
deleted file mode 100644
index c1eea6f54..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/stop-db.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-<%= @gp_home %>/bin/pg_ctl -p $2 -D $1 stop
diff --git a/bigtop-deploy/puppet/modules/gpdb/templates/test-master-db.sh
b/bigtop-deploy/puppet/modules/gpdb/templates/test-master-db.sh
deleted file mode 100644
index 0ea4cc407..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/templates/test-master-db.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-export PGOPTIONS="-c gp_session_role=utility";<%= @gp_home %>/bin/psql -p <%=
@master_port %> -d "template1" -c "select age from bigtopusers;"
diff --git a/bigtop-deploy/puppet/modules/gpdb/tests/init.pp
b/bigtop-deploy/puppet/modules/gpdb/tests/init.pp
deleted file mode 100644
index 4a328a373..000000000
--- a/bigtop-deploy/puppet/modules/gpdb/tests/init.pp
+++ /dev/null
@@ -1,23 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-gpdb::server{"start":
- nodes => ["master_node_fqdn", "segment_node_fqdn"],
- gp_home => "/usr/lib/gpdb",
- db_base_dir => "/data_gp",
- master_db_port => "5432",
- segment_db_port_prefix => "4000",
- start_or_stop => running,
-}
diff --git a/bigtop-packages/src/common/gpdb/do-component-build
b/bigtop-packages/src/common/gpdb/do-component-build
deleted file mode 100644
index 3bdf386ca..000000000
--- a/bigtop-packages/src/common/gpdb/do-component-build
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -ex
-
-rm -f gpdb
-
-PYTHON=/usr/bin/python3 make MAKELEVEL=0
diff --git a/bigtop-packages/src/common/gpdb/do-component-configure
b/bigtop-packages/src/common/gpdb/do-component-configure
deleted file mode 100644
index f143423f8..000000000
--- a/bigtop-packages/src/common/gpdb/do-component-configure
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -ex
-
-PYTHON=/usr/bin/python3 ./configure --prefix=$1 --with-python --with-libxml
--with-gssapi --disable-orca CFLAGS='-fcommon -Wno-implicit-fallthrough'
diff --git a/bigtop-packages/src/common/gpdb/install_gpdb.sh
b/bigtop-packages/src/common/gpdb/install_gpdb.sh
deleted file mode 100755
index a67d8ac62..000000000
--- a/bigtop-packages/src/common/gpdb/install_gpdb.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash -x
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-set -ex
-
-PYTHON=/usr/bin/python3 make install DESTDIR=$1
diff --git a/bigtop-packages/src/deb/gpdb/changelog
b/bigtop-packages/src/deb/gpdb/changelog
deleted file mode 100644
index d4858cd49..000000000
--- a/bigtop-packages/src/deb/gpdb/changelog
+++ /dev/null
@@ -1 +0,0 @@
---- This is auto-generated
diff --git a/bigtop-packages/src/deb/gpdb/compat
b/bigtop-packages/src/deb/gpdb/compat
deleted file mode 100644
index ec635144f..000000000
--- a/bigtop-packages/src/deb/gpdb/compat
+++ /dev/null
@@ -1 +0,0 @@
-9
diff --git a/bigtop-packages/src/deb/gpdb/control
b/bigtop-packages/src/deb/gpdb/control
deleted file mode 100644
index 8b3e5d73b..000000000
--- a/bigtop-packages/src/deb/gpdb/control
+++ /dev/null
@@ -1,27 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-Source: gpdb
-Section: misc
-Priority: extra
-Maintainer: Bigtop <[email protected]>
-Build-Depends: debhelper (>= 9)
-Standards-Version: 3.9.4
-Homepage: https://github.com/greenplum-db/gpdb
-
-Package: gpdb
-Architecture: any
-Depends: ${shlibs:Depends}, bigtop-utils (>= 0.7), gcc, libffi-dev,
libssl-dev, make
-Description: Greenplum MPP database engine
- Provides the Greenplum MPP database engine
diff --git a/bigtop-packages/src/deb/gpdb/copyright
b/bigtop-packages/src/deb/gpdb/copyright
deleted file mode 100644
index eca1af7db..000000000
--- a/bigtop-packages/src/deb/gpdb/copyright
+++ /dev/null
@@ -1,15 +0,0 @@
-Format: http://dep.debian.net/deps/dep5
-Source: https://github.com/greenplum-db/gpdb
-Upstream-Name: Greenplum
-
-Files: *
-Copyright: 2010-2011, The Apache Software Foundation
-License: Apache-2.0
-
-Files debian/*
-Copyright: 2011, The Apache Software Foundation
-License: Apache-2.0
-
-License: Apache-2.0
- On Debian systems, the complete text of the Apache 2.0 license
- can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/bigtop-packages/src/deb/gpdb/rules
b/bigtop-packages/src/deb/gpdb/rules
deleted file mode 100755
index 31bac4632..000000000
--- a/bigtop-packages/src/deb/gpdb/rules
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/make -f
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# -*- makefile -*-
-
-# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
-
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
-
-%:
- dh $@
-
-override_dh_auto_clean:
- @echo Clean disabled
-
-override_dh_auto_configure:
- bash debian/do-component-configure /usr/lib/gpdb
-
-override_dh_auto_build:
- bash debian/do-component-build
-
-override_dh_auto_install:
- install -d -p -m 755 debian/gpdb
- bash -x debian/install_gpdb.sh ${CURDIR}/debian/gpdb
-
-override_dh_auto_test:
- @echo Tests are disabled
-
-override_dh_strip:
- dh_strip --no-automatic-dbgsym
diff --git a/bigtop-packages/src/deb/gpdb/source/format
b/bigtop-packages/src/deb/gpdb/source/format
deleted file mode 100644
index 163aaf8d8..000000000
--- a/bigtop-packages/src/deb/gpdb/source/format
+++ /dev/null
@@ -1 +0,0 @@
-3.0 (quilt)
diff --git a/bigtop-packages/src/rpm/gpdb/BUILD/.gitignore
b/bigtop-packages/src/rpm/gpdb/BUILD/.gitignore
deleted file mode 100644
index e69de29bb..000000000
diff --git a/bigtop-packages/src/rpm/gpdb/RPMS/.gitignore
b/bigtop-packages/src/rpm/gpdb/RPMS/.gitignore
deleted file mode 100644
index e69de29bb..000000000
diff --git a/bigtop-packages/src/rpm/gpdb/SOURCES/.gitignore
b/bigtop-packages/src/rpm/gpdb/SOURCES/.gitignore
deleted file mode 100644
index e69de29bb..000000000
diff --git a/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
b/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
deleted file mode 100644
index 87910815d..000000000
--- a/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
+++ /dev/null
@@ -1,74 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-%define man_dir %{_mandir}
-
-%if %{?suse_version:1}0
-%define bin_gpdb /usr/lib/gpdb
-%define doc_gpdb %{_docdir}/%{name}
-%define autorequire no
-%else
-%define bin_gpdb /usr/lib/gpdb
-%define doc_gpdb %{_docdir}/%{name}-%{gpdb_version}
-%define autorequire yes
-%endif
-%define debug_package %{nil}
-
-%undefine _auto_set_build_flags
-
-%global __brp_check_rpaths %{nil}
-
-%global __python %{__python3}
-
-Name: gpdb
-Version: %{gpdb_version}
-Release: %{gpdb_release}
-Summary: Greenplum MPP database enginer
-URL: https://github.com/greenplum-db/gpdb
-Group: Development/Libraries
-Buildroot: %{_topdir}/INSTALL/%{name}-%{version}
-License: ASL 2.0
-Source0: gpdb-%{gpdb_base_version}.tar.gz
-Source1: do-component-build
-Source2: install_gpdb.sh
-Source3: do-component-configure
-#BIGTOP_PATCH_FILES
-AutoReqProv: %{autorequire}
-
-Requires: bigtop-utils >= 0.7, gcc, libffi-devel, make, openssl-devel
-
-%description
-gpdb
-
-%prep
-%setup -n %{name}-%{gpdb_base_version}
-
-#BIGTOP_PATCH_COMMANDS
-
-%build
-bash %{SOURCE3} %{bin_gpdb}
-bash %{SOURCE1}
-
-%install
-%__rm -rf $RPM_BUILD_ROOT
-bash %{SOURCE2} %{_tmppath}
-mkdir -p $RPM_BUILD_ROOT%{bin_gpdb}
-cp -f -r %{_tmppath}%{bin_gpdb}/* $RPM_BUILD_ROOT/%{bin_gpdb}
-%__rm -rf %{_tmppath}%{bin_gpdb}
-
-%files
-%defattr(-,root,root)
-%{bin_gpdb}
-
-%changelog
diff --git a/bigtop-packages/src/rpm/gpdb/SRPMS/.gitignore
b/bigtop-packages/src/rpm/gpdb/SRPMS/.gitignore
deleted file mode 100644
index e69de29bb..000000000
diff --git a/bigtop-tests/smoke-tests/gpdb/TestGpdb.groovy
b/bigtop-tests/smoke-tests/gpdb/TestGpdb.groovy
deleted file mode 100644
index 18ce9dab9..000000000
--- a/bigtop-tests/smoke-tests/gpdb/TestGpdb.groovy
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.junit.BeforeClass
-import org.junit.AfterClass
-
-import org.apache.bigtop.itest.shell.Shell
-import static org.junit.Assert.assertFalse
-import org.junit.Test
-import org.apache.commons.logging.LogFactory
-import org.apache.commons.logging.Log
-
-import static org.apache.bigtop.itest.LogErrorsUtils.logError
-
-class TestGpdb {
- static private Log LOG = LogFactory.getLog(Object.class)
-
- static Shell sh = new Shell("/bin/bash -s")
-
- @BeforeClass
- static void setUp() {
- // noop for now.
- }
-
- @AfterClass
- public static void tearDown() {
- // noop for now
- }
-
- @Test
- void testGpdb() {
- // Basic test to verify that the server is running, and is in a
- // state that we expect.
- LOG.info('Test GPDB column query');
- sh.exec("runuser -l gpadmin /home/gpadmin/test-master-db.sh");
- logError(sh);
- int age = sh.getOut()[2].trim().toInteger()
- assertFalse(age == 0);
- LOG.info('Test GPDB column query finished');
- LOG.info('age is '+age);
- }
-}
diff --git a/bigtop-tests/smoke-tests/gpdb/build.gradle
b/bigtop-tests/smoke-tests/gpdb/build.gradle
deleted file mode 100644
index d0a9f96de..000000000
--- a/bigtop-tests/smoke-tests/gpdb/build.gradle
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-def tests_to_include() {
- return ["TestGpdb.groovy"];
-}
-
-sourceSets {
- test {
- groovy {
- srcDirs = ["./"]
- exclude { FileTreeElement elem -> (doExclude(elem.getName())) }
- }
- }
-}
-
-test.doFirst {
-}
diff --git a/bigtop.bom b/bigtop.bom
index 2e02057e2..7f86328fb 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -323,15 +323,6 @@ bigtop {
archive = "${apache.APACHE_ARCHIVE}/${download_path}" }
maven_parallel_build = true
}
- 'gpdb' {
- name = 'gpdb'
- relNotes = 'GreenPlum'
- version { base = '7.1.0'; pkg = base; release = 1 }
- tarball { destination = "$name-${version.base}.tar.gz"
- source = "${version.base}.tar.gz" }
- url { site = "https://github.com/greenplum-db/gpdb/archive/"
- archive = site }
- }
'livy' {
name = 'livy'
relNotes = 'Apache Livy'
diff --git a/build.gradle b/build.gradle
index 06df7f113..c785a406a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -132,7 +132,6 @@ rat {
"bigtop-deploy/puppet/README.md",
"bigtop-deploy/puppet/config/site.csv.example",
"dl/**",
- "bigtop-deploy/puppet/modules/gpdb/templates/**",
"provisioner/docker/config/hiera.yaml",
"provisioner/docker/config/hieradata/PLACEHOLDER",
"provisioner/docker/config/hosts",
diff --git a/provisioner/utils/smoke-tests.sh b/provisioner/utils/smoke-tests.sh
index 664cb4c1e..188c51ddd 100755
--- a/provisioner/utils/smoke-tests.sh
+++ b/provisioner/utils/smoke-tests.sh
@@ -34,7 +34,6 @@ echo -e "\n===== EXPORTING VARIABLES =====\n"
export ALLUXIO_HOME=${ALLUXIO_HOME:-/usr/lib/alluxio}
export FLINK_HOME=${FLINK_HOME:-/usr/lib/flink}
-export GPDB_HOME=${GPDB_HOME:-/usr/lib/gpdb}
export HADOOP_HOME=${HADOOP_HOME:-/usr/lib/hadoop}
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-/etc/hadoop/conf}
export HADOOP_MAPRED_HOME=${HADOOP_MAPRED_HOME:-/usr/lib/hadoop-mapreduce}