You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/06/09 00:02:51 UTC
[GitHub] [superset] betodealmeida commented on a diff in pull request #20320: feat: Databricks native driver
betodealmeida commented on code in PR #20320:
URL: https://github.com/apache/superset/pull/20320#discussion_r892962521
##########
docs/docs/databases/databricks.mdx:
##########
@@ -27,31 +23,60 @@ These can be found under "Configuration" -> "Advanced Options" -> "JDBC/ODBC".
You also need an access token from "Settings" -> "User Settings" -> "Access Tokens".
-Once you have all this information, add a database of type "Databricks (Hive)" in Superset, and use the following SQLAlchemy URI:
+Once you have all this information, add a database of type "Databricks Native Connector" and use the following SQLAlchemy URI:
```
-databricks+pyhive://token:{access token}@{server hostname}:{port}/{database name}
+databricks+connector://token:{access_token}@{server_hostname}:{port}/{database_name}
```
You also need to add the following configuration to "Other" -> "Engine Parameters", with your HTTP path:
+```json
+{
+ "connect_args": {"http_path": "sql/protocolv1/o/****"},
+ "http_headers": [["User-Agent", "Apache Superset"]]
+}
```
+
+The `User-Agent` header is optional, but helps Databricks identify traffic from Superset. If you need to use a different header please reach out to Databricks and let them know.
Review Comment:
```suggestion
The `User-Agent` header is optional, but helps Databricks identify traffic from Superset. If you need to use a different user agent please reach out to Databricks and let them know.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org