I am trying to configure SSL between Spark and Cassandra. Passing a local filepath for trustStore works, whereas passing HDFS filepath doesn't work. It throws an error as File Not Found, both in Yarn client and cluster mode.
sparkConf.set("spark.cassandra.connection.ssl.enabled", "true");
sparkConf.set("spark.cassandra.connection.ssl.trustStore.password", "password");
sparkConf.set("spark.cassandra.connection.ssl.trustStore.path", "jks file path");
Any idea why does it happen? The same file works through sc.textfile().
Exception:
About to save to Cassandra.16/07/22 08:56:55 ERROR org.apache.spark.streaming.scheduler.JobScheduler: Error running job streaming job 1469177810000 ms.0 
java.io.FileNotFoundException: hdfs:/abc/ssl.jks (No such file or directory) 
at java.io.FileInputStream.open0(Native Method) 
Thanks
Hema