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:
- 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
- You may also have to edit bootstap file to update schema version according to you needs.
- The rest of the steps remain the same.
./build
./start.sh
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
beeline
>>!connect jdbc:hive2://localhost:10001/
Username and password is "hive"
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
docker logs -t apache-hive-tez
./stop