Skip to content

EclairJS Spark Examples

EclairJS edited this page Mar 22, 2016 · 17 revisions

Many of the examples provided for Apache Spark have been replicated in EclairJS. The table below provides a catalog of these examples for easy navigation and cross-reference.

Library EclairJS-Node EclairJS-Nashorn Apache Spark
Core
[] () [] ()
SQL
[sparkjdbc] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/sql/sparkjdbc.js) [] ()
[sparksql] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/sql/sparksql.js) [JavaSparkSQL] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/sql/JavaSparkSQL.java)
Streaming
[direct_kafka_word_count] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/streaming/direct_kafka_word_count.js) [JavaDirectKafkaWordCount] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaDirectKafkaWordCount.java)
[kafka_word_count] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/streaming/kafka_word_count.js) [JavaKafkaWordCount] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaKafkaWordCount.java)
[network_word_count] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/streaming/network_word_count.js) [JavaNetworkWordCount] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaNetworkWordCount.java)
[queue_count] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/streaming/queue_count.js) [JavaQueueStream] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaQueueStream.java)
[recoverable_network_word_count] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/streaming/recoverable_network_word_count.js) [JavaRecoverableNetworkWordCount] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaRecoverableNetworkWordCount.java)
[twitter_popular_tags] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/streaming/twitter_popular_tags.js)
ml
[word2vec_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/ml/word2vec_example.js) [JavaWord2VecExample] (https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/ml/JavaWord2VecExample.java)
mllib
[als] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/als.js) [] ()
[association_rules_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/association_rules_example.js) [] ()
[binary_classification_metrics_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/binary_classification_metrics_example.js) [] ()
[bisecting_k_means_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/bisecting_k_means_example.js) [] ()
[decision_tree_classification_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/decision_tree_classification_example.js) [] ()
[decision_tree_regression_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/decision_tree_regression_example.js) [] ()
[fp_growth_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/fp_growth_example.js) [] ()
[gradient_boosting_classification_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/gradient_boosting_classification_example.js) [] ()
[gradient_boosting_regression_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/gradient_boosting_regression_example.js) [] ()
[isotonic_regression_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/isotonic_regression_example.js) [] ()
[kmeans_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/kmeans_example.js) [] ()
[lbfgs_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/lbfgs_example.js) [] ()
[lda_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/lda_example.js) [] ()
[linear_regression_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/linear_regression_example.js) [] ()
[lr_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/lr_example.js) [] ()
[multiclass_classification_metrics_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/multiclass_classification_metrics_example.js) [] ()
[multilabel_classification_metrics_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/multilabel_classification_metrics_example.js) [] ()
[naive_bayes_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/naive_bayes_example.js) [] ()
[pca_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/pca_example.js) [] ()
[power_iteration_clustering_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/power_iteration_clustering_example.js) [] ()
[random_forest_classification_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/random_forest_classification_example.js) [] ()
[random_forest_regression_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/random_forest_regression_example.js) [] ()
[random_rdd_generation_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/random_rdd_generation_example.js) [] ()
[ranking_metrics_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/ranking_metrics_example.js) [] ()
[regression_metrics_example] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/regression_metrics_example.js) [] ()
[sampled_rdds] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/sampled_rdds.js) [] ()
[word2vec] (https://github.com/EclairJS/eclairjs-nashorn/blob/master/examples/mllib/word2vec.js) [] ()
Clone this wiki locally