|
|
@@ -5,9 +5,9 @@ draft: false
|
|
|
weight: 2
|
|
|
---
|
|
|
|
|
|
-Looking at improving or adding a new one? Go check the **[connector API section](/developer/development/#connectors)**!
|
|
|
+## Configuration
|
|
|
|
|
|
-## Databases
|
|
|
+### Config file
|
|
|
|
|
|
Hue connects to any database or warehouse via native or SqlAlchemy connectors that need to be added to the [Hue ini file](/administrator/configuration/). Except [impala] and [beeswax] which have a dedicated section, all the other ones should be appended below the [[interpreters]] of [notebook] e.g.:
|
|
|
|
|
|
@@ -30,24 +30,27 @@ Most of the interpreters require to install their SqlAlchemy dialect (e.g. `./bu
|
|
|
|
|
|
Read about [how to build your own parser](/developer/development/#sql-parsers) if you are looking at better autocompletes for your the SQL dialects you use.
|
|
|
|
|
|
-**Beta**
|
|
|
+### Connectors UI
|
|
|
|
|
|
-Admins can configure the connectors via the UI after [HUE-8758](https://issues.cloudera.org/browse/HUE-8758) is done. This feature requires Editor v2 which is also in beta.
|
|
|
+Admins can configure the connectors via the UI. This feature requires Editor v2 and is functional despite requiring a bit more polishing.
|
|
|
|
|
|
[desktop]
|
|
|
enable_connectors=true
|
|
|
|
|
|
[notebook]
|
|
|
enable_notebook_2=true
|
|
|
-
|
|
|
+
|
|
|
**NOTE:** After enabling the above flags, if `django.db.utils.OperationalError: (1054, "Unknown column 'useradmin_huepermission.connector_id' in 'field list'")` error comes, then try **changing the DB name** in the hue.ini under `[[database]]` because there is no upgrade path and run the migrate command `./build/env/bin/hue migrate`.
|
|
|
|
|
|
Go to `Administer Server` > `Connectors` > `+ Connector` or can directly navigate to `http://127.0.0.1:8000/hue/desktop/connectors`.
|
|
|
|
|
|

|
|
|
|
|
|
-Connectors are also configuarable via the public [REST APIs](/developer/api/rest/#connectors).
|
|
|
+Connectors are also configurable via the public [REST APIs](/developer/api/rest/#connectors).
|
|
|
+
|
|
|
+## Databases
|
|
|
|
|
|
+Here is the list of dialects:
|
|
|
|
|
|
### Apache Hive
|
|
|
|