ayushtkn opened a new pull request, #6460:
URL: https://github.com/apache/hive/pull/6460
### What changes were proposed in this pull request?
Fix the non llap docker setups
### Why are the changes needed?
To make hive docker run in non llap modes as well
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Manually:
Built Image locally via:
```
ayushsaxena@Q3NW54Y0C5 docker % ./build.sh -hadoop 3.4.1 -tez 0.10.5
-tez-snapshot 1.0.0-SNAPSHOT
```
**StandAlone Mode**
```
ayushsaxena@Q3NW54Y0C5 docker % export HIVE_VERSION=4.3.0-SNAPSHOT
ayushsaxena@Q3NW54Y0C5 docker % docker run -d -p 10000:10000 -p 10002:10002
--env SERVICE_NAME=hiveserver2 --name hive4 apache/hive:${HIVE_VERSION}
ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hive4 beeline -u
'jdbc:hive2://localhost:10000/'
0: jdbc:hive2://localhost:10000/> create table emp (id int) stored by
iceberg;
0: jdbc:hive2://localhost:10000/> insert into emp values (1);
0: jdbc:hive2://localhost:10000/> select * from emp;
```
Output:
<img width="1240" height="467" alt="image"
src="https://github.com/user-attachments/assets/89f32fcd-a093-4801-a96d-6962381ff8f3"
/>
**Non LLAP**
```
ayushsaxena@Q3NW54Y0C5 docker % ./start-hive.sh
ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u
'jdbc:hive2://localhost:10000/'
0: jdbc:hive2://localhost:10000/> create table emp (id int) stored by
iceberg;
0: jdbc:hive2://localhost:10000/> insert into emp values (1);
0: jdbc:hive2://localhost:10000/> select * from emp;
```
Ouput:
<img width="1265" height="522" alt="image"
src="https://github.com/user-attachments/assets/c9b6041c-9ff3-4050-bac6-291c2b116b7f"
/>
**LLAP Mode (Sanity)**
```
ayushsaxena@Q3NW54Y0C5 docker % ./start-hive.sh --llap
ayushsaxena@Q3NW54Y0C5 docker % docker exec -it hiveserver2 beeline -u
'jdbc:hive2://localhost:10000/'
0: jdbc:hive2://localhost:10000/> create table emp (id int) stored by
iceberg;
0: jdbc:hive2://localhost:10000/> insert into emp values (1);
0: jdbc:hive2://localhost:10000/> select * from emp;
```
Output:
<img width="2368" height="922" alt="image"
src="https://github.com/user-attachments/assets/631b35e0-731e-4301-8cf4-373846d95dbb"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]