You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/08/31 00:41:27 UTC

[GitHub] [hudi] zherenyu831 edited a comment on issue #2041: [SUPPORT] EMR 6.0 hudi-spark-bundle 0.6.0 is not able to query data, two problems

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 org.apache.spark.sql.execution.datasources.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:
users@infra.apache.org