Skip to content

EclairJS Spark Examples

EclairJS edited this page Mar 21, 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
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)
MLlib
Clone this wiki locally