<console>:40: error: value join is not a member of Unit

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

<console>:40: error: value join is not a member of Unit

Bhupendra Mishra
Hi All,
Need your help with subjected error
 
following code is executing and  getting error

cala> val join = bat_first_won.join(total_matches_per_venue).map(x=>(x._1,(x._2._1*100/x._2._2))).map(item => item.swap).sortByKey(false).collect.foreach(println)
<console>:40: error: value join is not a member of Unit
         val join = bat_first_won.join(total_matches_per_venue).map(x=>(x._1,(x._2._1*100/x._2._2))).map(item => item.swap).sortByKey(false).collect.foreach(println)

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: <console>:40: error: value join is not a member of Unit

John Compitello
This is not a mailing list to ask for help with your code not working. This mailing list is for Spark Developers. This question would be a better fit for StackOverflow, or for the user mailing list [hidden email] . 

Best, 
John

On Apr 19, 2017, at 1:43 PM, Bhupendra Mishra <[hidden email]> wrote:

Hi All,
Need your help with subjected error
 
following code is executing and  getting error

cala> val join = bat_first_won.join(total_matches_per_venue).map(x=>(x._1,(x._2._1*100/x._2._2))).map(item => item.swap).sortByKey(false).collect.foreach(println)
<console>:40: error: value join is not a member of Unit
         val join = bat_first_won.join(total_matches_per_venue).map(x=>(x._1,(x._2._1*100/x._2._2))).map(item => item.swap).sortByKey(false).collect.foreach(println)


Loading...