Conversation
|
I guess it will not work. I tried to upgrade spark to 2.3.1 and it started returning such an error: btw. there is already sink for Cassandra in DSE 6. I am wondering when(if) they port that solution to cassandra driver. The sink I mentioned exists in spark-connector-6.0.2.jar CassandraSourceRelation. I tested that in stand-alone DSE and it works with .outputMode("update"). |
|
Hey Mariusz,
I know, the custom Cassandra sink using the datastax's connector does not
work with spark 2.3. I need to spend time to fix that..
I'm aware of the DSE 6 sink, I talked about it with Russel, and it's not
planned to release it for the community.
Paul
|
|
Hi Paul |
|
I would have a look to the elastic sink, which is open source, and see their implementation to be inspired. We also have the foreach sink that can be used with Cassandra. I refer to it as "unsafe" in the repo |
|
I thought also about foreach sink but it has two downsides. I also tried to find an inspiration in DSE implementation unfortunately it's not opensource and it is Scala code so you can not easily decompile the code ;) but I will also try to dig a little bit to understand the way it should have been implemented. |
|
Hi guys, I'm also interested in this and I'd love to help you with development. Please let me know how I can contact you for this effort. Cheers |
|
Thanks for all your messages 😄 If you feel like give it a try, the offical Elastic sink can be a great source of inspiration for the Cassandra sink Compared to what we have in the repo :
I might be able to spend some time on the issue the following month. |
|
Looks like there is some useful stuff in here: scylladb/scylla-code-samples#68 |
|
thanks @snowch Scylla does it the same way by using the Datastax's connector : https://github.com/scylladb/scylla-code-samples/pull/68/files#diff-1e869081fec2d3c842a3b91688825a5eR71 I'm guessing it should be a small fix to be able to have the project running for spark 2.3.1 and the cassandra sink |
|
@polomarcus are you planning to implement the fix you suggested above? |
Spark 2.2.0 to 2.3.1
Need to update Cassandra Sink