You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by "Xu, Nan" <nx...@baml.com> on 2017/06/14 16:23:53 UTC

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"
    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.

RE: gfsh gemfire.properties

Posted by "Fan, Shing" <Sh...@rbccm.com>.
Good stuff ☺

From: Xu, Nan [mailto:nxu2@baml.com]
Sent: June 14, 17 3:29 PM
To: user@geode.apache.org
Subject: RE: gfsh gemfire.properties

Please ignore, I think I configure it wrong. It works.

From: Xu, Nan
Sent: Wednesday, June 14, 2017 2:25 PM
To: user@geode.apache.org<ma...@geode.apache.org>
Subject: RE: gfsh gemfire.properties

I think if you load the cache.xml file by server, then if other server join the cluster, the new joiner won’t automatically get the regions, do I miss something here?

I want to use the cluster configuration service to let other new joined server get the configuration info.so if I use the gfsh create the region, then new server will get the region, but if I use the start server –cache-xml-file=xxxx, then whatever define in cache.xml is only belong to that server itself. How do I make this cache.xml info available to all servers?

Thanks,
Nan

From: Xu, Nan
Sent: Wednesday, June 14, 2017 12:12 PM
To: user@geode.apache.org<ma...@geode.apache.org>
Subject: RE: gfsh gemfire.properties

thanks

From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: Wednesday, June 14, 2017 11:37 AM
To: 'user@geode.apache.org' <us...@geode.apache.org>>
Subject: RE: gfsh gemfire.properties

In case attachment is not allowed, here is my script.  Hope it helps.

===============
startupScript.bat
===============
gfsh run --file=referenceStartScript.gfsh

===============
referenceStartScript.gfsh
===============
start locator --port=10334 --locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]
start server --properties-file=.\serverLocator.properties --mcast-port=0 --server-port=0 --cache-xml-file=.\serverCache.xml

===============
serverLocator.properties
===============
locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]

===============
serverCache.xml
===============
Region definition goes here!


From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: June 14, 17 12:33 PM
To: 'user@geode.apache.org'
Subject: RE: gfsh gemfire.properties

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: user@geode.apache.org<ma...@geode.apache.org>
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:nxu2@baml.com]
Sent: June 14, 17 12:24 PM
To: user@geode.apache.org<ma...@geode.apache.org>
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<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=1Xx8mLS_UYZwIfu12dMKgXEwC0RCVaFPkj8RHNnQ-WY&e=>"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=0rIo4GgCwPglbtEkuWV60JMGxOStqOFaF2z5UFiqnKg&e=>"
    xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache-2520http-3A_geode.apache.org_schema_cache_cache-2D1.0.xsd&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=CfLu3KLpQIk9Sawo32w9IC5NqBsKsBeHv1T06BnHRw8&e=>"
    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.

________________________________
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 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 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.

RE: gfsh gemfire.properties

Posted by "Xu, Nan" <nx...@baml.com>.
Please ignore, I think I configure it wrong. It works.

From: Xu, Nan
Sent: Wednesday, June 14, 2017 2:25 PM
To: user@geode.apache.org
Subject: RE: gfsh gemfire.properties

I think if you load the cache.xml file by server, then if other server join the cluster, the new joiner won’t automatically get the regions, do I miss something here?

I want to use the cluster configuration service to let other new joined server get the configuration info.so if I use the gfsh create the region, then new server will get the region, but if I use the start server –cache-xml-file=xxxx, then whatever define in cache.xml is only belong to that server itself. How do I make this cache.xml info available to all servers?

Thanks,
Nan

From: Xu, Nan
Sent: Wednesday, June 14, 2017 12:12 PM
To: user@geode.apache.org<ma...@geode.apache.org>
Subject: RE: gfsh gemfire.properties

thanks

From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: Wednesday, June 14, 2017 11:37 AM
To: 'user@geode.apache.org' <us...@geode.apache.org>>
Subject: RE: gfsh gemfire.properties

In case attachment is not allowed, here is my script.  Hope it helps.

===============
startupScript.bat
===============
gfsh run --file=referenceStartScript.gfsh

===============
referenceStartScript.gfsh
===============
start locator --port=10334 --locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]
start server --properties-file=.\serverLocator.properties --mcast-port=0 --server-port=0 --cache-xml-file=.\serverCache.xml

===============
serverLocator.properties
===============
locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]

===============
serverCache.xml
===============
Region definition goes here!


From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: June 14, 17 12:33 PM
To: 'user@geode.apache.org'
Subject: RE: gfsh gemfire.properties

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: user@geode.apache.org<ma...@geode.apache.org>
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:nxu2@baml.com]
Sent: June 14, 17 12:24 PM
To: user@geode.apache.org<ma...@geode.apache.org>
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<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=1Xx8mLS_UYZwIfu12dMKgXEwC0RCVaFPkj8RHNnQ-WY&e=>"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=0rIo4GgCwPglbtEkuWV60JMGxOStqOFaF2z5UFiqnKg&e=>"
    xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache-2520http-3A_geode.apache.org_schema_cache_cache-2D1.0.xsd&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=CfLu3KLpQIk9Sawo32w9IC5NqBsKsBeHv1T06BnHRw8&e=>"
    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.

________________________________
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 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 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.

RE: gfsh gemfire.properties

Posted by "Xu, Nan" <nx...@baml.com>.
I think if you load the cache.xml file by server, then if other server join the cluster, the new joiner won’t automatically get the regions, do I miss something here?

I want to use the cluster configuration service to let other new joined server get the configuration info.so if I use the gfsh create the region, then new server will get the region, but if I use the start server –cache-xml-file=xxxx, then whatever define in cache.xml is only belong to that server itself. How do I make this cache.xml info available to all servers?

Thanks,
Nan

From: Xu, Nan
Sent: Wednesday, June 14, 2017 12:12 PM
To: user@geode.apache.org
Subject: RE: gfsh gemfire.properties

thanks

From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: Wednesday, June 14, 2017 11:37 AM
To: 'user@geode.apache.org' <us...@geode.apache.org>>
Subject: RE: gfsh gemfire.properties

In case attachment is not allowed, here is my script.  Hope it helps.

===============
startupScript.bat
===============
gfsh run --file=referenceStartScript.gfsh

===============
referenceStartScript.gfsh
===============
start locator --port=10334 --locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]
start server --properties-file=.\serverLocator.properties --mcast-port=0 --server-port=0 --cache-xml-file=.\serverCache.xml

===============
serverLocator.properties
===============
locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]

===============
serverCache.xml
===============
Region definition goes here!


From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: June 14, 17 12:33 PM
To: 'user@geode.apache.org'
Subject: RE: gfsh gemfire.properties

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: user@geode.apache.org<ma...@geode.apache.org>
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:nxu2@baml.com]
Sent: June 14, 17 12:24 PM
To: user@geode.apache.org<ma...@geode.apache.org>
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<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=1Xx8mLS_UYZwIfu12dMKgXEwC0RCVaFPkj8RHNnQ-WY&e=>"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=0rIo4GgCwPglbtEkuWV60JMGxOStqOFaF2z5UFiqnKg&e=>"
    xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache-2520http-3A_geode.apache.org_schema_cache_cache-2D1.0.xsd&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=CfLu3KLpQIk9Sawo32w9IC5NqBsKsBeHv1T06BnHRw8&e=>"
    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.

________________________________
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 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.

RE: gfsh gemfire.properties

Posted by "Xu, Nan" <nx...@baml.com>.
thanks

From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: Wednesday, June 14, 2017 11:37 AM
To: 'user@geode.apache.org' <us...@geode.apache.org>
Subject: RE: gfsh gemfire.properties

In case attachment is not allowed, here is my script.  Hope it helps.

===============
startupScript.bat
===============
gfsh run --file=referenceStartScript.gfsh

===============
referenceStartScript.gfsh
===============
start locator --port=10334 --locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]
start server --properties-file=.\serverLocator.properties --mcast-port=0 --server-port=0 --cache-xml-file=.\serverCache.xml

===============
serverLocator.properties
===============
locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]

===============
serverCache.xml
===============
Region definition goes here!


From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: June 14, 17 12:33 PM
To: 'user@geode.apache.org'
Subject: RE: gfsh gemfire.properties

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: user@geode.apache.org<ma...@geode.apache.org>
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:nxu2@baml.com]
Sent: June 14, 17 12:24 PM
To: user@geode.apache.org<ma...@geode.apache.org>
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<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=1Xx8mLS_UYZwIfu12dMKgXEwC0RCVaFPkj8RHNnQ-WY&e=>"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=0rIo4GgCwPglbtEkuWV60JMGxOStqOFaF2z5UFiqnKg&e=>"
    xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd<https://urldefense.proofpoint.com/v2/url?u=http-3A__geode.apache.org_schema_cache-2520http-3A_geode.apache.org_schema_cache_cache-2D1.0.xsd&d=DwMGaQ&c=SFszdw3oxIkTvaP4xmzq_apLU3uL-3SxdAPNkldf__Q&r=HB5LZowSGF4DiMmOUsCX6Q&m=HU-xnLFp7uTB5NQYvM7nGP5Zrw07gC21AF5a2WbovJY&s=CfLu3KLpQIk9Sawo32w9IC5NqBsKsBeHv1T06BnHRw8&e=>"
    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.

----------------------------------------------------------------------
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.

RE: gfsh gemfire.properties

Posted by "Fan, Shing" <Sh...@rbccm.com>.
In case attachment is not allowed, here is my script.  Hope it helps.

===============
startupScript.bat
===============
gfsh run --file=referenceStartScript.gfsh

===============
referenceStartScript.gfsh
===============
start locator --port=10334 --locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]
start server --properties-file=.\serverLocator.properties --mcast-port=0 --server-port=0 --cache-xml-file=.\serverCache.xml

===============
serverLocator.properties
===============
locators=10.109.35.198[10334],10.108.59.248[10334],10.208.59.119[10334]

===============
serverCache.xml
===============
Region definition goes here!


From: Fan, Shing [mailto:Shing.Fan@rbccm.com]
Sent: June 14, 17 12:33 PM
To: 'user@geode.apache.org'
Subject: RE: gfsh gemfire.properties

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: user@geode.apache.org<ma...@geode.apache.org>
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:nxu2@baml.com]
Sent: June 14, 17 12:24 PM
To: user@geode.apache.org<ma...@geode.apache.org>
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.

RE: gfsh gemfire.properties

Posted by "Fan, Shing" <Sh...@rbccm.com>.
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: user@geode.apache.org
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:nxu2@baml.com]
Sent: June 14, 17 12:24 PM
To: user@geode.apache.org<ma...@geode.apache.org>
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.