gang ye
10/06/2023, 9:09 PMexception org.apache.spark.sql.connector.catalog.CatalogNotFoundException: Catalog 'lakefs' plugin class not found: spark.sql.catalog.lakefs is not defined
at org.apache.spark.sql.errors.QueryExecutionErrors$.catalogPluginClassNotFoundError(QueryExecutionErrors.scala:1904)
Any suggestion? Thanks!gang ye
10/06/2023, 9:10 PMconf.set("spark.jars.packages", "org.apache.iceberg:iceberg-spark-runtime-3.3_2.12:1.3.0,io.lakefs:lakefs-iceberg:v0.1.2,org.apache.hadoop:hadoop-aws:3.3.3,io.lakefs:hadoop-lakefs-assembly:0.1.13")
conf.set("spark.sql.catalog.lakefs", "org.apache.iceberg.spark.SparkCatalog")
conf.set("spark.sql.catalog.lakefs.catalog-impl", "io.lakefs.iceberg.LakeFSCatalog")
conf.set("spark.sql.catalog.lakefs.warehouse", f"<lakefs://quickstart>")
conf.set("spark.sql.catalog.lakefs.uri", "<http://127.0.0.1:8000>")
conf.set("spark.sql.defaultCatalog", "lakefs")
conf.set("spark.hadoop.fs.s3.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem")
conf.set("spark.hadoop.fs.s3a.endpoint", "<http://127.0.0.1:8000>")
conf.set("spark.hadoop.fs.s3a.access.key", "xxx")
conf.set("spark.hadoop.fs.s3a.secret.key", "xxx")
conf.set("spark.hadoop.fs.s3a.path.style.access", "true")
conf.set("spark.sql.catalog.lakefs.cache-enabled", "false")
Amit Kesarwani
10/06/2023, 9:24 PMv
here `io.lakefslakefs icebergv0.1.2`:
conf.set("spark.jars.packages", "org.apache.iceberg:iceberg-spark-runtime-3.3_2.12:1.3.0,io.lakefs:lakefs-iceberg:0.1.2,org.apache.hadoop:hadoop-aws:3.3.3,io.lakefs:hadoop-lakefs-assembly:0.1.13")
gang ye
10/06/2023, 9:25 PMgang ye
10/06/2023, 11:45 PMv
, it would throws error cannot find the jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Exception in thread "main" java.lang.RuntimeException: [unresolved dependency: io.lakefs#lakefs-iceberg;0.1.2: not found]
at org.apache.spark.deploy.SparkSubmitUtils$.resolveMavenCoordinates(SparkSubmit.scala:1537)
gang ye
10/06/2023, 11:47 PMv0.1.2
can be found in central artifact
:: resolving dependencies :: org.apache.spark#spark-submit-parent-1579771d-c966-4f4a-a52e-389072d95ac0;1.0
confs: [default]
found org.apache.iceberg#iceberg-spark-runtime-3.3_2.12;1.3.0 in central
found io.lakefs#lakefs-iceberg;v0.1.2 in central
gang ye
10/06/2023, 11:49 PMgang ye
10/06/2023, 11:51 PMAmit Kesarwani
10/06/2023, 11:57 PMgang ye
10/06/2023, 11:58 PMgang ye
10/07/2023, 12:14 AMAmit Kesarwani
10/07/2023, 12:16 AM