-
Notifications
You must be signed in to change notification settings - Fork 168
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
OHDSI WebAPI JDBC Driver Connectivity Issues With DATABRICKS #2364
Comments
Databricks is not a supported DB for hosting the WebAPI database. Only postgres is supported. |
Im not hosting webapi database on Databricks but Im hosting my OMOP CDM on databricks, our WebAPI database is on postgres so what should I do to be able to make the WebAPI work? |
To enable databricks, you can compile the .war with the Databricks per: #2262 (comment) |
You modified the To point to a databricks CDM, you follow the instructions for setting up a source, using the dialect of 'databricks' and the JDBC url for your databricks server. As an admin user, you can use the configuration nav to add and remove sources. |
I thought the datasource.url suppose to be the jdbc url of databricks as datasource isn't it suppose to refer to where the CDM is located? |
No. CDMs are referenced in the Source table (please refer to indicated documentation above). 1 WebAPI can reference multiple CDMs which you can add/remove over time, so it doesn't make sense that we'd store it in a configuration file. It's application data. |
does that mean I'm only required to use the sql below for the source and source_daemon table?
|
Hmm but why is the configuration here like this it can't seems to identify my vocab version In databricks I my cdm catalog name is omop540 and the schema name is silver so how do I connect to it? |
@chanjunkai11 - your setup appears correct. Is your Since this issue is a bit old, I'm hoping you were able to figure this out but please re-open if you are still facing difficulties. |
Goal : Trying to connect OHDSI Atlas with OMOP CDM in Databricks with Tomcat.
Caused by: org.flywaydb.core.internal.dbsupport.FlywaySqlException:
Unable to obtain Jdbc connection from DataSource
SQL State : 08S01
Error Code : 500593
Message : [Databricks]JDBCDriver Communication link failure. Failed to connect to server. Reason: HTTP Response code: 401, Error message: Unknown.
Process to recreate problem
Step 1 this is the SETTING.XML
Step 2 We have included the databricks dependency in the POM.XML
Step 3 We have copied and placed DatabricksJDBC42.jar file in the classpath.
(C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\WebAPI\WEB-INF\lib)
JDBC url (From Databricks cluster) >
jdbc:databricks://{{workspace id}:{workspace port}/default;transportMode=http;ssl=1;httpPath=sql/protocolv1/o/5269192184046240/0404-024850-qo6kj1mb;AuthMech=3;UseNativeQuery=1;ConnCatalog={default catalog};UID={UID};PWD={token}
The text was updated successfully, but these errors were encountered: