Package

org.apache.spark

examples

Permalink

package examples

Visibility
  1. Public
  2. All

Type Members

  1. final class JavaHdfsLR extends AnyRef

    Permalink
  2. final class JavaLogQuery extends AnyRef

    Permalink
  3. final class JavaPageRank extends AnyRef

    Permalink
  4. final class JavaSparkPi extends AnyRef

    Permalink
  5. final class JavaStatusTrackerDemo extends AnyRef

    Permalink
  6. final class JavaTC extends AnyRef

    Permalink
  7. final class JavaWordCount extends AnyRef

    Permalink

Value Members

  1. object BroadcastTest

    Permalink

    Usage: BroadcastTest [slices] [numElem] [blockSize]

  2. object DFSReadWriteTest

    Permalink

    Simple test for reading and writing to a distributed file system.

    Simple test for reading and writing to a distributed file system. This example does the following:

    1. Reads local file 2. Computes word count on local file 3. Writes local file to a DFS 4. Reads the file back from the DFS 5. Computes word count on the file using Spark 6. Compares the word count results
  3. object DriverSubmissionTest

    Permalink

    Prints out environmental information, sleeps, and then exits.

    Prints out environmental information, sleeps, and then exits. Made to test driver submission in the standalone scheduler.

  4. object ExceptionHandlingTest

    Permalink
  5. object GroupByTest

    Permalink

    Usage: GroupByTest [numMappers] [numKVPairs] [KeySize] [numReducers]

  6. object HdfsTest

    Permalink
  7. object LocalALS

    Permalink

    Alternating least squares matrix factorization.

    Alternating least squares matrix factorization.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.recommendation.ALS.

  8. object LocalFileLR

    Permalink

    Logistic regression based classification.

    Logistic regression based classification.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.classification.LogisticRegression.

  9. object LocalKMeans

    Permalink

    K-means clustering.

    K-means clustering.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.clustering.KMeans.

  10. object LocalLR

    Permalink

    Logistic regression based classification.

    Logistic regression based classification.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.classification.LogisticRegression.

  11. object LocalPi

    Permalink
  12. object LogQuery

    Permalink

    Executes a roll up-style query against Apache logs.

    Executes a roll up-style query against Apache logs.

    Usage: LogQuery [logFile]

  13. object MultiBroadcastTest

    Permalink

    Usage: MultiBroadcastTest [slices] [numElem]

  14. object SimpleSkewedGroupByTest

    Permalink

    Usage: SimpleSkewedGroupByTest [numMappers] [numKVPairs] [valSize] [numReducers] [ratio]

  15. object SkewedGroupByTest

    Permalink

    Usage: GroupByTest [numMappers] [numKVPairs] [KeySize] [numReducers]

  16. object SparkALS

    Permalink

    Alternating least squares matrix factorization.

    Alternating least squares matrix factorization.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.recommendation.ALS.

  17. object SparkHdfsLR

    Permalink

    Logistic regression based classification.

    Logistic regression based classification.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.classification.LogisticRegression.

  18. object SparkKMeans

    Permalink

    K-means clustering.

    K-means clustering.

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.clustering.KMeans.

  19. object SparkLR

    Permalink

    Logistic regression based classification.

    Logistic regression based classification. Usage: SparkLR [slices]

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.ml.classification.LogisticRegression.

  20. object SparkPageRank

    Permalink

    Computes the PageRank of URLs from an input file.

    Computes the PageRank of URLs from an input file. Input file should be in format of: URL neighbor URL URL neighbor URL URL neighbor URL ... where URL and their neighbors are separated by space(s).

    This is an example implementation for learning how to use Spark. For more conventional use, please refer to org.apache.spark.graphx.lib.PageRank

  21. object SparkPi

    Permalink

    Computes an approximation to pi

  22. object SparkTC

    Permalink

    Transitive closure on a graph.

  23. package graphx

    Permalink
  24. package ml

    Permalink
  25. package mllib

    Permalink
  26. package pythonconverters

    Permalink
  27. package sql

    Permalink
  28. package streaming

    Permalink

Ungrouped