risey-yimu commented on issue #13781:
URL: https://github.com/apache/iceberg/issues/13781#issuecomment-3177773091

   > maybe it is this configuration?
   > 
   > > .set("spark.hadoop.fs.s3a.endpoint", ls0Config.jdbcCatalogS3Endpoint)
   
   
   I changed the configuration to this,but still got this error.Is there 
anything wrong with these configurations?
   ```
   sparkConf
         .set("spark.ui.enabled", "true")
         .set("spark.task.maxFailures", ls0Config.sparkTaskMaxFailures)
         .set("spark.rpc.message.maxSize", ls0Config.sparkRpcMessageMaxSize)
         .set("spark.sql.iceberg.handle-timestamp-without-timezone", "true")
   
   
         .set("spark.hadoop.fs.s3a.access.key",ls0Config.jdbcCatalogS3AccessKey)
         .set("spark.hadoop.fs.s3a.secret.key", 
ls0Config.jdbcCatalogS3SecretKey)
         .set("spark.hadoop.fs.s3a.endpoint", "http://10.0.162.28:9000";)
         .set("spark.hadoop.fs.s3a.path.style.access", "true")
         .set("spark.hadoop.fs.s3a.region", "cn-east-1")
         .set("spark.hadoop.fs.s3a.impl", 
"org.apache.hadoop.fs.s3a.S3AFileSystem")
         .set("spark.hadoop.fs.s3.impl", 
"org.apache.hadoop.fs.s3a.S3AFileSystem")
         
.set("spark.hadoop.fs.AbstractFileSystem.s3.impl","org.apache.hadoop.fs.s3a.S3A")
   
   
         .set("spark.sql.extensions", 
"org.projectnessie.spark.extensions.NessieSparkSessionExtensions,org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions")
         .set(s"spark.sql.catalog.nessie", 
"org.apache.iceberg.spark.SparkCatalog")
         .set(s"spark.sql.catalog.nessie.type", "rest")
         .set(s"spark.sql.catalog.nessie.uri", 
"http://10.0.160.110:31107/iceberg/main";)
   
         .set(s"spark.sql.catalog.nessie.warehouse", "s3://warehouse/")
         .set(s"spark.sql.catalog.nessie.io-impl", 
"org.apache.iceberg.aws.s3.S3FileIO")
         .set(s"spark.sql.catalog.nessie.s3.endpoint", 
"http://10.0.162.28:9000";)
         .set(s"spark.sql.catalog.nessie.s3.access-key-id", 
ls0Config.jdbcCatalogS3AccessKey)
         .set(s"spark.sql.catalog.nessie.s3.secret-access-key", 
ls0Config.jdbcCatalogS3SecretKey)
         .set(s"spark.sql.catalog.nessie.client.region", 
ls0Config.jdbcCatalogClientRegion)
         .set(s"spark.sql.catalogImplementation", "in-memory")
   
         .set(s"spark.sql.catalog.jdbc", 
"org.apache.iceberg.spark.SparkCatalog")
         .set(s"spark.sql.catalog.jdbc.type", "jdbc")
         .set(s"spark.sql.catalog.jdbc.uri", ls0Config.jdbcCatalogJDBCURL)
         .set(s"spark.sql.catalog.jdbc.jdbc.user", 
ls0Config.jdbcCatalogJDBCUser)
         .set(s"spark.sql.catalog.jdbc.jdbc.password", 
ls0Config.jdbcCatalogJDBCPwd)
   
         .set(s"spark.sql.catalog.jdbc.warehouse", "s3://warehouse/")
         .set(s"spark.sql.catalog.jdbc.io-impl", 
"org.apache.iceberg.aws.s3.S3FileIO")
         .set(s"spark.sql.catalog.jdbc.s3.endpoint", "http://10.0.162.28:9000";)
         .set(s"spark.sql.catalog.jdbc.s3.access-key-id", 
ls0Config.jdbcCatalogS3AccessKey)
         .set(s"spark.sql.catalog.jdbc.s3.secret-access-key", 
ls0Config.jdbcCatalogS3SecretKey)
         .set(s"spark.sql.catalog.jdbc.client.region", 
ls0Config.jdbcCatalogClientRegion)
   
         .set("spark.sql.defaultCatalog", "nessie")
   ``` 
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to