Hadoop - Modern Data Architecture with Hadoop
Examine this Spark Structured Streaming code snippet in a Kappa architecture:
df = spark.readStream.format("kafka")
.option("kafka.bootstrap.servers", "localhost:9092")
.option("subscribe", "topic1")
.load()
result = df.selectExpr("CAST(value AS STRING) as data")
.writeStream.format("console")
.start()What is the main issue with this code?
