Browse Source

[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 năm trước cách đây
mục cha
commit
605abaa154

+ 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"),