spark example Spark streaming Input is incremented if it is integer. Otherwise, return 0 how to use preparation scala & sbt run terminal 1 sbt run terminal 2 nc -lk 9999