首页 > 解决方案 > 使用 PCC 创建动态 GemFire 区域

问题描述

我正在通过 Pivotal Cloud Cache 1.3.1 使用 Pivotal GemFire 9.1.1,并在使用@EnableClusterConfigurationSDG 注释时遇到以下错误:

2018-11-17T16:30:35.279-05:00 [APP/PROC/WEB/0] [OUT] org.springframework.context.ApplicationContextException: Failed to start bean 'gemfireClusterSchemaObjectInitializer'; nested exception is org.apache.geode.cache.client.ServerOperationException: remote server on ac62ca98-0ec5-4a30-606b-1cc9(:8:loner):47710:a6159523:: The function is not registered for function id CreateRegionFunction
2018-11-17T16:30:35.279-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:184)

最后,我遇到了这篇文章 - https://github.com/spring-projects/spring-boot-data-geode/issues/15

是否有任何其他注释可以与Spring Boot 2+一起使用,这将帮助我动态创建 GemFire 区域?

谢谢!

标签: gemfirespring-data-gemfiregeode

解决方案


很不幸的是,不行; 目前没有其他方法可以使用 SDG/SBDG 将集群/服务器端配置从 Spring/GemFire 缓存客户端推送到在 PCF 中运行的 PCC 服务器集群。

现在这也是因为这个潜在的问题,SBDG问题 #16 -“使用 PCC 1.5 的 @EnableClusterConfiguration 将集群配置从客户端推送到服务器时,HTTP 客户端未进行身份验证。

目前,您必须使用PCC 提供的文档手动创建区域(和索引) 。

对于由此给您带来的任何不便或麻烦,我深表歉意。这将很快得到解决。

即使在使用Gfsh启动集群(服务器)时,这也适用于本地、非托管上下文。它只是在使用 PCC 的 PCF 中不起作用。

问候。


推荐阅读