Refer to the below command:
val input_df = sqlContext.read.format("csv").option("header", "true").option("delimiter",",").load("file.csv")
Hope this helps!
If you need to know more about Scala, join Spark course today and become the expert.
Check the reference code mentioned below:
def main(args: ...READ MORE
You can read your dataset from CSV ...READ MORE
You can use the following command. This ...READ MORE
Yes, you can go ahead and write ...READ MORE
Instead of spliting on '\n'. You should ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API
org.apache.hadoop.mapreduce is the ...READ MORE
You can create one directory in HDFS ...READ MORE
I found 2 links on github where ...READ MORE
Function Definition :
calling ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.