# 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.

type: jvm
entryService: http://localhost:8080/impala-jdbc-2.6.x-scenario/case/impala-jdbc-2.6.x-scenario
healthCheck: http://localhost:8080/impala-jdbc-2.6.x-scenario/case/healthCheck
startScript: ./bin/startup.sh
environment:
depends_on:
  - impala-server
dependencies:
  postgres:
    hostname: postgres
    image: parrotstream/postgres:10.5
    environment:
      - POSTGRES_PASSWORD=postgres
    expose:
      - 5432
  zookeeper:
    hostname: zookeeper
    image: parrotstream/zookeeper:latest
    expose:
      - 2181
      - 2888
      - 3888
  hadoop:
    hostname: hadoop
    image: parrotstream/hadoop:3.0.3
    links:
      - zookeeper
    expose:
      - 9870
      - 9864
      - 9820
      - 8042
      - 8088
      - 8188
      - 19888
  hive:
    hostname: hive
    image: parrotstream/hive:1.1.0-cdh5.11.1
    environment:
      - PGPASSWORD=postgres
    links:
      - hadoop
      - zookeeper
      - postgres
    expose:
      - 10000
      - 10001
      - 10002
      - 10003
      - 9083
      - 50111
      - 9999
  impala-server:
    hostname: impala-server
    image: parrotstream/impala:latest
    links:
      - hadoop
      - hive
      - zookeeper
    expose:
      - 21000
      - 21050
      - 25000
      - 25010
      - 25020