Apache Geode CacheServerException Region not found during key set request

前端 未结 1 346
失恋的感觉
失恋的感觉 2021-01-16 18:33

I am new to Geode, and have started the default locator and server according to Geode in 5 minutes and then the .Net client with which I am running

相关标签:
1条回答
  • 2021-01-16 19:12

    The error message is saying that the server couldn't find the region, not that the client couldn't connect to the server: Region named /exampleRegion was not found during key set request. Have you defined the exampleRegion on the server side?.

    If you're using the Cluster Configuration Service the easiest way to do so is through the GFSH commands, namely create region: gfsh create region --name=exampleRegion --type=REPLICATE.

    If you're configuring your members individually using the cache.xml file, the region can be configured as below:

    <?xml version="1.0" encoding="UTF-8"?>
    <cache
        xmlns="http://geode.apache.org/schema/cache"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd"
        version="1.0">
      <cache-server/>
      <region name="exampleRegion" refid="REPLICATE"/>
    </cache>
    

    I'm using REPLICATE for the sake of simplicity, but you should choose the type of region according to your use case. Hope this helps.

    0 讨论(0)
提交回复
热议问题