Преглед изворни кода

[notebook] Update list of available snippets in ini

Romain Rigaux пре 10 година
родитељ
комит
7061d2e

+ 1 - 9
desktop/conf.dist/hue.ini

@@ -531,7 +531,7 @@
     name=Impala
     interface=hiveserver2
 
-    [[[scala]]]
+    [[[spark]]]
     name=Scala
     interface=livy
 
@@ -555,14 +555,6 @@
     name=Text
     interface=text
 
-    ## [[[mysql]]]
-    ## name=MySql
-    ## interface=mysql
-
-    ## [[[phoenix]]]
-    ## name=Phoenix
-    ## interface=jdbc
-
 
 ###########################################################################
 # Settings to configure SAML

+ 1 - 24
desktop/conf/pseudo-distributed.ini.tmpl

@@ -541,7 +541,7 @@
     name=Impala
     interface=hiveserver2
 
-    [[[scala]]]
+    [[[spark]]]
     name=Scala
     interface=livy
 
@@ -565,29 +565,6 @@
     name=Text
     interface=text
 
-    [[[mysql]]]
-    name=MySql
-    interface=mysql
-
-    [[[mysqljdbc]]]
-    name=MySql JDBC
-    interface=jdbc
-
-    ## [[[phoenix]]]
-    ## name=Phoenix
-    ## interface=jdbc-phoenix
-
-# Proof of concept
-# [jdbc]
-#  [[mysql]]
-#  driver={host, port, database}
-#  auth={user, password}
-#  # auth: optional: prompt user or impersonation if available, e.g. https://issues.apache.org/jira/browse/HIVE-6486
-
-#  [[phoenix]]
-#  driver={host, port, database}
-#  auth={user, password}
-
 
 ###########################################################################
 # Settings to configure SAML

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/base.py

@@ -103,7 +103,7 @@ def get_api(user, snippet):
   elif interface == 'jdbc':
     return JDBCApi(user)
   else:
-    raise PopupException(_('Notebook connector interface not recognized: ') % interface)
+    raise PopupException(_('Notebook connector interface not recognized: %s') % interface)
 
 
 def _get_snippet_session(notebook, snippet):