naushadh / hive-metastore

Apache Hive Metastore as a Standalone server in Docker
Apache License 2.0
67 stars 26 forks source link

Thrift Interface #1

Closed harshal-zetaris closed 1 year ago

harshal-zetaris commented 1 year ago

Does this come with frontending of a thrift interface as shown here?

image

naushadh commented 1 year ago

Yes, this project is that green hexagon shown in your diagram. You can configure the MetaStoreDB as you like.

harshal-zetaris commented 1 year ago

Thanks. I was expecting port 9083 to work when docker compose up finished, but couldn't see that. Am I missing something?

docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED              STATUS                        PORTS                                                                NAMES
890a3d3ed717   localstack/localstack:1.1   "docker-entrypoint.sh"   About a minute ago   Up About a minute (healthy)   4510-4559/tcp, 5678/tcp, 0.0.0.0:4566->4566/tcp, :::4566->4566/tcp   hive-metastore-localstack-1
naushadh commented 1 year ago

I tried a fresh new clone and it works for me

$ docker --version        
Docker version 23.0.5, build bc4487a
$ docker compose version  
Docker Compose version v2.17.3
$ docker compose up -d
[+] Running 4/4
 ✔ Container hive-metastore-localstack-1  Healthy                                                                   10.8s 
 ✔ Container hive-metastore-postgres-1    Healthy                                                                   30.8s 
 ✔ Container hive-metastore-s3_setup-1    Started                                                                   11.0s 
 ✔ Container hive-metastore-app-1         Started                                                                   31.0s 
$ docker compose ps
NAME                          IMAGE                       COMMAND                  SERVICE             CREATED              STATUS                    PORTS
hive-metastore-app-1          hive-metastore-app          "./run.sh"               app                 About a minute ago   Up 8 seconds              0.0.0.0:9083->9083/tcp
hive-metastore-localstack-1   localstack/localstack:1.1   "docker-entrypoint.sh"   localstack          About a minute ago   Up 39 seconds (healthy)   4510-4559/tcp, 5678/tcp, 0.0.0.0:4566->4566/tcp
hive-metastore-postgres-1     postgres:14-alpine          "docker-entrypoint.s…"   postgres            About a minute ago   Up 39 seconds (healthy)   0.0.0.0:5432->5432/tcp

Can you share the output of these commands shown above?

naushadh commented 1 year ago

@harshal-zetaris Is this still an issue? I'd prefer to keep issues clean and close out stale items.

harshal-zetaris commented 1 year ago

@harshal-zetaris Is this still an issue? I'd prefer to keep issues clean and close out stale items.

Naushad, I never got it to work really and hence moved on to alternative solutions. you can close the issue.

naushadh commented 1 year ago

Oh I see; I started this project because too many folks were writing custom dockerfile and shell scripts to bootstrap the thrift/metastore and hoped this would eliminate such boilerplate. If/when you're interested in giving this a shot again, please share the output of commands shown here https://github.com/naushadh/hive-metastore/issues/1#issuecomment-1565196441 and we can track down what's blocking you.