浏览代码

[spark] Add a R snippet type

Romain Rigaux 10 年之前
父节点
当前提交
219c6ee
共有 3 个文件被更改,包括 5 次插入4 次删除
  1. 3 2
      apps/spark/src/spark/conf.py
  2. 1 1
      desktop/conf.dist/hue.ini
  3. 1 1
      desktop/conf/pseudo-distributed.ini.tmpl

+ 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"}]'
 
 
 ###########################################################################