Skip to content

simhadri-g/Hive-Docker

Repository files navigation

A hive jar is included by default for the build. This is for ARM processors.

We can build a docker image with a custom hive jar as follow:

  1. Replace hive jar in the directory with your custom jar and rename it to apache-hive-4.0.0-alpha-2-SNAPSHOT-bin.tar.gz
  2. You may also have to edit bootstap file to update schema version according to you needs.
  3. The rest of the steps remain the same.

Build the docker image:

./build

Start docker image:

./start.sh

To login to the docker container and access mysql rdbms

docker exec --privileged=true  -it apache-hive-tez  /bin/bash
>>mysql -u hive -p 
(password: hive)

Hive logs are found in : /tmp/root/hive.log

JDBC url to connect via beeline

beeline
>>!connect jdbc:hive2://localhost:10001/

Username and password is "hive"

To attach a remote debugger edit bootstap.sh

To attach a debugger use --debug as follows. The remote debugger can be attached on port 8000.

hive/bin/hive --service hiveserver2 --debug --hiveconf hive.server2.thrift.port=10001 --hiveconf hive.execution.engine=mr

To check the docker logs

docker logs -t apache-hive-tez

To stop

./stop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published