Too many arguments for method map spark
possible cause: maybe a semicolon is missing before `value as'? :79: error: value as is not a member of .RDD]
![too many arguments for method map spark too many arguments for method map spark](https://venturebeat.com/wp-content/uploads/2020/05/deserted-islands-devops.png)
Val iDFWithSchema = sc.textfile("/FileStore/tables/iinohuv31470635573559/inspections_plus.txt") Val testiDF = spark.sql("Select * from inspections") Val iDFWithSchema = sqlContext.applySchema(irowRDD,ischema) StructField("inspectionType",StringType,true)))
![too many arguments for method map spark too many arguments for method map spark](https://venturebeat.com/wp-content/uploads/2019/06/shopify-multi-language.png)
StructField("business_id",IntegerType, true), Val iDFWithSchema = spark.createDataFrame(irowRDD,ischema) map(attributes => Row(attributes(0),attributes(1),attributes(2),attributes(3))) FileStore/tables/x99yf7vf1470616562144/violations_plus.txtĬase class Business(business_id:Integer ,name:String, address:String, city:String, postal_code:String, latitude:Double,longituge: Double, phone_number: String, tax_code: String, business_certificate: String, application_date: String, owner_name: String, owner_address: String, owner_city: String, owner_state: String, owner_zip: String)Ĭase class Inspection(business_id:String ,score:String, date:String, inspection:String)
![too many arguments for method map spark too many arguments for method map spark](https://venturebeat.com/wp-content/uploads/2019/05/vr-gaze-tracking.png)
For implicit conversions from RDDs to DataFrames