Ver Fonte

HUE-8744 [k8s] Limit default interpreters

Romain há 6 anos atrás
pai
commit
a3fc8145de

+ 6 - 8
desktop/conf.dist/hue.ini

@@ -849,19 +849,17 @@
   ## order in which the interpreter entries appear. Only the first 5 interpreters will appear on the wheel.
   # interpreters_shown_on_wheel=
 
-[notebook]
-
   # One entry for each type of snippet.
   [[interpreters]]
     # Define the name and how to connect and execute the language.
     # 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"}'
+    # [[[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]]]
     #   name=Hive

+ 6 - 8
desktop/conf/pseudo-distributed.ini.tmpl

@@ -851,19 +851,17 @@
   ## order in which the interpreter entries appear. Only the first 5 interpreters will appear on the wheel.
   # interpreters_shown_on_wheel=
 
-[notebook]
-
   # One entry for each type of snippet.
   [[interpreters]]
     # Define the name and how to connect and execute the language.
     # 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"}'
+    # [[[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]]]
     #   name=Hive

+ 2 - 2
tools/docker/hue/conf/hue-overrides.ini

@@ -51,10 +51,10 @@
 # Settings to configure the snippets available in the Notebook
 ###########################################################################
 
-[notebook]
+# [notebook]
 
   # One entry for each type of snippet.
-  [[interpreters]]
+  # [[interpreters]]
     # Define the name and how to connect and execute the language.
     # http://cloudera.github.io/hue/latest/administrator/configuration/editor/
 

+ 10 - 0
tools/kubernetes/helm/hue/templates/hue.yaml

@@ -16,6 +16,16 @@ data:
     [impala]
     server_host={{ .Values.impala.server_host }}
 
+    [notebook]
+    [[interpreters]]
+    [[[impala]]]
+      name=Impala
+      interface=hiveserver2
+    [[[postgresql]]]
+      name = postgresql
+      interface=sqlalchemy
+      options='{"url": "postgresql://hue:hue@hue-database:5432/hue"}'
+
     [aws]
     [[aws_accounts]]
     [[[default]]]