Re: Can't access the data in Kafka Spark Streaming globally
This doesn't sound like a question regarding Kafka streaming, it sounds like confusion about the scope of variables in spark generally. Is that right? If so, I'd suggest reading the documentation, starting with a simple rdd (e.g. using sparkContext.parallelize), and experimenting to confirm your
Can't access the data in Kafka Spark Streaming globally
I am trying to stream the data from Kafka to Spark. JavaPairInputDStreamdirectKafkaStream = KafkaUtils.createDirectStream(ssc, String.class, String.class, StringDecoder.class, StringDecoder.class,