Sign inSign up

longe/hive

By longe

•Updated over 6 years ago

hive

Image
0

406

longe/hive repository overview

⁠dockerfiles

⁠hive

⁠Quick Start
# test
docker run --rm -it \
-p 10000:10000 -p 10002:10002 \
-v `pwd`/temp:/etc/hive \
-v `pwd`/temp:/data/hive \
--network hadoop \
--env-file `pwd`/hive-test.env \
--name hive-test -h hive-test \
longe/hive:2.3.4 

docker exec -it hive-test beeline

# docker-compose.yml
docker-compose up -d

⁠build

  • ubuntu
## 18.04 bionic, java-8
# hadoop-2.7.7, hive:1.2.2
docker build -t longe/hive:1.2.2 ./ --build-arg HIVE_VERSION=1.2.2
docker tag longe/hive:1.2.2 longe/hive:1.2.2-bionic
docker tag longe/hive:1.2.2 longe/hive:1.2.2-hadoop-2.7.7

# hadoop-2.7.7, hive:2.3.4
docker build -t longe/hive:2.3.4 ./ --build-arg HIVE_VERSION=2.3.4
docker tag longe/hive:2.3.4 longe/hive:2.3.4-bionic
docker tag longe/hive:2.3.4 longe/hive:2.3.4-hadoop-2.7.7


## 16.04 xenial, java-8
# hadoop-2.7.7, hive:1.2.2
docker build -t longe/hive:1.2.2-hadoop-2.7.7-xenial ./ --build-arg FROM_TAG=2.7.7-xenial --build-arg HIVE_VERSION=1.2.2

# hadoop-2.7.7, hive:2.3.4
docker build -t longe/hive:2.3.4-hadoop-2.7.7-xenial ./ --build-arg FROM_TAG=2.7.7-xenial --build-arg HIVE_VERSION=2.3.4

  • debian
## 9 stretch, java-8
# hadoop-2.7.7, hive:1.2.2
docker build -t longe/hive:1.2.2-hadoop-2.7.7-stretch ./ --build-arg FROM_TAG=8-stretch --build-arg HIVE_VERSION=1.2.2
# hadoop-2.7.7, hive:2.3.4
docker build -t longe/hive:2.3.4-hadoop-2.7.7-stretch ./ --build-arg FROM_TAG=8-stretch --build-arg HIVE_VERSION=2.3.4


## 9 stretch, openjdk-8
# hadoop 2.7.7, hive 1.2.2
docker build -t longe/hive:1.2.2-hadoop-2.7.7-openjdk-8 ./ --build-arg FROM_TAG=2.7.7-openjdk-8 --build-arg HIVE_VERSION=1.2.2
# hadoop-2.7.7, hive:2.3.4
docker build -t longe/hive:2.3.4-hadoop-2.7.7-openjdk-8 ./ --build-arg FROM_TAG=2.7.7-openjdk-8 --build-arg HIVE_VERSION=2.3.4

  • Hive Docs
https://cwiki.apache.org/confluence/display/Hive/GettingStarted
https://cwiki.apache.org/confluence/display/Hive/Hive+Schema+Tool
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients
https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2
https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties
https://cwiki.apache.org/confluence/display/Hive/HiveDerbyServerMode

Tag summary

Content type

Image

Digest

Size

556.2 MB

Last updated

over 6 years ago

docker pull longe/hive:2.3.4-hadoop-2.7.7