apache / kyuubi

Apache Kyuubi is a distributed and multi-tenant gateway to provide serverless SQL on data warehouses and lakehouses.
https://kyuubi.apache.org/
Apache License 2.0
2.07k stars 902 forks source link

[Bug] there is no such file or directory #5926

Open wxd5146 opened 9 months ago

wxd5146 commented 9 months ago

Code of Conduct

Search before asking

Describe the bug

Pre-Description: 1、run sql on spark engine 2、spark engine write and read from hive 3、create hive table as orc or parquet

when i execute sql like “insert overwrite table tpch.ods_tpch_lineitem_d_1 select distinct * from tpch.ods_tpch_lineitem_d;” i check the hdfs path,find that the kyuubi spark engine will delete the hdfs path and will create the path at the last dag stage image

but,there is a issue, if the sql run failed and do not reach the last stage,then the hdfs path of hive table will lost. when i close the spark session and open a new session, run sql “insert overwrite table tpch.ods_tpch_lineitem_d_1 select distinct * from tpch.ods_tpch_lineitem_d;” it will can not find the hdfs path and the task will failed.

Affects Version(s)

1.7.3/1.8.0

Kyuubi Server Log Output

No response

Kyuubi Engine Log Output

No response

Kyuubi Server Configurations

No response

Kyuubi Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

github-actions[bot] commented 9 months ago

Hello @wxd5146, Thanks for finding the time to report the issue! We really appreciate the community's efforts to improve Apache Kyuubi.

wxd5146 commented 9 months ago

the failed task log: ada5cd506ef152e2e76f5057823a4dd

pan3793 commented 9 months ago

It's a known issue of Spark, Kyuubi does not change anything.

wxd5146 commented 9 months ago

i use spark thriftserver,there is no this issue

wxd5146 commented 9 months ago

i use spark 3.3.2 and kybbui 1.7.3 or 1.8.0

pan3793 commented 9 months ago

have you compared the driver's log for Kyuubi and STS, both of them call spark.sql(xxx) to run queries, no additional actions.