gemfire - 使用 PCC 创建动态 GemFire 区域
问题描述
我正在通过 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+一起使用,这将帮助我动态创建 GemFire 区域?
谢谢!
解决方案
很不幸的是,不行; 目前没有其他方法可以使用 SDG/SBDG 将集群/服务器端配置从 Spring/GemFire 缓存客户端推送到在 PCF 中运行的 PCC 服务器集群。
现在这也是因为这个潜在的问题,SBDG问题 #16 -“使用 PCC 1.5 的 @EnableClusterConfiguration 将集群配置从客户端推送到服务器时,HTTP 客户端未进行身份验证。 ”
目前,您必须使用PCC 提供的文档手动创建区域(和索引) 。
对于由此给您带来的任何不便或麻烦,我深表歉意。这将很快得到解决。
即使在使用Gfsh启动集群(服务器)时,这也适用于本地、非托管上下文。它只是在使用 PCC 的 PCF 中不起作用。
问候。
推荐阅读
- chef-infra - NoMethodError ------------- nil:NilClass 的未定义方法 `[]'
- python - 如何创建一个程序来计算两个数字的总和?
- spring - RestTemplate 请求失败时如何打印详细信息状态?
- node.js - 在我的服务器上运行的 Elasticsearch 要求
- c++ - 如何在 GET 请求中包含 ESP8266 mac 作为 arg?
- javascript - 如何以随机时间间隔进行倒计时,停在零?
- yii2 - 如何在 YII restful GET api 上实现过滤?
- error-handling - How do I fix "may not be safely transferred across an unwind boundary" for VaList?
- php - 如何传入建立数据库();进入 PHP 中的函数
- c++ - 如何在 C++ 中从头到尾写入文件