From 8ffb575287abf69c9955c962cd5ebc8477d74957 Mon Sep 17 00:00:00 2001 From: Guilherme Beltramini Date: Fri, 27 Dec 2024 17:44:11 -0300 Subject: [PATCH 1/2] doc: fix import path --- doc/amazon_sagemaker_processing.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/amazon_sagemaker_processing.rst b/doc/amazon_sagemaker_processing.rst index ac168578cd..657282e74d 100644 --- a/doc/amazon_sagemaker_processing.rst +++ b/doc/amazon_sagemaker_processing.rst @@ -83,7 +83,7 @@ First you need to create a :class:`PySparkProcessor` object .. code:: python - from sagemaker.processing import PySparkProcessor, ProcessingInput + from sagemaker.spark.processing import PySparkProcessor spark_processor = PySparkProcessor( base_job_name="sm-spark", @@ -158,10 +158,12 @@ SparkJarProcessor --------------------- Supposed that you have the jar file "preprocessing.jar" stored in the same directory as you are now, and the java package is ``com.path.to.your.class.PreProcessing.java`` -Here's an example of using PySparkProcessor. +Here's an example of using SparkJarProcessor. .. code:: python + from sagemaker.spark.processing import SparkJarProcessor + spark = SparkJarProcessor( base_job_name="sm-spark-java", image_uri=beta_image_uri, From c9c81564388cfa5dadac20ae7f4438440c7785d1 Mon Sep 17 00:00:00 2001 From: Guilherme Beltramini Date: Fri, 27 Dec 2024 17:46:13 -0300 Subject: [PATCH 2/2] doc: fix typo --- doc/amazon_sagemaker_processing.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/amazon_sagemaker_processing.rst b/doc/amazon_sagemaker_processing.rst index 657282e74d..81294ff60a 100644 --- a/doc/amazon_sagemaker_processing.rst +++ b/doc/amazon_sagemaker_processing.rst @@ -157,7 +157,8 @@ To successfully run the history server, first you need to make sure ``docker`` i SparkJarProcessor --------------------- -Supposed that you have the jar file "preprocessing.jar" stored in the same directory as you are now, and the java package is ``com.path.to.your.class.PreProcessing.java`` +Suppose that you have the jar file "preprocessing.jar" stored in the same directory as you are now, and the java package is ``com.path.to.your.class.PreProcessing.java``. + Here's an example of using SparkJarProcessor. .. code:: python