-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy impala compose file to integration tests resources
- Loading branch information
1 parent
e723640
commit eb0d349
Showing
2 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
integration-tests/kyuubi-jdbc-it/src/test/resources/impala-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# 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. | ||
|
||
# modified compose file from Impala repo, see | ||
# https://github.com/apache/impala/blob/master/docker/quickstart.yml | ||
version: "3.5" | ||
services: | ||
metastore: | ||
image: apache/impala:4.0.0-impala_quickstart_hms | ||
command: ["hms"] | ||
ports: | ||
- "9083" | ||
volumes: | ||
# Volume used to store Apache Derby database. | ||
- impala-data:/var/lib/hive | ||
# Warehouse directory. HMS does file operations so needs access to the | ||
# shared volume. | ||
- impala-data:/user/hive/warehouse | ||
- ./impala_conf:/opt/hive/conf:ro | ||
|
||
statestored: | ||
image: apache/impala:4.0.0-statestored | ||
ports: | ||
- "25010" | ||
command: ["-redirect_stdout_stderr=false", "-logtostderr", "-v=1"] | ||
volumes: | ||
- ./impala_conf:/opt/impala/conf:ro | ||
|
||
catalogd: | ||
depends_on: | ||
- statestored | ||
- metastore | ||
image: apache/impala:4.0.0-catalogd | ||
ports: | ||
- "25020" | ||
command: ["-redirect_stdout_stderr=false", "-logtostderr", "-v=1", | ||
"-hms_event_polling_interval_s=1", "-invalidate_tables_timeout_s=999999"] | ||
volumes: | ||
# Warehouse directory. Catalog does file operations so needs access to the | ||
# shared volume. | ||
- impala-data:/user/hive/warehouse | ||
- ./impala_conf:/opt/impala/conf:ro | ||
|
||
impalad: | ||
image: apache/impala:4.0.0-impalad_coord_exec | ||
depends_on: | ||
- statestored | ||
- catalogd | ||
ports: | ||
- "21050:21050" | ||
command: [ "-v=1", | ||
"-redirect_stdout_stderr=false", "-logtostderr", | ||
"-mt_dop_auto_fallback=true", | ||
"-default_query_options=mt_dop=4,default_file_format=parquet,default_transactional_type=insert_only", | ||
"-mem_limit=4gb"] | ||
environment: | ||
# Keep the Java heap small to preserve memory for query execution. | ||
- JAVA_TOOL_OPTIONS="-Xmx1g" | ||
volumes: | ||
- impala-data:/user/hive/warehouse | ||
- ./impala_conf:/opt/impala/conf:ro | ||
|
||
volumes: | ||
impala-data: | ||
|
||
networks: | ||
default: | ||
name: default-kyuubi-impala-test |
74 changes: 74 additions & 0 deletions
74
integration-tests/kyuubi-jdbc-it/src/test/resources/impala_conf/hive-site.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0"?> | ||
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> | ||
<!-- | ||
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. | ||
--> | ||
<!-- | ||
Hive configuration for Impala quickstart docker cluster. | ||
--> | ||
<configuration> | ||
<property> | ||
<!-- Required for automatic metadata sync. --> | ||
<name>hive.metastore.dml.events</name> | ||
<value>true</value> | ||
</property> | ||
<property> | ||
<!-- User impala is not authorized to consume notifications by default, disable | ||
authentication to work around this. --> | ||
<name>hive.metastore.event.db.notification.api.auth</name> | ||
<value>false</value> | ||
</property> | ||
<property> | ||
<name>hive.metastore.uris</name> | ||
<value>thrift://metastore:9083</value> | ||
</property> | ||
<!-- Managed and external tablespaces must live on the Docker volumes that we | ||
configure for the quickstart cluster. --> | ||
<property> | ||
<name>hive.metastore.warehouse.dir</name> | ||
<value>/user/hive/warehouse/managed</value> | ||
</property> | ||
<property> | ||
<name>hive.metastore.warehouse.external.dir</name> | ||
<value>/user/hive/warehouse/external</value> | ||
</property> | ||
<property> | ||
<!-- Required to enable Hive transactions --> | ||
<name>hive.support.concurrency</name> | ||
<value>true</value> | ||
</property> | ||
<property> | ||
<!-- Required to enable Hive transactions --> | ||
<name>hive.txn.manager</name> | ||
<value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value> | ||
</property> | ||
<property> | ||
<!-- Use embedded Derby database --> | ||
<name>javax.jdo.option.ConnectionDriverName</name> | ||
<value>org.apache.derby.jdbc.EmbeddedDriver</value> | ||
</property> | ||
<property> | ||
<!-- Use embedded Derby database --> | ||
<name>javax.jdo.option.ConnectionURL</name> | ||
<value>jdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true</value> | ||
</property> | ||
<!-- Hive stats autogathering negatively affects latency of DDL operations, etc and | ||
is not particularly useful for Impala --> | ||
<property> | ||
<name>hive.stats.autogather</name> | ||
<value>false</value> | ||
</property> | ||
</configuration> |