-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
39 deletions.
There are no files selected for viewing
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,30 @@ | ||
- id: 19990101 | ||
a: Friday | ||
b: New Years Day | ||
c: Tractor trouble. | ||
d: | ||
- Alice | ||
- Bob | ||
- Xavier | ||
e: Julian Hyde | ||
f: "" | ||
g: | ||
- Bob's tractor got stuck in a field. | ||
- Alice and Xavier hatch a plan to surprise Charlie. | ||
object: | ||
count: 1 | ||
- id: 19990103 | ||
a: Sunday | ||
b: Sunday 3rd January | ||
c: Charlie's surprise. | ||
d: | ||
- Alice | ||
- Zebedee | ||
- Charlie | ||
- Xavier | ||
e: William Shakespeare | ||
f: "" | ||
g: | ||
- Charlie is very surprised by Alice and Xavier's surprise plan. | ||
object: | ||
count: 2 |
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 |
---|---|---|
@@ -1,43 +1,55 @@ | ||
version: '3' | ||
|
||
services: | ||
postgres-db: | ||
image: postgres:13 | ||
hive: | ||
image: openjdk:8-jdk-slim | ||
platform: linux/arm64 | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- ./hive_data:/opt/hive_data | ||
environment: | ||
- POSTGRES_DB=metastore | ||
- POSTGRES_USER=hive | ||
- POSTGRES_PASSWORD=hive | ||
|
||
hive-metastore: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.hive | ||
platform: linux/arm64 | ||
ports: | ||
- "9083:9083" | ||
depends_on: | ||
- postgres-db | ||
command: ["metastore"] | ||
|
||
hive-server: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.hive | ||
platform: linux/arm64 | ||
- HIVE_VERSION=2.3.9 | ||
ports: | ||
- "10000:10000" | ||
- "10002:10002" | ||
depends_on: | ||
- hive-metastore | ||
command: ["hiveserver2"] | ||
- "9083:9083" | ||
command: > | ||
/bin/bash -c " | ||
apt-get update && | ||
apt-get install -y wget procps && | ||
wget https://downloads.apache.org/hive/hive-2.3.9/apache-hive-2.3.9-bin.tar.gz && | ||
tar -xzf apache-hive-2.3.9-bin.tar.gz && | ||
mv apache-hive-2.3.9-bin /opt/hive && | ||
rm apache-hive-2.3.9-bin.tar.gz && | ||
echo 'export HIVE_HOME=/opt/hive' >> ~/.bashrc && | ||
echo 'export PATH=$$PATH:$$HIVE_HOME/bin' >> ~/.bashrc && | ||
source ~/.bashrc && | ||
sed -i 's|$${system:java.io.tmpdir}|/opt/hive_data|g' /opt/hive/conf/hive-site.xml && | ||
sed -i 's|$${system:user.name}|root|g' /opt/hive/conf/hive-site.xml && | ||
/opt/hive/bin/schematool -dbType derby -initSchema && | ||
/opt/hive/bin/hive --service metastore & | ||
sleep 10 && | ||
/opt/hive/bin/hive --service hiveserver2 | ||
" | ||
beeline: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.hive | ||
hive-beeline: | ||
image: openjdk:8-jdk-slim | ||
platform: linux/arm64 | ||
depends_on: | ||
- hive-server | ||
entrypoint: [ "/bin/bash" ] | ||
command: [ "-c", "sleep infinity" ] | ||
- hive | ||
volumes: | ||
- ./hive_data:/opt/hive_data | ||
environment: | ||
- HIVE_VERSION=2.3.9 | ||
command: > | ||
/bin/bash -c " | ||
apt-get update && | ||
apt-get install -y wget procps && | ||
wget https://downloads.apache.org/hive/hive-2.3.9/apache-hive-2.3.9-bin.tar.gz && | ||
tar -xzf apache-hive-2.3.9-bin.tar.gz && | ||
mv apache-hive-2.3.9-bin /opt/hive && | ||
rm apache-hive-2.3.9-bin.tar.gz && | ||
echo 'export HIVE_HOME=/opt/hive' >> ~/.bashrc && | ||
echo 'export PATH=$$PATH:$$HIVE_HOME/bin' >> ~/.bashrc && | ||
source ~/.bashrc && | ||
sleep 30 && | ||
/opt/hive/bin/beeline -u jdbc:hive2://hive:10000 | ||
" |
Submodule calcite
updated
5 files
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
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
Binary file not shown.