Big data preparation in Azure Machine Learning – powered by Azure Synapse Analytics

Published 04-20-2021 09:00 AM 1,573 Views
Microsoft

Many customers who embark on a machine learning journey deal with big data, and need the power of distributed data processing engines to prepare their data for ML. By offering Apache Spark® (powered by Azure Synapse Analytics) in Azure Machine Learning (Azure ML), we are empowering customers to work on their end-to-end ML lifecycle including large-scale data preparation, featurization, model training, and deployment within Azure ML workspace without the need to switching between multiple tools for data preparation and model training. The ability to build the full ML lifecycle within Azure ML will reduce the time required for customers to iterate on a machine learning project which typically includes multiple rounds of data preparation and training. 

 

With the preview of managed Apache Spark in Azure ML, customers can use Azure ML notebooks to connect to Spark pools in Azure Synapse Analytics, to do interactive data preparation using PySpark. Customers have the option to configure Spark sessions to quickly experiment and iterate on the data. Once ready, they can leverage Azure ML pipelines to automate their end-to-end ML workflow from data preparation to model deployment all in one environment, while maintaining their data and model lineage. Customers who prefer to train in the Spark environment can choose to install relevant libraries such as Spark MLlib, MMLSpark, etc. to complete their training on Spark pools.

 

Customers in preview will be able to benefit from the following key capabilities:

Reuse Spark pools from Azure Synapse workspace in Azure ML

Customers can leverage existing Spark pools from Azure Synapse Analytics (Azure Synapse) in Azure ML by just linking their Azure ML and Synapse workspaces via the Azure ML Studio, the Python SDK, or the ARM template. Customers just need to follow the widget in UI or leverage a few lines of code as described in the documentation here.

Picture1.png

Once the workspaces are linked, customers can attach existing Spark pools into Azure ML workspace and can also register the supported linked services (data store sources).

Picture2.png

 

 

Perform interactive data preparation via Spark magic from Azure ML notebooks

Customers can use Azure ML notebooks to start Spark sessions in PySpark via Spark Magic on attached Spark pools. Customers can register Azure ML datasets to load data from storage of choice. For data in Gen1 and Gen2, customers can use their own identities to authenticate access to data by leveraging AML datasets. The attached Spark pools can be used normally in Azure ML experiments, pipelines, and designer. More information on leveraging Spark Magic for data preparation on AML notebooks here

Picture3.png

 

 

Productionize via Azure ML pipelines to orchestrate E2E ML steps including data preparation

After completing the interactive data preparation, customers can leverage Azure ML pipelines to automate data preparation on Apache Spark runtime as a step in the overall machine learning workflow. Customers can use the SynapseSparkStep for data preparation and choose either TabularDataset or FileDataset as input. Customers can also set up HDFSOutputDatasetConfig to generate the sparkstep output as a FileDataset, to be consumed by the following AzureML pipeline step. More details on How to use Apache Spark (powered by Azure Synapse) in your machine learning pipeline here.

 

Get started with big data preparation in Azure ML via Apache Spark powered by Azure Synapse

Get started by visiting our documentation and let us know your thoughts. We are committed to making the data preparation experience in Azure ML better for you!

Learn more about the Azure Machine Learning service and get started with a free trial.

%3CLINGO-SUB%20id%3D%22lingo-sub-2278671%22%20slang%3D%22en-US%22%3EBig%20data%20preparation%20in%20Azure%20Machine%20Learning%20%E2%80%93%20powered%20by%20Azure%20Synapse%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2278671%22%20slang%3D%22en-US%22%3E%3CP%3EMany%20customers%20who%20embark%20on%20a%20machine%20learning%20journey%20deal%20with%20big%20data%2C%20and%20need%20the%20power%20of%20distributed%20data%20processing%20engines%20to%20prepare%20their%20data%20for%20ML.%20By%20offering%20Apache%20Spark%C2%AE%20(powered%20by%20Azure%20Synapse%20Analytics)%20in%20Azure%20Machine%20Learning%20(Azure%20ML)%2C%20we%20are%20empowering%20customers%20to%20work%20on%20their%20end-to-end%20ML%20lifecycle%20including%20large-scale%20data%20preparation%2C%20featurization%2C%20model%20training%2C%20and%20deployment%20within%20Azure%20ML%20workspace%20without%20the%20need%20to%20switching%20between%20multiple%20tools%20for%20data%20preparation%20and%20model%20training.%20%3CSPAN%3EThe%20ability%20to%20build%20the%20full%20ML%20lifecycle%3C%2FSPAN%3E%20within%20Azure%20ML%20will%20reduce%20the%20time%20required%20for%20customers%20to%20iterate%20on%20a%20machine%20learning%20project%20which%20typically%20includes%20multiple%20rounds%20of%20data%20preparation%20and%20training.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWith%20the%20preview%20of%20managed%20Apache%20Spark%20in%20Azure%20ML%2C%20customers%20can%20use%20Azure%20ML%20notebooks%20to%20connect%20to%20Spark%20pools%20in%20Azure%20Synapse%20Analytics%2C%20to%20do%20interactive%20data%20preparation%20using%26nbsp%3BPySpark.%20Customers%20have%20the%26nbsp%3Boption%20to%20configure%26nbsp%3BSpark%20sessions%20to%20quickly%20experiment%20and%20iterate%20on%20the%20data.%20Once%20ready%2C%20they%20can%20leverage%20Azure%20ML%20pipelines%20to%20automate%20their%20end-to-end%20ML%20workflow%20from%20data%20preparation%20to%20model%20deployment%20all%20in%20one%20environment%2C%20%3C%2FSPAN%3E%3CSPAN%3Ewhile%20maintaining%20their%20data%20and%20model%20lineage.%20Customers%20who%20prefer%20to%20train%20in%20the%20Spark%20environment%20can%20choose%20to%20install%20relevant%20libraries%20such%20as%20Spark%20MLlib%2C%20MMLSpark%2C%20etc.%20to%20complete%20their%20training%20on%20Spark%20pools.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECustomers%20in%20preview%20will%20be%20able%20to%20benefit%20from%20the%20following%20key%20capabilities%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EReuse%20Spark%20pools%20from%20Azure%20Synapse%20workspace%20in%20Azure%20ML%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ECustomers%20can%20leverage%20existing%20Spark%20pools%20from%20Azure%20Synapse%20Analytics%20(Azure%20Synapse)%20in%20Azure%20ML%20by%20just%20linking%20their%20Azure%20ML%20and%20Synapse%20workspaces%20via%20the%20Azure%20ML%20Studio%2C%20the%20Python%20SDK%2C%20or%20the%20ARM%20template.%20Customers%20just%20need%20to%20follow%20the%20widget%20in%20UI%20or%20leverage%20a%20few%20lines%20of%20code%20as%20described%20in%20the%20documentation%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-link-synapse-ml-workspaces%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273990iC3748239EEF8CA15%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture1.png%22%20alt%3D%22Picture1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOnce%20the%20workspaces%20are%20linked%2C%20customers%20can%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-data-prep-synapse-spark-pool%23attach-synapse-spark-pool-as-a-compute%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eattach%20existing%20Spark%20pools%3C%2FA%3E%20into%20Azure%20ML%20workspace%20and%20can%20also%20register%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-access-data%23supported-data-storage-service-types%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esupported%20linked%20services%20(data%20store%20sources)%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273991i887D228F5BCC4424%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture2.png%22%20alt%3D%22Picture2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPerform%20interactive%20data%20preparation%20via%20Spark%20magic%20from%20Azure%20ML%20notebooks%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECustomers%20can%20use%20Azure%20ML%20notebooks%20to%20start%20Spark%20sessions%20in%20PySpark%20via%20Spark%20Magic%20on%20attached%20Spark%20pools.%20Customers%20can%20register%20Azure%20ML%20datasets%20to%20load%20data%20from%20storage%20of%20choice.%20For%20data%20in%20Gen1%20and%20Gen2%2C%20customers%20can%20use%20their%20own%20identities%20to%20authenticate%20access%20to%20data%20by%20leveraging%20AML%20datasets.%20The%20attached%20Spark%20pools%20can%20be%20used%20normally%20in%20Azure%20ML%20experiments%2C%20pipelines%2C%20and%20designer.%20More%20information%20on%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-data-prep-synapse-spark-pool%23launch-synapse-spark-pool-for-data-preparation-tasks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eleveraging%20Spark%20Magic%20for%20data%20preparation%20on%20AML%20notebooks%20here%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273992i5889A7B6E2B1AC1A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture3.png%22%20alt%3D%22Picture3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EProductionize%20via%20Azure%20ML%20pipelines%20to%20orchestrate%20E2E%20ML%20steps%20including%20data%20preparation%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAfter%20completing%20the%20interactive%20data%20preparation%2C%20customers%20can%20leverage%20Azure%20ML%20pipelines%20to%20automate%20data%20preparation%20on%20Apache%20Spark%20runtime%20as%20a%20step%20in%20the%20overall%20machine%20learning%20workflow.%20Customers%20can%20use%20the%20SynapseSparkStep%20for%20data%20preparation%20and%20choose%20either%20TabularDataset%26nbsp%3Bor%20FileDataset%20as%20input.%20Customers%20can%20also%20set%20up%20HDFSOutputDatasetConfig%20to%20generate%20the%20sparkstep%20output%20as%20a%20FileDataset%2C%20to%20be%20consumed%20by%20the%20following%20AzureML%20pipeline%20step.%20More%20details%20on%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-use-synapsesparkstep%23use-the-synapsesparkstep-in-a-pipeline%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EHow%20to%20use%20Apache%20Spark%20(powered%20by%20Azure%20Synapse)%20in%20your%20machine%20learning%20pipeline%20here%3C%2FA%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--492794285%22%20id%3D%22toc-hId--493624593%22%3E%3CSPAN%3EGet%20started%20with%20big%20data%20preparation%20in%20Azure%20ML%20via%20Apache%20Spark%20powered%20by%20Azure%20Synapse%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3EGet%20started%20by%20visiting%20our%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-data-prep-synapse-spark-pool%23launch-synapse-spark-pool-for-data-preparation-tasks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E%26nbsp%3Band%20let%20us%20know%20your%20thoughts.%20We%20are%20committed%20to%20making%20the%20data%20preparation%20experience%20in%20Azure%20ML%20better%20for%20you!%3C%2FP%3E%0A%3CP%3ELearn%20more%20about%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fmachine-learning-service%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Machine%20Learning%20service%3C%2FA%3E%26nbsp%3Band%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Ftrial%2Fget-started-machine-learning%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eget%20started%20with%20a%20free%20trial%3C%2FA%3E.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-data-prep-synapse-spark-pool%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELearn%20more%20about%20Azure%20Synapse%20big%20data%20preparation%20experience%20in%20Azure%20ML%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fhow-to-use-synapsesparkstep%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELearn%20more%20about%20how%20to%20use%20Apache%20Spark%20in%20your%20machine%20learning%20pipelines%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ELearn%20more%20about%20%3CA%20href%3D%22https%3A%2F%2Fspark.apache.org%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EApache%20Spark%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ELearn%20more%20about%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fsynapse-analytics%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Synapse%20Analytics%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2278671%22%20slang%3D%22en-US%22%3E%3CP%3EBy%20offering%20Apache%20Spark%C2%AE%20(powered%20by%20Azure%20Synapse%20Analytics)%20in%20Azure%20Machine%20Learning%20(Azure%20ML)%2C%20we%20are%20empowering%20customers%20to%20work%20on%20their%20end-to-end%20ML%20lifecycle%20including%20large-scale%20data%20preparation%2C%20featurization%2C%20model%20training%2C%20and%20deployment%20within%20Azure%20ML%20workspace%20without%20the%20need%20to%20switching%20between%20multiple%20tools%20for%20data%20preparation%20and%20model%20training.%20The%20ability%20to%20build%20the%20full%20ML%20lifecycle%20within%20Azure%20ML%20will%20reduce%20the%20time%20required%20for%20customers%20to%20iterate%20on%20a%20machine%20learning%20project%20which%20typically%20includes%20multiple%20rounds%20of%20data%20preparation%20and%20training.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273987i2BC15DF5A797031A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture2.png%22%20alt%3D%22Picture2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2278671%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Machine%20Learning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Apr 19 2021 10:58 PM
Updated by: