gpt4 book ai didi

java - 当您不关闭 HBase 表时会发生什么?

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:28:35 25 4
gpt4 key购买 nike

我正在考虑在我的应用程序启动时创建一个 HBase 表,并在我的应用程序运行时一直保持打开状态。我的应用程序可能会无限期地运行。

如果我从不关闭 HBase 表会怎样?

  • 连接需要重新初始化之前可以打开/空闲的最长时间是否有限制?
  • 如果系统崩溃,如何关闭连接?

我有HBase 权威指南,但我没有在其中找到我正在寻找的信息。如果有任何在线引用资料,请提供。

最佳答案

这摘自“HBase in Action”第 25 页:

"Closing the table when you’re finished with it allows the underlying connection resources to be returned to the pool."

关于java - 当您不关闭 HBase 表时会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17956571/

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