Looks like the client doesn't support IPv6. If the host has IPv4 addresses please try that for locator. On Tue, Feb 28, 2017 at 6:58 AM Avital Amity <[email protected]> wrote:
> Hi Akihiro, > > > > Thanks for your response > > > > Log messages: > > > > From client log: > > > [fine 2017/02/28 12:06:15.747910 … ] Exception while querying locator: > gemfire::GemfireIOException: TcpConn::connect failed with errno: 10047: > address family not supported > > > > From the shell we are running the client: > > > > ACE_INET_Addr::get_ip_address: address is a IPv6 address not IPv4 > > > > Regarding locator configuration – we are already using the suggested > configuration > > > > Thanks > > Avital > > > > *From:* Akihiro Kitada [mailto:[email protected] <[email protected]>] > *Sent:* Tuesday, February 28, 2017 8:45 AM > > > *To:* [email protected] > *Subject:* Re: Running GEODE on Windows machine > > > > Hello Avital, > > > > >I have compiled the C++ client on the Win machine, and able to run both > client and server there. the current problem is that the C++ client does > not “find” the GEODE server…. It fails on our functions that approach the > server…. > > > > Do you see some error message in the client log or in stdout/stderr when > you run your C++ client application on Windows? > > > > I think you may use the default connection pool which intends to try to > connect to Geode server running on localhost with listening via port number > 40404 or something. > > > > If so, why don't you specify the locator host with using cache.xml like > the following? > > ---- > > <?xml version="1.0" encoding="UTF-8"?> > > <client-cache> > > <pool name="replicatedPool" read-timeout="1000" > subscription-enabled="true" > > > <locator host="10.211.55.2" port="55221"/> > > </pool> > > > > <region name="replicatedRegion"> > > <region-attributes pool-name="replicatedPool" > refid="CACHING_PROXY"> > > </region-attributes> > > </region> > > </client-cache> > > ---- > > > > You can refer this cache.xml when creating a cache in your client > application like the following. > > ---- > > CacheFactoryPtr cacheFactory = CacheFactory::createCacheFactory(); > > cacheFactory->set("cache-xml-file","/path/to/cache.xml"); > > cacheFactory->set("log-level","config"); > > > > CachePtr cachePtr = cacheFactory->create(); > > ---- > > > > > > Thanks. > > > > > > > > > > > > > > > -- > > Akihiro Kitada | Staff Customer Engineer | +81 80 3716 3736 > Support.Pivotal.io <http://support.pivotal.io/> | Mon-Fri 9:00am to > 5:30pm JST | 1-877-477-2269 > [image: Image removed by sender. support] <https://support.pivotal.io/> > [image: > Image removed by sender. twitter] <https://twitter.com/pivotal> [image: > Image removed by sender. linkedin] > <https://www.linkedin.com/company/3048967> [image: Image removed by > sender. facebook] <https://www.facebook.com/pivotalsoftware> [image: > Image removed by sender. google plus] <https://plus.google.com/+Pivotal> > [image: > Image removed by sender. youtube] > <https://www.youtube.com/playlist?list=PLAdzTan_eSPScpj2J50ErtzR9ANSzv3kl> > > > > 2017-02-28 15:23 GMT+09:00 Avital Amity <[email protected]>: > > Thanks > > > > I have compiled the C++ client on the Win machine, and able to run both > client and server there. the current problem is that the C++ client does > not “find” the GEODE server…. It fails on our functions that approach the > server…. > > I thought maybe some special configuration is needed… or maybe some other > idea…. What could be the issue > > > > Thanks > > Avital > > > > *From:* Akihiro Kitada [mailto:[email protected]] > *Sent:* Tuesday, February 28, 2017 5:09 AM > *To:* [email protected] > *Subject:* Re: Running GEODE on Windows machine > > > > Hello Avital, > > > > If you want to connect to Geode servers from your C++ application as a > Geode client, you need Apache Geode Native components although you may have > already known it. > > > > https://github.com/apache/geode-native > > > > As far as I know, there are no binary distributions for Apache Geode > Native. So you need to build those modules by yourself according to the > following docs. > > > > https://github.com/apache/geode-native/blob/develop/BUILDING.md > > > > I've never tried to build Windows version of Apache Geode Native but you > may be able to build it easily by getting source code via git tools. So > far, I've successfully built macOS version of Apache Geode Native and I > confirmed it connects to Apache Geode 1.0.0 running on macOS. I wrote the > following blog entry based on my experience on macOS. > > > > http://quitada.hatenablog.jp/entry/2017/02/14/010259 > > > > Thanks. > > > > > > > -- > > Akihiro Kitada | Staff Customer Engineer | +81 80 3716 3736 > <080-3716-3736> > Support.Pivotal.io <http://support.pivotal.io/> | Mon-Fri 9:00am to > 5:30pm JST | 1-877-477-2269 > [image: Image removed by sender. support] <https://support.pivotal.io/> > [image: > Image removed by sender. twitter] <https://twitter.com/pivotal> [image: > Image removed by sender. linkedin] > <https://www.linkedin.com/company/3048967> [image: Image removed by > sender. facebook] <https://www.facebook.com/pivotalsoftware> [image: > Image removed by sender. google plus] <https://plus.google.com/+Pivotal> > [image: > Image removed by sender. youtube] > <https://www.youtube.com/playlist?list=PLAdzTan_eSPScpj2J50ErtzR9ANSzv3kl> > > > > > > 2017-02-28 0:05 GMT+09:00 Avital Amity <[email protected]>: > > Small comment – we are using C++ client > > > > Thanks > > Avital > > > > *From:* Avital Amity > *Sent:* Monday, February 27, 2017 4:57 PM > *To:* [email protected] > *Subject:* Running GEODE on Windows machine > > > > Hi, > > > > Anyone run GEODE on a windows machine? Does it require any special > configuration from Server side? Client side? > > > > Thanks > > Avital > > This message and the information contained herein is proprietary and > confidential and subject to the Amdocs policy statement, > > you may review at http://www.amdocs.com/email_disclaimer.asp > > > > This message and the information contained herein is proprietary and > confidential and subject to the Amdocs policy statement, > > you may review at http://www.amdocs.com/email_disclaimer.asp > > > This message and the information contained herein is proprietary and > confidential and subject to the Amdocs policy statement, > you may review at http://www.amdocs.com/email_disclaimer.asp >
