Path doesn't exists error

Hi Team,

I am not able to access the /opt/gen_logs/log/access.log when accessing from spark.read.text ("/opt/gen_logs/log/access.log").
Its showing path doesn’t exists.
PFA.

@Aniruddha_Kadam To read local file system use below command:

val data = spark.read.text(“file:///opt/gen_logs/logs/access.log”)

this helps.
Thanks annapurna