leesf commented on issue #5488:
URL: https://github.com/apache/hudi/issues/5488#issuecomment-1132552145
> nope, sadly adding bellow configs don't solve the issue
>
> ```
> sparkConf.set(
> "spark.sql.catalog.spark_catalog",
"org.apache.spark.sql.hudi.catalog.HoodieCatalog");
> sparkConf.set("spark.sql.extensions",
"org.apache.spark.sql.hudi.HoodieSparkSessionExtension");
> ```
@parisni I think you are not set the config correctly, please use the
following code
```
SparkSession.builder().config("spark.sql.catalog.spark_catalog",
"org.apache.spark.sql.hudi.catalog.HoodieCatalog").config("spark.sql.extensions",
"org.apache.spark.sql.hudi.HoodieSparkSessionExtension").getOrCreate()
```
or
pyspark --packages org.apache.hudi:hudi-spark3.2-bundle_2.12:0.11.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'
use this command to open a new spark shell
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]