Skip to content

HIVE-29589: Fix broken docker setup in non llap mode#6460

Merged
ayushtkn merged 1 commit intoapache:masterfrom
ayushtkn:HIVE-29589
May 5, 2026
Merged

HIVE-29589: Fix broken docker setup in non llap mode#6460
ayushtkn merged 1 commit intoapache:masterfrom
ayushtkn:HIVE-29589

Conversation

@ayushtkn
Copy link
Copy Markdown
Member

@ayushtkn ayushtkn commented Apr 30, 2026

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, else queries fail the exception in Jira

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:
image

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:
image

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:
image

@sonarqubecloud
Copy link
Copy Markdown

@ayushtkn ayushtkn merged commit 6f2355e into apache:master May 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants