simhadri-g commented on code in PR #5:
URL: https://github.com/apache/hive-site/pull/5#discussion_r1193045067


##########
content/Developement/quickStart.md:
##########
@@ -0,0 +1,184 @@
+---
+title: "QuickStarted"
+date: 2023-05-12T17:51:06+05:30
+draft: false
+---
+
+### Introduction
+
+---
+Run Apache Hive inside docker container in pseudo-distributed mode, provide 
the following
+- Quick-start/Debugging/Prepare a test env for Hive
+
+
+### Quickstart
+
+---
+
+##### Step 1:  Pull the image
+DockerHub: https://hub.docker.com/r/apache/hive/tags
+ 
+Currently, there are 3 images released:
+ - 4.0.0-alpha-2
+ - 4.0.0-alpha-1
+ - 3.1.3
+```shell
+docker pull apache/hive:4.0.0-alpha-2
+```
+
+##### STEP 2: Export the Hive version 
+```shell
+export HIVE_VERSION=<Hive Tag/Image Version>
+```
+
+Example:
+```shell
+export HIVE_VERSION=4.0.0-alpha-2
+```
+
+##### STEP 3:  Launch the HiveServer2 with an embedded Metastore.
+
+This is lightweight and for a quick setup, it uses Derby as metastore db.
+```shell
+docker run -d -p 10000:10000 -p 10002:10002 --env SERVICE_NAME=hiveserver2 
--name hive4 apache/hive:${HIVE_VERSION}
+```
+##### STEP 4: Connect to beeline
+
+```shell
+docker exec -it hiveserver2 beeline -u 'jdbc:hive2://hiveserver2:10000/'
+```
+
+##### Note: Launch Standalone Metastore
+To use standalone Metastore with Derby,
+
+```shell
+docker run -d -p 9083:9083 --env SERVICE_NAME=metastore --name 
metastore-standalone apache/hive:${HIVE_VERSION}
+```
+
+## Detailed Setup
+
+---
+
+#### Build image

Review Comment:
   
    I have tried to fix it to the best I could.
   But spacing is a bit problematic in markdown's css. (I will take a look at 
line spacing in the future)



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