I am trying to read csv file which is stored in GCS using spark, I have a simple spark java project which does nothing but reading a csv. the following code are used in it.
SparkConf conf = new SparkConf().setMaster("local[*]").setAppName("Hello world");
SparkSession sparkSession = SparkSession.builder().config(conf).getOrCreate();
Dataset<Row> dataset = sparkSession.read().option("header", true).option("sep", "" + ",").option("delimiter", "\"").csv("gs://abc/WDC_age.csv");
but it throws an error which says:
Exception in thread "main" java.io.IOException: No FileSystem for scheme: gs
can anyone help me in this? I just want to read csv from GCS using spark.
Thanks In Advance :)