VMware GemFire

 View Only

 pivotal gemfire redis Adapter regiontype cannot persistent

fan jielong's profile image
fan jielong posted Dec 19, 2019 01:33 PM

I want to create GemfireRedisServer what the regiontype is REPLICATE_PERSISTENT. According to the documentation:

gfsh> start server --name=server1 --redis-bind-address=localhost \

 --redis-port=11211 --J=-Dgemfireredis.regiontype=PARTITION_PERSISTENT,

 I use the command, but it is not successful. An error is :

gfsh>start locator --name=locator1 Starting a Geode Locator in /home/pivotal-gemfire-9.9.0/tmp/locator1... ...... Locator in /home/pivotal-gemfire-9.9.0/tmp/locator1 on node5[10334] as locator1 is currently online. Process ID: 30357 Uptime: 7 seconds Geode Version: 9.9.0 Java Version: 1.8.0_144 Log File: /home/pivotal-gemfire-9.9.0/tmp/locator1/locator1.log JVM Arguments: -Dgemfire.enable-cluster-configuration=true -Dgemfire.load-cluster-configuration-from-dir=false -Dgemfire.launcher.registerSignalHandlers=true -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 Class-Path: /home/pivotal-gemfire-9.9.0/lib/geode-core-9.9.0.jar:/home/pivotal-gemfire-9.9.0/lib/geode-dependencies.jar   Successfully connected to: JMX Manager [host=node5, port=1099]   Cluster configuration service is up and running.   gfsh>start server --name=redis1 --redis-bind-address=192.168.16.36 --redis-port=6379 --J=-Dgemfireredis.regiontype=REPLICATE_PERSISTENT Starting a Geode Server in /home/pivotal-gemfire-9.9.0/tmp/redis1... The Cache Server process terminated unexpectedly with exit status 1. Please refer to the log file in /home/pivotal-gemfire-9.9.0/tmp/redis1 for full details.   Exception in thread "main" java.lang.NullPointerException   at org.apache.geode.internal.cache.LocalRegion.findDiskStore(LocalRegion.java:7436)   at org.apache.geode.internal.cache.LocalRegion.<init>(LocalRegion.java:595)   at org.apache.geode.internal.cache.LocalRegion.<init>(LocalRegion.java:541)   at org.apache.geode.internal.cache.LocalRegion.<init>(LocalRegion.java:535)   at org.apache.geode.internal.cache.DistributedRegion.<init>(DistributedRegion.java:201)   at org.apache.geode.internal.cache.GemFireCacheImpl.createVMRegion(GemFireCacheImpl.java:3009)   at org.apache.geode.internal.cache.GemFireCacheImpl.basicCreateRegion(GemFireCacheImpl.java:2936)   at org.apache.geode.internal.cache.GemFireCacheImpl.createRegion(GemFireCacheImpl.java:2923)   at org.apache.geode.cache.RegionFactory.create(RegionFactory.java:755)   at org.apache.geode.redis.GeodeRedisServer.initializeRedis(GeodeRedisServer.java:423)   at org.apache.geode.redis.GeodeRedisServer.start(GeodeRedisServer.java:379)   at org.apache.geode.redis.internal.GeodeRedisService.startRedisServer(GeodeRedisService.java:59)   at org.apache.geode.redis.internal.GeodeRedisService.init(GeodeRedisService.java:35)   at org.apache.geode.internal.cache.GemFireCacheImpl.initializeServices(GemFireCacheImpl.java:1289)   at org.apache.geode.internal.cache.GemFireCacheImpl.initialize(GemFireCacheImpl.java:1241)   at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:219)   at org.apache.geode.internal.cache.InternalCacheBuilder.create(InternalCacheBuilder.java:171)   at org.apache.geode.cache.CacheFactory.create(CacheFactory.java:142)   at org.apache.geode.distributed.internal.DefaultServerLauncherCacheProvider.createCache(DefaultServerLauncherCacheProvider.java:52)   at org.apache.geode.distributed.ServerLauncher.createCache(ServerLauncher.java:887)   at org.apache.geode.distributed.ServerLauncher.start(ServerLauncher.java:803)   at org.apache.geode.distributed.ServerLauncher.run(ServerLauncher.java:732)   at org.apache.geode.distributed.ServerLauncher.main(ServerLauncher.java:251)

 

but when i change the the regiontype is REPLICATE, success.

And I want to make my redis service highly available, now i can create redis adapter service, but once it hangs, it is not available. Is there any way to create a redis adapter cluster? I haven't found an available method in the official documentation, I hope someone can help me, thank you very much。As a side note, the version I tested was 9.9.0.

 

Geet Rawat's profile image
Broadcom Employee Geet Rawat

Hello Fan

 

Thank you for contacting Pivotal Support Community. Redis Adapter is an experimental feature which unfortunately, shows from your case, does not work for "Persistent" region types.

 

 

Kind Regards

 

Geet Rawat | Customer Engineer

support.pivotal.io | Mon-Fri 8.30am to 4.30pm Eastern Time