Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace下的json配置后,集群需要重启才生效 #11

Open
shengang opened this issue Jul 4, 2019 · 3 comments
Open

namespace下的json配置后,集群需要重启才生效 #11

shengang opened this issue Jul 4, 2019 · 3 comments

Comments

@shengang
Copy link

shengang commented Jul 4, 2019

hbase基于列式存储,如果hbase添加了几个字段,那对应的json也要做修改,并且需要重启presto才能生效。
比如,如果hbase新增了很多表,那presto对应的namespace添加完表信息后,也需要重启才能生效。
现在的问题不但只hbase-connector有这样的问题,其他的connector也会出现,能否添加完表配置信息,不需要重启presto就可以生效,因为新增表是很常见的操作。

@Crossoverrr
Copy link
Contributor

你好,我在实现的时候为了避免出现这样的问题,会在每次查询的时候都重新读取表的元数据json文件。
这样即使新增了表或者字段,都可以实现动态的加载,但前提是元数据文件要及时更新。

@shengang
Copy link
Author

shengang commented Aug 12, 2019 via email

@Crossoverrr
Copy link
Contributor

你好,这一个功能我们商业版和开源版从一开始就是这样设计和实现的,修改表字段不需要重启presto的。:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants