Try adding the spark-streaming_2.11 artifact as a dependency too. You will
be directly depending on it.
On Tue, Oct 18, 2016 at 2:16 PM Furkan KAMACI <furkankam...@gmail.com>
> I have a search application and want to monitor queries per second for it.
> I have Kafka at my backend which acts like a bus for messages. Whenever a
> search request is done I publish the nano time of the current system. I
> want to use Spark Streaming to aggregate such data but I am so new to it.
> I wanted to follow that example:
> I've added that dependencies:
> However I cannot see even Duration class at my dependencies. On the other
> hand given documentation is missing and when you click Java there is no
> code at tabs.
> Could you guide me how can I implement monitoring such a metric?
> Kind Regards,
> Furkan KAMACI