37989/error-using-double-map
I am trying to implement and using the following code:
var day2=List(Monday,Tue,Wednesday,Thur) var day21=day2.map(_.length) var day22=day2.map(x=>(x,x.length)) var day222 = day22.map((x,y) =>(x,y*y))
But I am getting this error:
You have forgotten to mention the case parameter. Change this:
var day222 = day22.map((x,y) =>(x,y*y))
to this:
var day222 = day22.map {case (x,y) =>(x,y*y)}
DataFrames and SparkSQL performed almost about the ...READ MORE
Firstly, it's the In-memory computation, if the file ...READ MORE
I guess you need provide this kafka.bootstrap.servers ...READ MORE
You have to use the comparison operator ...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
Hi, You can create one directory in HDFS ...READ MORE
In your case there is no difference ...READ MORE
You have to use "===" instead of ...READ MORE
For avro, you need to download and ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.