Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No factory for connector 'postgresql' #10491

Closed
AVSuni opened this issue Jan 6, 2022 · 1 comment
Closed

No factory for connector 'postgresql' #10491

AVSuni opened this issue Jan 6, 2022 · 1 comment

Comments

@AVSuni
Copy link

AVSuni commented Jan 6, 2022

Hi, I am trying to deploy trino on k8s with Trino's official charts. I have added the following to values.yaml

additionalCatalogs: {
          "postgresql": 
          connector.name=postgresql
          connection-url=jdbc:postgresql://mypostgres:5432/mydb
          connection-user=postgres
          connection-password=postgresSuperUserPsw
        }

I get

ERROR   main    io.trino.server.Server  No factory for connector 'postgresql connection-url=jdbc:postgresql://mypostgres:5432/mydb connection-user=postgres connection-password=postgresSuperUserPsw'.  Available factories: [hive, memory, kudu, blackhole, kinesis, redis, accumulo, gsheets, raptor-legacy, elasticsearch, jmx, postgresql, redshift, sqlserver, localfile, tpch, iceberg, mysql, bigquery, memsql, prometheus, mongodb, example-http, pinot, tpcds, oracle, trino-thrift, phoenix, system, druid, cassandra, clickhouse, kafka, atop, hive-hadoop2, phoenix5]
java.lang.IllegalArgumentException: No factory for connector 'postgresql connection-url=jdbc:postgresql://mypostgres:5432/mydb connection-user=postgres connection-password=postgresSuperUserPsw'.  Available factories: [hive, memory, kudu, blackhole, kinesis, redis, accumulo, gsheets, raptor-legacy, elasticsearch, jmx, postgresql, redshift, sqlserver, localfile, tpch, iceberg, mysql, bigquery, memsql, prometheus, mongodb, example-http, pinot, tpcds, oracle, trino-thrift, phoenix, system, druid, cassandra, clickhouse, kafka, atop, hive-hadoop2, phoenix5]
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:435)
        at io.trino.connector.ConnectorManager.createCatalog(ConnectorManager.java:231)
        at io.trino.metadata.StaticCatalogStore.loadCatalog(StaticCatalogStore.java:88)
        at io.trino.metadata.StaticCatalogStore.loadCatalogs(StaticCatalogStore.java:68)
        at io.trino.server.Server.doStart(Server.java:125)
        at io.trino.server.Server.lambda$start$0(Server.java:78)
        at io.trino.$gen.Trino_367____20220106_141512_1.run(Unknown Source)
        at io.trino.server.Server.start(Server.java:78)
        at io.trino.server.TrinoServer.main(TrinoServer.java:38)

Any ideas as to where to go from here? There isn't much documentation on Trino/K8s. Many thanks

@hashhar
Copy link
Member

hashhar commented Jan 6, 2022

Your values.yml is getting rendered as a single line. Notice the error message:

No factory for connector 'postgresql connection-url=jdbc:postgresql://mypostgres:5432/mydb connection-user=postgres connection-password=postgresSuperUserPsw'

Can you try the below:

additionalCatalogs:
  postgresql: |
    connector.name=postgresql
    connection-url=jdbc:postgresql://mypostgres:5432/mydb
    connection-user=postgres
    connection-password=postgresSuperUserPsw

Feel free to join our Slack and continue the conversation there on #troubleshooting. We try to keep GitHub issues limited to bugs. However feel free to re-open this and continue here.

@hashhar hashhar closed this as completed Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants