使用PCC动态创建GemFire区域

时间:2018-11-17 22:06:02

标签: gemfire spring-data-gemfire geode

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

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 + 还可以使用其他注释吗?

谢谢!

1 个答案:

答案 0 :(得分:2)

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

这也是由于这个基本问题,SBDG Issue #16-“ 在使用PCC 1.5的@EnableClusterConfiguration将HTTP客户端上的群集配置从客户端推送到服务器时,HTTP客户端不进行身份验证。

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

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

即使在使用 Gfsh 启动群集(服务器)时,它也可以在本地非托管上下文中工作。但是,它仍然不能在使用PCC的PCF中工作。

致谢。