[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
spark:using-scala [2022/12/14 13:24]
straka
spark:using-scala [2024/09/27 09:21] (current)
straka [Usage Examples]
Line 72: Line 72:
 version := "1.0" version := "1.0"
  
-scalaVersion := "2.12.17"+scalaVersion := "2.12.20"
    
-libraryDependencies += "org.apache.spark" %% "spark-core" % "3.3.1"+libraryDependencies += "org.apache.spark" %% "spark-core" % "3.5.3"
 </file> </file>
  
Line 84: Line 84:
   * run ''word_count'' application with local Spark cluster using one thread:   * run ''word_count'' application with local Spark cluster using one thread:
   <file>MASTER=local spark-submit target/scala-2.12/word_count_2.12-1.0.jar /net/projects/spark-example-data/wiki-cs outdir</file>   <file>MASTER=local spark-submit target/scala-2.12/word_count_2.12-1.0.jar /net/projects/spark-example-data/wiki-cs outdir</file>
-  * start Spark cluster (10 machines, 2GB RAM each) on SGE and run ''word_count'' application:+  * start Spark cluster (10 machines, 2GB RAM each) on Slurm and run ''word_count'' application:
   <file>spark-sbatch 10 2G spark-submit target/scala-2.12/word_count_2.12-1.0.jar /net/projects/spark-example-data/wiki-cs outdir</file>   <file>spark-sbatch 10 2G spark-submit target/scala-2.12/word_count_2.12-1.0.jar /net/projects/spark-example-data/wiki-cs outdir</file>
  

[ Back to the navigation ] [ Back to the content ]