Saturday, December 24, 2016

Quick Gemfire Setup

In this blog, we will walk through Gemfire setup and issues encountered  in running on production.

Steps to install in local sandbox:
-Download Pivotal_GemFire_820_b17919_Linux
-Search for any process name with locator running , kill it
-Start gfsh client
  gfsh
-Add locator
start locator --name=locatorTest

Configure pdx serialization rule
configure pdx --auto-serializable-classes=com\.thetechiehouse\.blogspot\.services\.sampleapp\.vo\..* --read-serialized=true --disk-store
Start server:
start server --name=server1 --classpath=<absolutepath>sample-app-service.jar --server-port=40411

Create a replicated, persistent region:
create region --name=region1 --type=PARTITION_PERSISTENT
List regions:
list regions

To view specific about regions:
describe region --name= region1

List members of your cluster:
list members

-Start gemfire pulse monitoring tool:
start pulse

Issue debugging on Production :

Important commands:
-show missing-disk-storeslist members
-list regions

-query --query= “select * from /regionForSampleService

Issue:
Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Exception in thread "main" java.lang.NullPointerException
    at com.gemstone.gemfire.internal.InternalDataSerializer.readPdxSerializable(InternalDataSerializer.java:3157)
    at com.gemstone.gemfire.internal.InternalDataSerializer.basicReadObject(InternalDataSerializer.java:2979)
    at com.gemstone.gemfire.DataSerializer.readObject(DataSerializer.java:3210)

Solution :-Delete all locator and server related folders, if you are already having.

More:http://gemfire.docs.pivotal.io/gemfire/getting_started/15_minute_quickstart_gfsh.html


No comments:

Post a Comment