zherenyu831 edited a comment on issue #2041:
URL: https://github.com/apache/hudi/issues/2041#issuecomment-682467983
@bvaradar
I got the reason
We are using EMR 6.0, in the spark-sql_2.12.2.4.4
The interface of PartitionedFile is different from official one
EMR
```
public PartitionedFile(InternalRow partitionValues, String filePath, long
start, long length, String[] locations, FileData data)
```
Offcial
```
public PartitionedFile(InternalRow partitionValues, String filePath, long
start, long length, String[] locations)
```
work around is
```
ShadeRule.rename("org.apache.spark.sql.execution.datasources.**" ->
"local.spark.@1")
.inLibrary(
"org.apache.hudi" % "hudi-spark-bundle_2.12" % "0.6.0",
"org.apache.spark" % "spark-sql_2.12" % "2.4.4")
.inProject
```
or replace spark-sql_2.12-2.4.4 with official one on emr
```
cd /usr/lib/spark/jars/
sudo mv spark-sql_2.12-2.4.4.jar spark-sql_2.12-2.4.4.jar.1
sudo wget
https://repo1.maven.org/maven2/org/apache/spark/spark-sql_2.12/2.4.4/spark-sql_2.12-2.4.4.jar
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]