gpt4 book ai didi

hadoop - 如果在 impala statestore 关闭时执行 DDL,为什么 Impala 查询会失败?

转载 作者:可可西里 更新时间:2023-11-01 16:34:59 27 4
gpt4 key购买 nike

在 impala 的官方文档中 here , statestore 组件有一条语句:

If you issue a DDL statement while the statestore is down, the queries that access the new object the DDL created will fail.

如果我错了请纠正我,但通过 Impala SQL 进行的元数据更改会从 Impala 目录服务传播到 Impala 守护进程。那为什么statestore挂了,通过DDL生成的新对象查询会失败呢?

最佳答案

只是您理解中的一个小修正,文档如下所示

The Impala component known as the catalog service relays the metadata changes from Impala SQL statements to all the Impala daemons in a cluster.

所以基本上它通过 StateStore 将元数据更改中继到 Impala 守护程序。您还将在文档中看到以下内容,

Because the statestore's purpose is to help when things go wrong and to broadcast metadata to coordinators

因此,任何元数据更改都由目录服务通过 Statestore 服务中继到 Impala 守护进程。

简而言之,当 Statestore 启动并运行时,Impala 守护进程和 Statestore 始终处于连接状态。 Statestore 负责

  • 监控所有 Impala 守护进程并让其他 Impala 守护进程知道是否在其中一个守护程序上发现任何健康问题(例如守护程序关闭)。

  • 它在查询时将元数据更改广播到 Impala 守护进程在 Invalidate Metadata 期间执行。

希望对您有所帮助!

关于hadoop - 如果在 impala statestore 关闭时执行 DDL,为什么 Impala 查询会失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57051999/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com