Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Issue while connecting Airpal to presto DB query engine #201

Open
surendraGaddam99 opened this issue Sep 13, 2016 · 0 comments
Open

Issue while connecting Airpal to presto DB query engine #201

surendraGaddam99 opened this issue Sep 13, 2016 · 0 comments

Comments

@surendraGaddam99
Copy link

Hi ,

Need help /suggestions on how to connect Airpal to Presto DB query engine .
As per my analysis i found below 2 ways.

  1. Connect using Presto JDBC
    Class.forName("com.facebook.presto.jdbc.PrestoDriver");
    config.getDataSourceFactory().setUrl("jdbc:presto:linadv360pt3:8080/oracle/AF360ST1");
    config.getDataSourceFactory().setDriverClass("com.facebook.presto.jdbc.PrestoDriver");
    config.getDataSourceFactory().setPassword(password);

    Reference.yml file prestoCatalog :oracle

Not sure whether presto server required here .

  1. Using Presto Server setup
    catalog files setup as shown
    ./presto-server-0.77/etc/catalog/oracle.properties
    ./presto-server-0.77/etc/catalog/mysql.properties

In this case we can set only one schema details in oracle.properties file
how to dynamically set other schema details.

My confusion is whether we need to use any one of the them or both the ways.
In my case i have multiple tenants with multiple schemas access.Need to configure schema access for them dynamically for Airpal to prestodb.

Like : Tenant Client 1 : Admin ,FIN ,HRM ,PB (schemas)
Tenant Client 2 : Admin ,FIN,HRM ,PB (schemas)

Please guide me .

Thanks
Surendra

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant