pyspark.sql.utils.AnalysisException: 'Unable to infer schema for CSV. It must be specified manually.;'
Solution 1:
Please verify that:
- Is it a valid CSV?If so, does it have header?
- File is not corrupted
- Maybe the schema in CSV is not correct
- Maybe the delimiter is not comma, if it is not comma, you need to specify the delimiter.