Skip to content

This project aims at implementing and evaluating some common Computation Geometry algorithms on Apache Spark.

Notifications You must be signed in to change notification settings

generalpacific/cg-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CG_Spark - Implementation of Computational Geometry Algorithms in Apache Spark

This project implements some basic computational geometry algorithms in Apache Spark.

Setup

Building

  • mvn install

Running CG_Spark

lp - localpath where the jars are located in your system

  • Skyline
$ bin/spark-submit --class edu.umn.cs.cgspark.operations.Skyline \
--master local[k] \
--driver-class-path \
lp/cgspark-0.0.1-SNAPSHOT.jar:lp/guava-18.0.jar \
lp/cgspark-0.0.1-SNAPSHOT.jar \
-i lp/<input-filename> -o <output-filename> -l \
-p <partitionsize>
  • Closest Pair
$ bin/spark-submit --class \
edu.umn.cs.cgspark.operations.ClosestPair \
--master local[k] \
--driver-class-path \
lp/cgspark-0.0.1-SNAPSHOT.jar:lp/guava-18.0.jar \
lp/cgspark-0.0.1-SNAPSHOT.jar \
-i lp/<input-filename> -o <output-filename> -l \
-p <partitionsize>
  • Command for generating datasets
$ java -jar InputCreator.jar \
<outputfile> <number of points> \
<distribution-uni|gaus|cor|anti|circle>
  • Usage information:
-i,--input <arg>       Input File
-l,--isLocal           Run locally instead of as spark job
-o,--output <arg>      Output File
-p,--partition <arg>   Partition Size

About

This project aims at implementing and evaluating some common Computation Geometry algorithms on Apache Spark.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published