hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[SUPPORT] [BUG] SparkSQL Insert Into other catalog Error

Open Kyofin opened this issue 3 years ago • 6 comments
trafficstars

Tips before filing an issue

  • Have you gone through our FAQs?

  • Join the mailing list to engage in conversations and get faster support at [email protected].

  • If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced

A clear and concise description of the problem.

To Reproduce

Steps to reproduce the behavior:

I set a catalog named mysql using JdbcCatalog In spark , when i insert into mysql.tb1 , some error happen because hudi just like below. The hudi.SparkAdpter will affect image my spark-default.conf is : image

Expected behavior

A clear and concise description of what you expected to happen.

Environment Description

  • Hudi version : 0.11

  • Spark version : 3.2.1

  • Hive version : 2.3.5

  • Hadoop version : 2.7.3

  • Storage (HDFS/S3/GCS..) : HDFS

  • Running on Docker? (yes/no) : no

Additional context

Add any other context about the problem here.

Stacktrace

Add the stacktrace of the error.

Kyofin avatar Jul 27 '22 06:07 Kyofin

I use iceberg hadoop catalog named local and hudi using spark_catalog at same spark driver ,same error will happen

Kyofin avatar Jul 27 '22 06:07 Kyofin

@xiarixiaoyao @YannByron @XuQianJin-Stars @alexeykudinkin any of you can help here?

yihua avatar Jul 29 '22 00:07 yihua

@huzk8 please give the whole stack trace to help me address this. and maybe you should use the catalog.database.table format to insert into, not mysql.st which only have catalog and table i think.

YannByron avatar Jul 29 '22 03:07 YannByron

update: @yihua @huzk8 i can reproduce your case that only use catalog.table: image

but if use catalog.database.table, it will raise this error that need to be resolved by this ticket: https://issues.apache.org/jira/browse/HUDI-4503. image

YannByron avatar Jul 29 '22 07:07 YannByron

@huzk8 Can you please try the patch authored by @YannByron #6264

codope avatar Aug 01 '22 16:08 codope

update: @yihua @huzk8 i can reproduce your case that only use catalog.table: image

but if use catalog.database.table, it will raise this error that need to be resolved by this ticket: https://issues.apache.org/jira/browse/HUDI-4503. image

this is a warn log and I think insert into other catalog using three parts(catalogName.dbName.tableName) should work fine with the patch(https://github.com/apache/hudi/pull/5957)

leesf avatar Aug 02 '22 01:08 leesf

@huzk8 : do you have any updates on this regard

nsivabalan avatar Aug 27 '22 21:08 nsivabalan

@nsivabalan this will be addressed by https://github.com/apache/hudi/pull/6264

alexeykudinkin avatar Aug 29 '22 20:08 alexeykudinkin

@huzk8 : can you give https://github.com/apache/hudi/pull/6264 and let us know if the issue is resolved.

nsivabalan avatar Sep 12 '22 22:09 nsivabalan

@nsivabalan let's close this one. We have HUDI-4503 to track.

alexeykudinkin avatar Sep 27 '22 16:09 alexeykudinkin