LuPan2015 edited a comment on issue #4474:
URL: https://github.com/apache/hudi/issues/4474#issuecomment-1002882980
I tried it, but the following exception was still thrown。
```
spark/bin/spark-sql --packages
org.apache.hadoop:hadoop-aws:3.2.0,com.amazonaws:aws-java-sdk:1.12.22 --jars
hudi-spark3-bundle_2.12-0.11.0-SNAPSHOT.jar \
--conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' \
--conf
'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension'
```
```
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use
setLogLevel(newLevel).
21/12/30 13:46:32 WARN HiveConf: HiveConf of name hive.stats.jdbc.timeout
does not exist
21/12/30 13:46:32 WARN HiveConf: HiveConf of name hive.stats.retries.wait
does not exist
21/12/30 13:46:34 WARN ObjectStore: Version information not found in
metastore. hive.metastore.schema.verification is not enabled so recording the
schema version 2.3.0
21/12/30 13:46:34 WARN ObjectStore: setMetaStoreSchemaVersion called but
recording version is disabled: version = 2.3.0, comment = Set by MetaStore
[email protected]
Spark master: local[*], Application Id: local-1640843189215
spark-sql> create table default.hudi_mor_s32 (
> id bigint,
> name string,
> dt string
> ) using hudi
> tblproperties (
> type = 'mor',
> primaryKey = 'id'
> )
> partitioned by (dt)
> location 's3a://iceberg-bucket/hudi-warehouse/';
ANTLR Tool version 4.7 used for code generation does not match the current
runtime version 4.8ANTLR Tool version 4.7 used for code generation does not
match the current runtime version 4.821/12/30 13:46:45 WARN MetricsConfig:
Cannot locate configuration: tried
hadoop-metrics2-s3a-file-system.properties,hadoop-metrics2.properties
Error in query: Specified schema in create table statement is not equal to
the table schema.You should not specify the schema for an exist table:
`default`.`hudi_mor_s32`
```
--
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]