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 2022/08/29 17:19:59 UTC

[GitHub] [hudi] functicons commented on issue #6514: [SUPPORT] Creating Hudi table with SparkSQL fails with FileNotFoundException

functicons commented on issue #6514:
URL: https://github.com/apache/hudi/issues/6514#issuecomment-1230608899

   > try to set spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension
   
   I follow the [Hudi guide for Spark](https://hudi.apache.org/docs/quick-start-guide/). It says `spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension` is only needed for Spark 3.2+.
   
   ```
   # Spark 3.2
   spark-shell \
     --packages org.apache.hudi:hudi-spark3.2-bundle_2.12:0.12.0 \
     --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' \
     --conf 'spark.sql.catalog.spark_catalog=org.apache.spark.sql.hudi.catalog.HoodieCatalog' \
     --conf 'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension'
   
   # Spark 3.1
   spark-shell \
     --packages org.apache.hudi:hudi-spark3.1-bundle_2.12:0.12.0 \
     --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer'
   
   # Spark 2.4
   spark-shell \
     --packages org.apache.hudi:hudi-spark2.4-bundle_2.11:0.12.0 \
     --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer'
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org