I am new to apache Spark, and I want to implement the Alternating Least Squares algorithm. The data set is stored in a csv file in the format: *Name,Value1,Value2*.
When I read the csv file, I get *java.lang.NumberFormatException.forInputString* error because the Rating class needs the parameters in the format: *(user: Int, product: Int, rating: Double)* and the first column of my file contains *Name*. Please suggest me a way to overcome this issue.