Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packaging/src/docker/conf/hive-site.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
limitations under the License.
-->
<configuration>
<property>
<name>hive.support.concurrency</name>
<value>true</value>
</property>
<property>
<name>hive.txn.manager</name>
<value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
</property>
<property>
<name>hive.server2.enable.doAs</name>
<value>false</value>
Expand All @@ -40,6 +48,10 @@
<name>hive.exec.submit.local.task.via.child</name>
<value>false</value>
</property>
<property>
<name>hive.compactor.crud.query.based</name>
<value>true</value>
</property>
<property>
<name>hive.compactor.worker.threads</name>
<value>1</value>
Expand Down
8 changes: 8 additions & 0 deletions packaging/src/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,14 @@ services:
HIVE_SCRATCH_DIR: /opt/hive/scratch
HIVE_QUERY_RESULTS_CACHE_DIRECTORY: /opt/hive/scratch/_resultscache_

DB_DRIVER: postgres
SERVICE_OPTS: >-
-Xmx1G
-Dhive.metastore.uris=thrift://metastore:9083
-Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver
-Djavax.jdo.option.ConnectionURL=jdbc:postgresql://postgres:5432/metastore_db
-Djavax.jdo.option.ConnectionUserName=hive
-Djavax.jdo.option.ConnectionPassword=password

-Dhive.execution.mode=${HIVE_EXECUTION_MODE:-container}
-Dhive.zookeeper.quorum=${HIVE_ZOOKEEPER_QUORUM:-}
Expand All @@ -103,6 +108,9 @@ services:
volumes:
- warehouse:/opt/hive/data/warehouse
- scratch:/opt/hive/scratch
- type: bind
source: ${POSTGRES_LOCAL_PATH}
target: /opt/hive/lib/postgres.jar
# Mount local jars to a temporary staging area (Read-Only)
- ./jars:/tmp/ext-jars:ro
networks:
Expand Down
7 changes: 3 additions & 4 deletions packaging/src/docker/start-hive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ for arg in "$@"; do
export HIVE_ZOOKEEPER_QUORUM=zookeeper:2181
export HIVE_LLAP_DAEMON_SERVICE_HOSTS=@llap0
;;
--ozone)
COMPOSE_FILES="docker-compose.yml:storage/ozone/docker-compose.yml"
--ozone)
COMPOSE_FILES+=":storage/ozone/docker-compose.yml"
# DEFAULT_FS defines the bucket authority
export DEFAULT_FS="s3a://hive"

export HIVE_WAREHOUSE_PATH="/warehouse"

export S3_ENDPOINT_URL="http://s3.ozone:9878"
Expand All @@ -54,6 +53,6 @@ done
export HIVE_EXECUTION_MODE="$MODE"
export COMPOSE_FILE="$COMPOSE_FILES"

echo "Starting Hive cluster (mode=$HIVE_EXECUTION_MODE, compose_files=$COMPOSE_FILE)"
echo "Starting Hive cluster (mode=$HIVE_EXECUTION_MODE)"

docker compose $PROFILE up -d $SCALE
Loading