Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

'SparkSession' object has no attribute '_jssc'

'SparkSession' object has no attribute '_jssc'

Explorer

Hello all, 

does someone has a solution to this issue:

 

'SparkSession' object has no attribute '_jssc'

 

I'm using Spark 2.3.0 and spark-sql-kafka-0-10_2.11-2.1.0.cloudera1.jar on 

Hadoop 2.6.0-cdh5.14.2

 

 

 

1 REPLY 1
Highlighted

Re: 'SparkSession' object has no attribute '_jssc'

Explorer
I found the problem: I was calling KafkaUtils.createDirectStream( ) passing sparksession as 1st parameter, the correct parameter is a StreamingSession object.