Failed connecting to hive metastore [localhost:9083] #16789
Replies: 2 comments 1 reply
-
Are you sure |
Beta Was this translation helpful? Give feedback.
-
It looks like the error you're seeing is related to not being able to connect to the Hive Metastore. One thing to check is whether the Metastore service is actually running and accessible from within the Docker network. You can try connecting to it directly from within the hive container by running the following command: If the connection is successful, then the issue may be related to how you've configured your hive container to connect to the Metastore. In particular, you may want to check the hive.metastore.uri property in your iceberg.properties file to make sure it's pointing to the correct location of the Metastore. If the connection fails, then it's likely that the Metastore service is not running or not accessible from within the Docker network. In this case, you may want to check the logs for the hive container to see if there are any errors related to starting up the Metastore service. You may also want to try connecting to the Metastore service from another container on the same Docker network to see if the issue is specific to the hive container. I would like to recommend a book on AWS |
Beta Was this translation helpful? Give feedback.
-
I have built a local docker-compose project which involves trino, minio and a hive metastore.
Trino is running perfectly, however when I am connected to trino via a db client and try to look at tables in the hive or iceberg catalog I always get the error:
SQL-Fehler [16777216]: Query failed (#20230329_130607_00011_44h3f): Failed connecting to Hive metastore: [localhost:9083] Query failed (#20230329_130607_00011_44h3f): Failed connecting to Hive metastore: [localhost:9083] Query failed (#20230329_130607_00011_44h3f): Failed connecting to Hive metastore: [localhost:9083] org.apache.thrift.TException: Failed connecting to Hive metastore: [localhost:9083] Failed connecting to Hive metastore: [localhost:9083] org.apache.thrift.transport.TTransportException: localhost:9083: java.net.ConnectException: Connection refused localhost:9083: java.net.ConnectException: Connection refused org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused Connection refused
My docker compose file looks like the following:
The iceberg.properties file:
connector.name=iceberg hive.metastore.uri=thrift://hive:9083 hive.s3.endpoint=http://minio:9000 hive.s3.aws-access-key=test hive.s3.aws-secret-key=test12334567 hive.s3.path-style-access=true hive.s3.ssl.enabled=false
The hive.properties is identical except for the connector name being iceberg
Does someone know where the error could be?
I can connect to the Postgres db using localhost but not metastore_db as a hostname from my local machine and the metastore schema is there including various tables.
Beta Was this translation helpful? Give feedback.
All reactions