Don't know why but this is how it has to be read:
**
import os
df = spark.read.option("multiline","true).json("file:/Workspace/Repos/metadata/json/CS.json)
**
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
All,
We added a repo from our AzureDevOps by Cloning the repository. However, when I try to access the json file in the spark dataframe it is failing with the below errors:
Has anyone got this error before?
I'm able to access the files by running
%sh ls -l /Workspace/Repos/meta-data/json/CS.json
Update: Turns out that issue seems to be with loading json file since I'm able to csv load data.
Don't know why but this is how it has to be read:
**
import os
df = spark.read.option("multiline","true).json("file:/Workspace/Repos/metadata/json/CS.json)
**