ayushtkn opened a new pull request, #6414:
URL: https://github.com/apache/hive/pull/6414

   ### What changes were proposed in this pull request?
   
   Add a way to run Hive with Ozone as backend storage
   
   ### Why are the changes needed?
   
   For using Ozone in Hive in Docker env
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   Deployed locally
   ```
   export HIVE_VERSION=4.2.0
   mvn dependency:copy -Dartifact="org.postgresql:postgresql:42.5.1" && \
   export POSTGRES_LOCAL_PATH=`mvn help:evaluate 
-Dexpression=settings.localRepository -q 
-DforceStdout`/org/postgresql/postgresql/42.5.1/postgresql-42.5.1.jar 
   ./start-hive.sh --ozone 
   ```
   <img width="1728" height="297" alt="image" 
src="https://github.com/user-attachments/assets/06b2e6bf-9787-49f3-acfe-e94941940193";
 />
   
   ```
   docker exec -it hiveserver2 beeline -u 'jdbc:hive2://localhost:10000/'
   ```
   Created Tables
   ```
   create table emp(id int) stored by iceberg;
   insert into emp values (1),(2),(3),(4)
   ```
   Verified data is in Ozone
   <img width="3456" height="1274" alt="image" 
src="https://github.com/user-attachments/assets/d666a9c6-80a1-40e7-b20e-722bc6309822";
 />
   
   Ozone Shell
   <img width="3456" height="626" alt="image" 
src="https://github.com/user-attachments/assets/6fbe9092-5497-4b43-8cdc-933ddcd8a34f";
 />
   


-- 
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]

Reply via email to