https://github.com/guangie88/hive-docker
Dockerfile setup for Hive (with Hadoop)
https://github.com/guangie88/hive-docker
dockerfile hive
Last synced: 4 months ago
JSON representation
Dockerfile setup for Hive (with Hadoop)
- Host: GitHub
- URL: https://github.com/guangie88/hive-docker
- Owner: guangie88
- License: mit
- Created: 2018-12-31T03:43:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T06:38:08.000Z (over 7 years ago)
- Last Synced: 2025-02-28T20:26:37.643Z (over 1 year ago)
- Topics: dockerfile, hive
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hive Docker Builder
Dockerfile setup to install various versions of Hive in a minimalist
environment.
The Java version `JAVA_VERSION` defaults to 8, while both `HADOOP_VERSION` and
`HIVE_VERSION` build arguments must be specified. You may find out more about
the compatibility between Hive and Hadoop
[here](https://hive.apache.org/downloads.html).
This set-up also includes both MySQL and PostgreSQL JDBC JAR files to connect
to these two databases.
There is no default `hive-site.xml` file set up for this image. You should
bind mount the Hive configuration into `/usr/local/hive/conf/hive-site.xml` to
give it the configuration to connect to your custom backend.
## Example build and run commands
```bash
HADOOP_VERSION=2.7.7
HIVE_VERSION=2.3.4
# Build
docker build . \
--build-arg HADOOP_VERSION=${HADOOP_VERSION} \
--build-arg HIVE_VERSION=${HIVE_VERSION} \
-t guangie88/hive:${HIVE_VERSION}
# Check Hadoop version
docker run --rm -it \
guangie88/hive:${HIVE_VERSION} \
hive --version
```