Skip to content

Commit

Permalink
ARROW-16832: [C++] Remove hiveserver2 related codes entirely (#13400)
Browse files Browse the repository at this point in the history
This is a follow-up of #13382.

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou authored Jun 20, 2022
1 parent 4ade394 commit 207d328
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 72 deletions.
9 changes: 1 addition & 8 deletions ci/conan/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class ArrowConan(ConanFile):
"with_gflags": ["auto", True, False],
"with_glog": ["auto", True, False],
"with_grpc": ["auto", True, False],
"with_hiveserver2": [True, False],
"with_jemalloc": ["auto", True, False],
"with_json": [True, False],
"with_llvm": ["auto", True, False],
Expand Down Expand Up @@ -103,7 +102,6 @@ class ArrowConan(ConanFile):
"with_jemalloc": "auto",
"with_glog": "auto",
"with_grpc": "auto",
"with_hiveserver2": False,
"with_json": False,
"with_llvm": "auto",
"with_openssl": "auto",
Expand Down Expand Up @@ -164,8 +162,6 @@ def validate(self):
raise ConanInvalidConfiguration("with_openssl options is required (or choose auto)")
if self.options.with_cuda:
raise ConanInvalidConfiguration("CCI has no cuda recipe (yet)")
if self.options.with_hiveserver2:
raise ConanInvalidConfiguration("CCI has no hiveserver2 recipe (yet)")
if self.options.with_orc:
raise ConanInvalidConfiguration("CCI has no orc recipe (yet)")
if self.options.with_s3 and not self.options["aws-sdk-cpp"].config:
Expand Down Expand Up @@ -237,7 +233,7 @@ def _with_boost(self, required=False):

def _with_thrift(self, required=False):
# No self.options.with_thift exists
return bool(required or self.options.with_hiveserver2 or self.options.parquet)
return bool(required or self.options.parquet)

def _with_utf8proc(self, required=False):
if required or self.options.with_utf8proc == "auto":
Expand Down Expand Up @@ -356,7 +352,6 @@ def _configure_cmake(self):
self._cmake.definitions["ARROW_BUILD_STATIC"] = not self.options.shared
self._cmake.definitions["ARROW_NO_DEPRECATED_API"] = not self.options.deprecated
self._cmake.definitions["ARROW_FLIGHT"] = self.options.with_flight_rpc
self._cmake.definitions["ARROW_HIVESERVER2"] = self.options.with_hiveserver2
self._cmake.definitions["ARROW_COMPUTE"] = self._compute()
self._cmake.definitions["ARROW_CSV"] = self.options.with_csv
self._cmake.definitions["ARROW_CUDA"] = self.options.with_cuda
Expand Down Expand Up @@ -561,8 +556,6 @@ def package_info(self):
self.cpp_info.components["libarrow"].requires.append("libbacktrace::libbacktrace")
if self.options.with_cuda:
self.cpp_info.components["libarrow"].requires.append("cuda::cuda")
if self.options.with_hiveserver2:
self.cpp_info.components["libarrow"].requires.append("hiveserver2::hiveserver2")
if self.options.with_json:
self.cpp_info.components["libarrow"].requires.append("rapidjson::rapidjson")
if self.options.with_s3:
Expand Down
1 change: 0 additions & 1 deletion ci/scripts/cpp_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ cmake \
-DARROW_GANDIVA=${ARROW_GANDIVA:-OFF} \
-DARROW_GCS=${ARROW_GCS:-OFF} \
-DARROW_HDFS=${ARROW_HDFS:-ON} \
-DARROW_HIVESERVER2=${ARROW_HIVESERVER2:-OFF} \
-DARROW_INSTALL_NAME_RPATH=${ARROW_INSTALL_NAME_RPATH:-ON} \
-DARROW_JEMALLOC=${ARROW_JEMALLOC:-ON} \
-DARROW_JNI=${ARROW_JNI:-OFF} \
Expand Down
32 changes: 0 additions & 32 deletions ci/scripts/integration_hiveserver2.sh

This file was deleted.

7 changes: 0 additions & 7 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1563,13 +1563,6 @@ tasks:
fetch_depth: 0
{% endfor %}

# Remove the "skipped-" prefix in ARROW-8475
skipped-test-conda-cpp-hiveserver2:
ci: github
template: docker-tests/github.linux.yml
params:
image: conda-cpp-hiveserver2

{% for kind in ["static", "static-system-dependency"] %}
example-cpp-minimal-build-{{ kind }}:
ci: github
Expand Down
25 changes: 1 addition & 24 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ x-hierarchy:
- conda:
- conda-cpp:
- conda-integration
- conda-cpp-hiveserver2
- conda-cpp-valgrind
- conda-python:
- conda-python-pandas:
Expand Down Expand Up @@ -1677,7 +1676,7 @@ services:
POSTGRES_PASSWORD: postgres

impala:
# required for the hiveserver and hdfs tests
# required for the hdfs tests
image: ibisproject/impala:latest
hostname: impala
links:
Expand All @@ -1700,28 +1699,6 @@ services:
- 25010:25010
- 25020:25020

conda-cpp-hiveserver2:
# Usage:
# docker-compose build conda-cpp
# docker-compose build conda-cpp-hiveserver2
# docker-compose run conda-cpp-hiveserver2
image: ${REPO}:${ARCH}-conda-cpp
links:
- impala:impala
environment:
<<: *ccache
ARROW_FLIGHT: "OFF"
ARROW_FLIGHT_SQL: "OFF"
ARROW_GANDIVA: "OFF"
ARROW_PLASMA: "OFF"
ARROW_HIVESERVER2: "ON"
ARROW_HIVESERVER2_TEST_HOST: impala
shm_size: *shm-size
volumes: *conda-volumes
command:
["/arrow/ci/scripts/cpp_build.sh /arrow /build &&
/arrow/ci/scripts/integration_hiveserver2.sh /arrow /build"]

conda-python-hdfs:
# Usage:
# docker-compose build conda-cpp
Expand Down

0 comments on commit 207d328

Please sign in to comment.