Connect to a Spark session
convertKafkaValueFromJson(streamObj, schema)Spark Structured Streaming DataFrame which is returned by the castKafkaStreamAsString function
A structType object created from SparkR specifying the schema of the json data present in the value
attribute of the incoming Kafka stream
Spark Structured Streaming DataFrame with the json data in the value attribute of the Kafka stream parsed
into a DataFrame format
Takes in a Structured Stream from Kafka created from read.stream(source = 'kafka', ...) and returns
a Structured Streaming DataFrame where the key and value from the Kafka stream are cast to string
Other Spark utilities: castKafkaStreamAsString,
sparkRSessionCreateIfNotPresent