Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotnet/spark
.NET for Apache® Spark™ makes Apache Spark™ easily accessible to .NET developers.
https://github.com/dotnet/spark
analytics apache-spark azure bigdata csharp databricks dotnet dotnet-core dotnet-standard emr fsharp hdinsight machine-learning microsoft spark spark-sql spark-streaming streaming tpcds tpch
Last synced: 4 days ago
JSON representation
.NET for Apache® Spark™ makes Apache Spark™ easily accessible to .NET developers.
- Host: GitHub
- URL: https://github.com/dotnet/spark
- Owner: dotnet
- License: mit
- Created: 2019-04-22T18:55:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T08:00:38.000Z (11 days ago)
- Last Synced: 2024-12-11T13:03:02.095Z (11 days ago)
- Topics: analytics, apache-spark, azure, bigdata, csharp, databricks, dotnet, dotnet-core, dotnet-standard, emr, fsharp, hdinsight, machine-learning, microsoft, spark, spark-sql, spark-streaming, streaming, tpcds, tpch
- Language: C#
- Homepage: https://dot.net/spark
- Size: 3.02 MB
- Stars: 2,032
- Watchers: 90
- Forks: 316
- Open Issues: 209
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Roadmap: ROADMAP.md
Awesome Lists containing this project
- awesome-spark - .NET for Apache Spark - commit/dotnet/spark.svg"> - .NET bindings. (Packages / Language Bindings)
- awesome_dotnet_cloud_ecosystem - .NET for Apache® Spark™ makes Apache Spark™ easily accessible to .NET developers.
README
[![NuGet Badge](https://buildstats.info/nuget/Microsoft.Spark)](https://www.nuget.org/packages/Microsoft.Spark)
![Icon](docs/img/dotnetsparklogo-6.png)
# .NET for Apache® Spark™
.NET for Apache Spark provides high performance APIs for using [Apache Spark](https://spark.apache.org/) from C# and F#. With these .NET APIs, you can access the most popular Dataframe and SparkSQL aspects of Apache Spark, for working with structured data, and Spark Structured Streaming, for working with streaming data.
.NET for Apache Spark is compliant with .NET Standard - a formal specification of .NET APIs that are common across .NET implementations. This means you can use .NET for Apache Spark anywhere you write .NET code allowing you to reuse all the knowledge, skills, code, and libraries you already have as a .NET developer.
.NET for Apache Spark runs on Windows, Linux, and macOS using .NET 6, or Windows using .NET Framework. It also runs on all major cloud providers including [Azure HDInsight Spark](deployment/README.md#azure-hdinsight-spark), [Amazon EMR Spark](deployment/README.md#amazon-emr-spark), [AWS](deployment/README.md#databricks) & [Azure](deployment/README.md#databricks) Databricks.
**Note**: We currently have a Spark Project Improvement Proposal JIRA at [SPIP: .NET bindings for Apache Spark](https://issues.apache.org/jira/browse/SPARK-27006) to work with the community towards getting .NET support by default into Apache Spark. We highly encourage you to participate in the discussion.
## Table of Contents
- [Supported Apache Spark](#supported-apache-spark)
- [Releases](#releases)
- [Get Started](#get-started)
- [Build Status](#build-status)
- [Building from Source](#building-from-source)
- [Samples](#samples)
- [Contributing](#contributing)
- [Inspiration and Special Thanks](#inspiration-and-special-thanks)
- [How to Engage, Contribute and Provide Feedback](#how-to-engage-contribute-and-provide-feedback)
- [Support](#support)
- [.NET Foundation](#net-foundation)
- [Code of Conduct](#code-of-conduct)
- [License](#license)## Supported Apache Spark
Apache Spark
.NET for Apache Spark
2.4*
v2.1.1
3.0
3.1
3.2
*2.4.2 is not supported.
## Releases
.NET for Apache Spark releases are available [here](https://github.com/dotnet/spark/releases) and NuGet packages are available [here](https://www.nuget.org/packages/Microsoft.Spark).
## Get Started
These instructions will show you how to run a .NET for Apache Spark app using .NET 6.
- [Windows Instructions](docs/getting-started/windows-instructions.md)
- [Ubuntu Instructions](docs/getting-started/ubuntu-instructions.md)
- [MacOs Instructions](docs/getting-started/macos-instructions.md)## Build Status
| ![Ubuntu icon](docs/img/ubuntu-icon-32.png) | ![Windows icon](docs/img/windows-icon-32.png) |
| :---: | :---: |
| Ubuntu | Windows |
| | [![Build Status](https://dnceng.visualstudio.com/public/_apis/build/status/dotnet.spark?branchName=main)](https://dev.azure.com/dnceng/public/_build?definitionId=459&branchName=main)|## Building from Source
Building from source is very easy and the whole process (from cloning to being able to run your app) should take less than 15 minutes!
| | | Instructions |
| :---: | :--- | :--- |
| ![Windows icon](docs/img/windows-icon-32.png) | **Windows** |
- Local - [.NET Framework 4.6.1](docs/building/windows-instructions.md#using-visual-studio-for-net-framework-461)
- Local - [.NET 6](docs/building/windows-instructions.md#using-net-core-cli-for-net-core)
- Local - [.NET 6](docs/building/ubuntu-instructions.md)
- [Azure HDInsight Spark - .NET 6](deployment/README.md)
- |
| ![Ubuntu icon](docs/img/ubuntu-icon-32.png) | **Ubuntu** |
There are two types of samples/apps in the .NET for Apache Spark repo:
* ![Icon](docs/img/app-type-getting-started.png) Getting Started - .NET for Apache Spark code focused on simple and minimalistic scenarios.
* ![Icon](docs/img/app-type-e2e.png) End-End apps/scenarios - Real world examples of industry standard benchmarks, usecases and business applications implemented using .NET for Apache Spark.
We welcome contributions to both categories!
Analytics Scenario
Description
Scenarios
Dataframes and SparkSQL
Simple code snippets to help you get familiarized with the programmability experience of .NET for Apache Spark.
Basic
C# F#
Structured Streaming
Code snippets to show you how to utilize Apache Spark's Structured Streaming (2.3.1, 2.3.2, 2.4.1, Latest)
Word Count
C# F#
Windowed Word Count C# F#
Word Count on data from Kafka C# F#
TPC-H Queries
Code to show you how to author complex queries using .NET for Apache Spark.
TPC-H Functional
C#
TPC-H SparkSQL
C#
## Contributing
We welcome contributions! Please review our [contribution guide](CONTRIBUTING.md).
## Inspiration and Special Thanks
This project would not have been possible without the outstanding work from the following communities:
- [Apache Spark](https://spark.apache.org/): Unified Analytics Engine for Big Data, the underlying backend execution engine for .NET for Apache Spark
- [Mobius](https://github.com/Microsoft/Mobius): C# and F# language binding and extensions to Apache Spark, a pre-cursor project to .NET for Apache Spark from the same Microsoft group.
- [PySpark](https://spark.apache.org/docs/latest/api/python/index.html): Python bindings for Apache Spark, one of the implementations .NET for Apache Spark derives inspiration from.
- [sparkR](https://spark.apache.org/docs/latest/sparkr.html): one of the implementations .NET for Apache Spark derives inspiration from.
- [Apache Arrow](https://arrow.apache.org/): A cross-language development platform for in-memory data. This library provides .NET for Apache Spark with efficient ways to transfer column major data between the JVM and .NET CLR.
- [Pyrolite](https://github.com/irmen/Pyrolite) - Java and .NET interface to Python's pickle and Pyro protocols. This library provides .NET for Apache Spark with efficient ways to transfer row major data between the JVM and .NET CLR.
- [Databricks](https://databricks.com/): Unified analytics platform. Many thanks to all the suggestions from them towards making .NET for Apache Spark run on Azure and AWS Databricks.
## How to Engage, Contribute and Provide Feedback
The .NET for Apache Spark team encourages [contributions](docs/contributing.md), both issues and PRs. The first step is finding an [existing issue](https://github.com/dotnet/spark/issues) you want to contribute to or if you cannot find any, [open an issue](https://github.com/dotnet/spark/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+).
## Support
[.NET for Apache Spark](https://github.com/dotnet/spark) is an open source project under the [.NET Foundation](https://dotnetfoundation.org/) and
does not come with Microsoft Support unless otherwise noted by the specific product. For issues with or questions about .NET for Apache Spark, please [create an issue](https://github.com/dotnet/spark/issues). The community is active and is monitoring submissions.
## .NET Foundation
The .NET for Apache Spark project is part of the [.NET Foundation](http://www.dotnetfoundation.org).
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](https://contributor-covenant.org/)
to clarify expected behavior in our community.
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
.NET for Apache Spark is licensed under the [MIT license](LICENSE).