瀏覽代碼

HUE-8743 [docker] Change config to allow updating the interpreter list

Romain 6 年之前
父節點
當前提交
e05ac6c41a
共有 2 個文件被更改,包括 10 次插入18 次删除
  1. 1 1
      tools/docker/hue/README.md
  2. 9 17
      tools/docker/hue/conf/hue-overrides.ini

+ 1 - 1
tools/docker/hue/README.md

@@ -93,7 +93,7 @@ MySql
     name=hue
     name=hue
 ```
 ```
 
 
-If you want to be able to query a database out of the box, update the connector accordingly or remove it all:
+If you want to be able to query a database out of the box, update the connector interpreters accordingly, e.g.:
 
 
 ```
 ```
 [notebook]
 [notebook]

+ 9 - 17
tools/docker/hue/conf/hue-overrides.ini

@@ -58,12 +58,13 @@
     # Define the name and how to connect and execute the language.
     # Define the name and how to connect and execute the language.
     # http://cloudera.github.io/hue/latest/administrator/configuration/editor/
     # http://cloudera.github.io/hue/latest/administrator/configuration/editor/
 
 
-    [[[mysql]]]
-      name = MySQL
-      interface=sqlalchemy
-      ## https://docs.sqlalchemy.org/en/latest/dialects/mysql.html
-      options='{"url": "mysql://root:secret@database:3306/hue"}'
-      ## options='{"url": "mysql://${USER}:${PASSWORD}@localhost:3306/hue"}'
+    # Example for Docker compose
+    # [[[mysql]]]
+    #   name = MySQL
+    #   interface=sqlalchemy
+    #   ## https://docs.sqlalchemy.org/en/latest/dialects/mysql.html
+    #   options='{"url": "mysql://root:secret@database:3306/hue"}'
+    #   ## options='{"url": "mysql://${USER}:${PASSWORD}@localhost:3306/hue"}'
 
 
     # [[[hive]]]
     # [[[hive]]]
     #   name=Hive
     #   name=Hive
@@ -120,8 +121,8 @@
     # [[[solr]]]
     # [[[solr]]]
     #   name = Solr SQL
     #   name = Solr SQL
     #   interface=solr
     #   interface=solr
-      ## Name of the collection handler
-      # options='{"collection": "default"}'
+    #   ## Name of the collection handler
+    #   # options='{"collection": "default"}'
 
 
     # [[[pig]]]
     # [[[pig]]]
     #   name=Pig
     #   name=Pig
@@ -151,15 +152,6 @@
     #   name=Shell
     #   name=Shell
     #   interface=oozie
     #   interface=oozie
 
 
-    # [[[mysql]]]
-    #   name=MySql JDBC
-    #   interface=jdbc
-    #   ## Specific options for connecting to the server.
-    #   ## The JDBC connectors, e.g. mysql.jar, need to be in the CLASSPATH environment variable.
-    #   ## If 'user' and 'password' are omitted, they will be prompted in the UI.
-    #   ## Option 'impersonation_property' used to configure outbound impersonation, e.g. "impersonation_property": "hive.server2.proxy.user".
-    #   options='{"url": "jdbc:mysql://localhost:3306/hue", "driver": "com.mysql.jdbc.Driver", "user": "root", "password": "root", "impersonation_property": ""}'
-
     # [[[presto]]]
     # [[[presto]]]
     #   name=Presto SQL
     #   name=Presto SQL
     #   interface=presto
     #   interface=presto