learning-spark icon indicating copy to clipboard operation
learning-spark copied to clipboard

object proto is not a member of package com.oreilly.learningsparkexamples

Open msathiyarajan opened this issue 7 years ago • 0 comments

I am getting the object proto is not a member of package import com.oreilly.learningsparkexamples.proto.Places error while importing into scala ide 4.7.0

msathiyarajan avatar Feb 25 '18 18:02 msathiyarajan

Does this method have particular benefits over just running a blocking call in a thread?

dhirschfeld avatar Mar 05 '24 05:03 dhirschfeld

Yes, the benefit is to recover a running execution. Imagine you are running a long query (1+ hour) and in the middle, your network cable comes unplugged or your computer runs out of battery. The query continues running on your cluster (incurring cost) but you have no way to recover it or see its results. You can cancel it from the Databricks SQL web UI but apart from that you have no choice but to re-run it and wait another hour for results.

In a second usage scenario, if you deploy the connector in a serverless function or lambda. You can wake the lambda to begin executing the query, commit its handle to state, sleep the lambda for some period of time, and wake up to fetch the results. This isn't possible using threads.

susodapop avatar Mar 06 '24 03:03 susodapop