Executor.scala:338)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Any ideas about how to handle this error?
Thanks,
Martin Engen
From: Lalwani, Jayesh <jayesh.lalw...@capitalone.com>
Sent: Tuesday, May 15, 2018 9:59 PM
To: Martin Engen; user@spark.apache.org
Subject: Re: Structured Streaming, Reading and Updating a variable
Do you have a code sample, and detailed error message/exception to show?
From: Martin Engen <martin.en...@outlook.com>
Date: Tuesday, May 15, 2018 at 9:24 AM
To: "user@spark.apache.org" <user@spark.apache.org>
Subject: Structured Streaming, Reading and Updating a variable
Hello,
I'm working with Structured Streaming, and I need a method of keeping a running
average based on last 24hours of data.
To help with this, I can use Exponential Smoothing, which means I really only
need to store 1 value from a previous calculation into the new, and update this
variable as calculations carry on.
Implementing this is a much bigger challenge then I ever imagined.
I've tried using Accumulators and to Query/Store data to Cassandra after every
calculation. Both methods worked somewhat locally , but I don't seem to be able
to use these in the Spark Worker Nodes, as I get the error
"java.lang.NoClassDefFoundError: Could not initialize class error" both for the
accumulator and the cassandra connection libary
How can you read/update a variable while doing calculations using Structured
Streaming?
Thank you
The information contained in this e-mail is confidential and/or proprietary to
Capital One and/or its affiliates and may only be used solely in performance of
work or services for Capital One. The information transmitted herewith is
intended only for use by the individual or entity to which it is addressed. If
the reader of this message is not the intended recipient, you are hereby
notified that any review, retransmission, dissemination, distribution, copying
or other use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error, please
contact the sender and delete the material from your computer.