瀏覽代碼

[livy] Add numExecutors options (#1238)

Co-authored-by: Макаров Илья Александрович (makarov_ia) <makarov_ia@nlmk.com>
Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
e11it 5 年之前
父節點
當前提交
605abaa154
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      desktop/libs/notebook/src/notebook/connectors/spark_shell.py

+ 9 - 0
desktop/libs/notebook/src/notebook/connectors/spark_shell.py

@@ -104,6 +104,15 @@ class SparkConfiguration(object):
       "multiple": False,
       "defaultValue": 1,
       "value": 1,
+    }, {
+      "name": "numExecutors",
+      "nice_name": _("numExecutors"),
+      "help_text": _("Number of executors to launch for this session (Default: 2)"),
+      "type": "number",
+      "is_yarn": True,
+      "multiple": False,
+      "defaultValue": 2,
+      "value": 2,
     }, {
       "name": "executorMemory",
       "nice_name": _("Executor Memory"),