Procházet zdrojové kódy

HUE-8888 [docs] Give more information on how to add connectors

Romain před 5 roky
rodič
revize
1242c26513

+ 2 - 0
docs/docs-site/content/administrator/configuration/_index.md

@@ -7,6 +7,8 @@ weight: 3
 
 The file to edit is `hue.ini` (wich is based on this [template](https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini)) and the actual values used can be checked on the [Dump Config](/administrator/administration/operations/#configuration) page.
 
+Note: in development mode (when using `runserver` and not `runcpserver`), the correct hue.ini is `desktop/conf/pseudo-distributed.ini`
+
 The most important sections to configure are about the:
 
 * [Hue service](/administrator/configuration/server/). e.g. pointing the application to a relational database where Hue saves users and queries, selecting the login method, customizing the look & feel, activating the task server service...

+ 14 - 9
docs/docs-site/content/administrator/configuration/connectors/_index.md

@@ -5,23 +5,28 @@ draft: false
 weight: 2
 ---
 
-All of these connectors come out of the box.
-
 Looking at improving or adding a new one? Go check the **[connector API section](/developer/connectors/)**!
 
 ## Databases
 
-Hue connect to any database or warehouse via native connectors or SqlAlchemy.
-
-Read about [how to build your own parser](/developer/parsers/) if you are looking at better autocompletes for your own SQL dialects.
+Hue connects to any database or warehouse via native or SqlAlchemy connectors. Connections can be configured via a UI after [HUE-8758](https://issues.cloudera.org/browse/HUE-8758) is done, until then they 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.:
 
-Note that USER and PASSWORD can be prompted to the user:
+    [notebook]
+    [[interpreters]]
 
     [[[mysql]]]
-       name=MySQL
-       interface=sqlalchemy
-       options='{"url": "mysql://${USER}:${PASSWORD}@localhost:3306/hue"}'
+    name=MySQL
+    interface=sqlalchemy
+    options='{"url": "mysql://${USER}:${PASSWORD}@localhost:3306/hue"}'
+
+    [[[presto]]]
+    name = Presto
+    interface=sqlalchemy
+    options='{"url": "presto://localhost:8080/hive/default"}'
+
+Note that USER and PASSWORD can be prompted to the user like in the MySQL connector above.
 
+Read about [how to build your own parser](/developer/parsers/) if you are looking at better autocompletes for your own SQL dialects.
 
 ### Apache Impala