Big data study notes (6) - spark streaming demo operation [original]

1. Open a terminal and type
nc -lk 9999


2. Open another terminal, switch to the SPARK_HOME directory, run
cd /usr/local/spark-2.1.0-bin-hadoop2.7
./bin/run-example org.apache.spark.examples.streaming.NetworkWordCount localhost 9999


3. Enter a string of characters in the console


4. Spark statistical results

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326641131&siteId=291194637