This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.spark.sql.SparkSession | |
import org.apache.spark.sql.functions._ | |
object WordCountKafkaCouchbase { | |
def main(args: Array[String]) { | |
// create spark session with settings | |
val spark = SparkSession | |
.builder | |
.appName("Word Count Test") | |
.config("spark.couchbase.username", "[username goes here]") |