Skip to main content

Data Shuffling Minimizing Approach for Apache Spark Programs

  • Conference paper
  • First Online:
Cyber-Physical Systems and Control (CPS&C 2019)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 95))

Included in the following conference series:

  • 1175 Accesses

Abstract

This article discusses a way to optimize the Apache Spark program by reducing the number of transformations with wide dependencies and, as a result, the number of data shuffles. This is achieved by combining sequential data processing algorithms in chains based on common key fields, as well as grouping the data which is stored in resilient distributed structures i.e., Spark SQL Datasets, according to the keys by which the processing takes place.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Apache Spark. http://spark.apache.org/

  2. Karau, H., Warren, R.: High Performance Spark (2017)

    Google Scholar 

  3. Banerjee, S.: Apache Spark and Amazon s3 gotchas and best practices (2016)

    Google Scholar 

  4. Chambers, B.: Spark: The Definitive Guide (2017)

    Google Scholar 

  5. Wide vs Narrow Dependencies (2017). https://github.com/roh-gar/scala-spark-4/wiki/Wide-vs-Narrow-Dependencies

  6. Zaharia, M., Wendell, P., Konwinski, A., Karau, H.: Learning Spark (2015)

    Google Scholar 

  7. Cloudera: Spark Execution Model. https://www.cloudera.com/docu-mentation/enterprise/5-9-x/top-ics/cdh_ig_spark_apps.html#spark_exec_model

  8. Rizay, S., Leserson, U., Owen, S., Wills, J.: Spark for Professionals: Modern Patterns of Big Data Processing (2018)

    Google Scholar 

  9. Khazaei, T.: Spark Performance Tuning: A Checklist (2017)

    Google Scholar 

  10. Hu, R., Wang, Z., Fan, W., Agarwal, S.: Cost Based Optimizer in Apache Spark 2.2 (2017)

    Google Scholar 

  11. Armbrust, M., Huai, Y., Liang, C., Xin, R., Zaharia, M.: Deep Dive into Spark. SQL’s Catalyst Optimizer (2015)

    Google Scholar 

  12. Armbrust, M., Xin, R.S., Lian, C., Huai, Y.: Spark SQL: Relational Data Processing in Spark (2015)

    Google Scholar 

  13. Catalyst Optimizer. https://databricks.com/glossary/catalyst-optimizer

  14. Moisan, Y.: Spark performance tuning from the trenches (2018)

    Google Scholar 

  15. Apache. «Tuning Spark». https://spark.apache.org/docs/latest/tuning.html

  16. The Scala Programming Language. https://www.scala-lang.org/

  17. Apache Hive. https://hive.apache.org/

  18. Apache Phoenix. https://phoenix.apache.org

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Maksim Popov .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Popov, M., Drobintsev, P.D. (2020). Data Shuffling Minimizing Approach for Apache Spark Programs. In: Arseniev, D., Overmeyer, L., Kälviäinen, H., Katalinić, B. (eds) Cyber-Physical Systems and Control. CPS&C 2019. Lecture Notes in Networks and Systems, vol 95. Springer, Cham. https://doi.org/10.1007/978-3-030-34983-7_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-34983-7_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-34982-0

  • Online ISBN: 978-3-030-34983-7

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics