Browse Source

[spark] Add a R snippet type

Romain Rigaux 10 years ago
parent
commit
219c6ee

+ 3 - 2
apps/spark/src/spark/conf.py

@@ -40,10 +40,11 @@ LANGUAGES = Config(
   default="""[
       {"name": "Scala Shell", "type": "scala"},
       {"name": "PySpark Shell", "type": "python"},
-      {"name": "Jar", "type": "jar"},
-      {"name": "Python", "type": "py"},
+      {"name": "R Shell", "type": "r"},
       {"name": "Impala SQL", "type": "impala"},
       {"name": "Hive SQL", "type": "hive"},
+      {"name": "Jar", "type": "jar"},
+      {"name": "Python", "type": "py"},
       {"name": "Text", "type": "text"}
   ]"""
 )

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

@@ -1070,7 +1070,7 @@
   ## livy_impersonation_enabled=true
 
   # List of available types of snippets
-  ## languages='[{"name": "Scala Shell", "type": "scala"},{"name": "PySpark Shell", "type": "python"},{"name": "Jar", "type": "Jar"},{"name": "Python", "type": "py"},{"name": "Impala SQL", "type": "impala"},{"name": "Hive SQL", "type": "hive"},{"name": "Text", "type": "text"}]'
+  ## languages='[{"name": "Scala Shell", "type": "scala"},{"name": "PySpark Shell", "type": "python"},{"name": "R Shell", "type": "r"},{"name": "Jar", "type": "Jar"},{"name": "Python", "type": "py"},{"name": "Impala SQL", "type": "impala"},{"name": "Hive SQL", "type": "hive"},{"name": "Text", "type": "text"}]'
 
 
 ###########################################################################

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

@@ -1079,7 +1079,7 @@
   ## livy_impersonation_enabled=true
 
   # List of available types of snippets
-  ## languages='[{"name": "Scala Shell", "type": "scala"},{"name": "PySpark Shell", "type": "python"},{"name": "Jar", "type": "Jar"},{"name": "Python", "type": "py"},{"name": "Impala SQL", "type": "impala"},{"name": "Hive SQL", "type": "hive"},{"name": "Text", "type": "text"}]'
+  ## languages='[{"name": "Scala Shell", "type": "scala"},{"name": "PySpark Shell", "type": "python"},{"name": "R Shell", "type": "r"},{"name": "Jar", "type": "Jar"},{"name": "Python", "type": "py"},{"name": "Impala SQL", "type": "impala"},{"name": "Hive SQL", "type": "hive"},{"name": "Text", "type": "text"}]'
 
 
 ###########################################################################