Typo, I meant you should start the “server” with properties file containing the 
region definition, not locator.

Thanks
Shing

From: Fan, Shing
Sent: June 14, 17 12:31 PM
To: [email protected]
Subject: RE: gfsh gemfire.properties

Hi Nan,

I’m not an expert on this, but had previously run into similar issue during my 
initial trial and error (I find that there is not enough/easy-to-follow step by 
step guide to aid newbies).  From your Gfsh command, you should specify the 
properties file when you start the locator.  I’ve also attached my setup for 
your reference in case it is of any use to you.

startupScript.bat is batch file that I created to help me start the server.  
You will then trigger another script that will launch the locator and server.

Thanks,
Shing



From: Xu, Nan [mailto:[email protected]]
Sent: June 14, 17 12:24 PM
To: [email protected]<mailto:[email protected]>
Subject: gfsh gemfire.properties

For gfsh to start locator with all regions configuration, there is 
cache-xml-file properties, I point this to my cache.xml and start locator, 
server as

cache.xml

<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<http://geode.apache.org/schema/cache%20http:/geode.apache.org/schema/cache/cache-1.0.xsd>"
    version="1.0">
  <cache-server port="40404" />
  <region name="region3">
    <region-attributes refid="PARTITION"/>
  </region>
</cache>

Locator.properties
locators=centos[10334]
remote-locators=ubuntu1[10334],ubuntu2[10334]
cache-xml-file=cache.xml
conserve-sockets=false

Gfsh start locator --name=locator3 --properties-file=locator.properties
Gfsh start server –name=server3


And I don’t see my region, please suggest..

One more thing is I set the conserve-sockets=false and let locator load this, 
will server pick this setting?

Thanks,
Nan
________________________________
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer. If you are not the intended 
recipient, please delete this message.
_______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is 
addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited. If you receive this e-mail in 
error, please advise immediately and delete the original message. 
This message may have been altered without your or our knowledge and the sender 
does not accept any liability for any errors or omissions in the message.

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits 
et obligations qui s'y rapportent. 
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il 
contient par une personne autre que le (les) destinataire(s) désigné(s) est 
interdite.
Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par 
retour de courriel ou par un autre moyen.

Reply via email to