Udostępnij za pośrednictwem


SparkJobEntry Klasa

Wpis zadania platformy Spark.

Dziedziczenie
azure.ai.ml.entities._mixins.RestTranslatableMixin
SparkJobEntry

Konstruktor

SparkJobEntry(*, entry: str, type: str = 'SparkJobPythonEntry')

Parametry Tylko słowo kluczowe

Nazwa Opis
entry
str

Plik lub punkt wejścia klasy.

type

Typ wpisu. Akceptowane wartości są SparkJobEntryType.SPARK_JOB_FILE_ENTRY lub SparkJobEntryType.SPARK_JOB_CLASS_ENTRY. Domyślnie SparkJobEntryType.SPARK_JOB_FILE_ENTRY.

wartość domyślna: SparkJobPythonEntry

Przykłady

Tworzenie elementu SparkComponent.


   from azure.ai.ml.entities import SparkComponent

   component = SparkComponent(
       name="add_greeting_column_spark_component",
       display_name="Aml Spark add greeting column test module",
       description="Aml Spark add greeting column test module",
       version="1",
       inputs={
           "file_input": {"type": "uri_file", "mode": "direct"},
       },
       driver_cores=2,
       driver_memory="1g",
       executor_cores=1,
       executor_memory="1g",
       executor_instances=1,
       code="./src",
       entry={"file": "add_greeting_column.py"},
       py_files=["utils.zip"],
       files=["my_files.txt"],
       args="--file_input ${{inputs.file_input}}",
       base_path="./sdk/ml/azure-ai-ml/tests/test_configs/dsl_pipeline/spark_job_in_pipeline",
   )