kafka learn point summary (four)

Code debugging process encountered an error summary:

 KafkaUtils.createDirectStream[String, String](
      ssc,
      LocationStrategies.PreferConsistent,
      Subscribe[String, String](topics, kafkaParams)

    )

In the process of writing code, IDEA and no automatic recognition method the Subscribe jar package to be imported, the jar of this method has maven downloaded, in this process, it is necessary to view all jar class method to manually import achieved.

In the import org.apache.spark.streaming.kafka010.ConsumerStrategies find methods require the use of the Subscribe , and then referenced method

 

Guess you like

Origin www.cnblogs.com/wcgstudy/p/11117888.html