Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lykmapipo/scala-spark-product-sales-analysis
Scala application to process, and analyze product sales using Spark
https://github.com/lykmapipo/scala-spark-product-sales-analysis
anomaly-detection apache-spark apache-spark-sql customer-segmentation data-analysis data-processing lykmapipo market-basket-analysis product-sales product-sales-analysis rolling-average running-total sbt scala summary-statistics time-series-analysis
Last synced: 12 days ago
JSON representation
Scala application to process, and analyze product sales using Spark
- Host: GitHub
- URL: https://github.com/lykmapipo/scala-spark-product-sales-analysis
- Owner: lykmapipo
- License: mit
- Created: 2024-02-01T09:25:17.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-12T07:06:00.000Z (9 months ago)
- Last Synced: 2024-10-11T12:19:47.501Z (about 1 month ago)
- Topics: anomaly-detection, apache-spark, apache-spark-sql, customer-segmentation, data-analysis, data-processing, lykmapipo, market-basket-analysis, product-sales, product-sales-analysis, rolling-average, running-total, sbt, scala, summary-statistics, time-series-analysis
- Language: Scala
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scala-Spark-Product-Sales-Analysis
Scala application to process, and analyze product sales using Apache Spark.
These include:
1. Aggregations: [Overall](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/AggregationOverall.scala), [Per Category](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/AggregationPerCategory.scala), [Per Date](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/AggregationPerDate.scala), [Per Product](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/AggregationPerProduct.scala)
2. Running Totals: [Overall](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/RunningTotalOverall.scala), [Per Category](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/RunningTotalPerCategory.scala)
3. Rolling Averages: [Overall](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/RollingAverageOverall.scala), [Per Category](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/blob/main/src/main/scala/com/github/lykmapipo/spark/analysis/RollingAveragePerCategory.scala)
> π This repository's maintainer is available to hire for Scala/Spark consulting projects. To get a cost estimate, send email to [email protected] (for projects of any size or complexity).
## Requirements
- [Java 11+](https://github.com/openjdk/jdk)
- [Scala 2.13.10+](https://github.com/scala/scala)
- [sbt 1.8.2+](https://github.com/sbt/sbt)
- [Apache Spark 3.5+](https://github.com/apache/spark)## Usage
- Clone this repository
```sh
git clone https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis.git
cd Scala-Spark-Product-Sales-Analysis
```- To perform `product sales analysis` with `sbt`, run:
```sh
sbt run
```- To perform `product sales analysis` with `spark-submit`, run:
```sh
sbt assemblyspark-submit \
--class com.github.lykmapipo.spark.ProductSalesAnalysis \
--master \
target/scala-2.13/scala-spark-product-sales-analysis-assembly-0.1.0.jar
```## Data
- Check [DATA.md](https://github.com/lykmapipo/Scala-Spark-Product-Sales-Analysis/tree/main/DATA.md) for description of `raw data` used and `output data` of each analysis.## Contribute
It will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas.
## Questions/Issues/Contacts
[email protected], or open a GitHub issue
## Licence
The MIT License (MIT)
Copyright (c) lykmapipo & Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the βSoftwareβ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED βAS ISβ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.