I am writing a code in Spring framework with stratio. It is ready records from aeropsike, perform some spark analysis into it and convert the resulted DataFrame to RDD. During that activity, I am facing this issue: AerospikeClient is not serialized. How to serialize it?
Error:
object not serializable (class: com.aerospike.client.AerospikeClient, value: com.aerospike.client.AerospikeClient@1c62d2ad)