You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by Lyndon Adams <ly...@gmail.com> on 2021/02/21 16:01:34 UTC
Connecting remotely to Geode on Raspberry Pi 4
Guys,
For the life of me I cannot connect to a mini cluster hosted on a Raspberry Pi 4 either by GFSH or from code. However I can connect to Pulse, browser on port 7070. I have kept the config as simple as possible see below:
Any ideas what config I am missing?
1. I set up the cluster using gfsh
> start locator --name=colocator --port=41111 --properties-file=./conf/geode/datasources/gemfire.properties --classpath=../lib/fractalworks-geode-transport-1.0.0.jar:../lib/interestingstuff-1.0.jar:../lib/platform-1.0.0.jar
Etc
Everything comes up and if I run the application on the same host all works as expected
gemFire.properties
log-level=INFO
conserve-sockets=false
mcast-port=0
locators=192.168.86.29[41111]
bind-address=192.168.86.29
distributed-system-id=10
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="${PORT}"/>
<region name=“myregion” etc….. />
</cache>
Also all ports are open on the pi
Any help much appreciated
Lyndon Adams
Follow Me: Twitter <https://www.facebook.com/lyndon.adams.98> | LinkedIn <http://www.linkedin.com/profile/view?id=1413336> | Facebook <http://www.facebook.com/gopivotal>
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Lyndon Adams <ly...@gmail.com>.
Thanks Udo and all. Now works using this config on the Pi side
log-level=INFO
conserve-sockets=false
mcast-port=0
locators=192.168.86.27[41111]
bind-address=192.168.86.27
distributed-system-id=10
jmx-manager-bind-address=192.168.86.27
jmx-manager-hostname-for-clients=raspberrypi.lan
http-service-bind-address=192.168.86.27
On the remote side
gfsh>connect --locator=192.168.86.27[41111]
Connecting to Locator at [host=192.168.86.27, port=41111] ..
Connecting to Manager at [host=raspberrypi.lan, port=1099] ..
Successfully connected to: [host=raspberrypi.lan, port=1099]
You are connected to a cluster of version: 1.13.1
Perfect thanks guys!!!
> On 24 Feb 2021, at 00:39, Udo Kohlmeyer <ud...@vmware.com> wrote:
>
> http-service-bind-address
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Udo Kohlmeyer <ud...@vmware.com>.
Hey there Lyndon,
You can try using `jmx-manager-bind-address`, as there seems to be some hostname resolution contentions. Also, `jmx-manager-hostname-for-clients` might need to be set.
Also, if you intend to use the HTTP services, `http-service-bind-address` might need to be set as well.
--Udo
From: Lyndon Adams <ly...@gmail.com>
Reply-To: "user@geode.apache.org" <us...@geode.apache.org>
Date: Wednesday, February 24, 2021 at 11:14 AM
To: "user@geode.apache.org" <us...@geode.apache.org>
Subject: Re: Connecting remotely to Geode on Raspberry Pi 4
So switched off ipv6 and did a reboot of raspberry pi
I can telnet to locator and manager. The netstat output is:
pi@raspberrypi:~/fractalworks/stuff-example-1.0 $ !netstat
netstat -a | grep 41111
tcp 0 0 0.0.0.0:41111 0.0.0.0:* LISTEN
I them try a remote gfsh session and cannot connect:
gfsh>connect --locator=192.168.86.27[41111]
Connecting to Locator at [host=192.168.86.27, port=41111] ..
Connecting to Manager at [host=raspberrypi.lan, port=1099] ..
Could not connect to : [host=raspberrypi.lan, port=1099]. Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Operation timed out
GemFire.properties on pi is:
log-level=INFO
conserve-sockets=false
mcast-port=0
locators=192.168.86.27[41111]
bind-address=192.168.86.27
distributed-system-id=10
Any ideas? Am I missing a key property when starting up gfsh locally, btw I don’t pass anything in to gfsh when trying to connect remotely?
Cheers
On 23 Feb 2021, at 21:21, Lyndon Adams <ly...@gmail.com>> wrote:
Ah let me see how I change that, thanks. Basically not errors are thrown other than a connection timeout
Sent while on the move.
On 23 Feb 2021, at 18:22, Dan Smith <da...@vmware.com>> wrote:
pi@raspberrypi:~/fractalworks/example-1.0 $ netstat -a | grep 41111
tcp6 0 0 [::]:41111 [::]:* LISTEN
Does this mean that geode is only listening for IPV6 traffic? That might explain it since you are trying to connect using the IPv4 address.
-Dan
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Lyndon Adams <ly...@gmail.com>.
So switched off ipv6 and did a reboot of raspberry pi
I can telnet to locator and manager. The netstat output is:
pi@raspberrypi:~/fractalworks/stuff-example-1.0 $ !netstat
netstat -a | grep 41111
tcp 0 0 0.0.0.0:41111 0.0.0.0:* LISTEN
I them try a remote gfsh session and cannot connect:
gfsh>connect --locator=192.168.86.27[41111]
Connecting to Locator at [host=192.168.86.27, port=41111] ..
Connecting to Manager at [host=raspberrypi.lan, port=1099] ..
Could not connect to : [host=raspberrypi.lan, port=1099]. Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Operation timed out
GemFire.properties on pi is:
log-level=INFO
conserve-sockets=false
mcast-port=0
locators=192.168.86.27[41111]
bind-address=192.168.86.27
distributed-system-id=10
Any ideas? Am I missing a key property when starting up gfsh locally, btw I don’t pass anything in to gfsh when trying to connect remotely?
Cheers
> On 23 Feb 2021, at 21:21, Lyndon Adams <ly...@gmail.com> wrote:
>
> Ah let me see how I change that, thanks. Basically not errors are thrown other than a connection timeout
>
> Sent while on the move.
>
>> On 23 Feb 2021, at 18:22, Dan Smith <da...@vmware.com> wrote:
>>
>>
>> pi@raspberrypi:~/fractalworks/example-1.0 $ netstat -a | grep 41111
>> tcp6 0 0 [::]:41111 [::]:* LISTEN
>>
>> Does this mean that geode is only listening for IPV6 traffic? That might explain it since you are trying to connect using the IPv4 address.
>>
>> -Dan
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Lyndon Adams <ly...@gmail.com>.
Ah let me see how I change that, thanks. Basically not errors are thrown other than a connection timeout
Sent while on the move.
> On 23 Feb 2021, at 18:22, Dan Smith <da...@vmware.com> wrote:
>
>
> pi@raspberrypi:~/fractalworks/example-1.0 $ netstat -a | grep 41111
> tcp6 0 0 [::]:41111 [::]:* LISTEN
>
> Does this mean that geode is only listening for IPV6 traffic? That might explain it since you are trying to connect using the IPv4 address.
>
> -Dan
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Dan Smith <da...@vmware.com>.
pi@raspberrypi:~/fractalworks/example-1.0 $ netstat -a | grep 41111
tcp6 0 0 [::]:41111 [::]:* LISTEN
Does this mean that geode is only listening for IPV6 traffic? That might explain it since you are trying to connect using the IPv4 address.
-Dan
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Anthony Baker <ba...@vmware.com>.
Dang, clearly seems to be configured correctly. What’s the client error? Connection refused?
Anthony
On Feb 21, 2021, at 4:15 PM, Lyndon Adams <ly...@gmail.com>> wrote:
Hi Anthony
Its felt like ages since we last spoke, hope all is well.
This is my netstat output
pi@raspberrypi:~/fractalworks/example-1.0 $ netstat -a | grep 41111
tcp6 0 0 [::]:41111 [::]:* LISTEN
Telnet
lyndonadams@lyndons-mini ~ % telnet 192.168.86.27 41111
Trying 192.168.86.27...
Connected to raspberrypi.lan.
Escape character is '^]’.
Thanks
On 21 Feb 2021, at 21:30, Anthony Baker <ba...@vmware.com>> wrote:
Hey Lyndon! What does netstat show for port 41111 on the Pi? Can you telnet from your remote host to the locator (eg `telnet 192.168.86.29 41111`)?
Anthony
On Feb 21, 2021, at 8:01 AM, Lyndon Adams <ly...@gmail.com>> wrote:
Guys,
For the life of me I cannot connect to a mini cluster hosted on a Raspberry Pi 4 either by GFSH or from code. However I can connect to Pulse, browser on port 7070. I have kept the config as simple as possible see below:
Any ideas what config I am missing?
1. I set up the cluster using gfsh
> start locator --name=colocator --port=41111 --properties-file=./conf/geode/datasources/gemfire.properties --classpath=../lib/fractalworks-geode-transport-1.0.0.jar:../lib/interestingstuff-1.0.jar:../lib/platform-1.0.0.jar
Etc
Everything comes up and if I run the application on the same host all works as expected
gemFire.properties
log-level=INFO
conserve-sockets=false
mcast-port=0
locators=192.168.86.29[41111]
bind-address=192.168.86.29
distributed-system-id=10
Cache.xml
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=04%7C01%7Cbakera%40vmware.com%7Cc9366c32ed2146bf008b08d8d6c6efda%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495497221703569%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=i1pDCv76jhGeeZSZnpvuJqJpixiNdlGK61RmaqO1Kbk%3D&reserved=0>"
xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd"
version="1.0">
<cache-server port="${PORT}"/>
<region name=“myregion” etc….. />
</cache>
Also all ports are open on the pi
Any help much appreciated
Lyndon Adams
Follow Me: Twitter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flyndon.adams.98&data=04%7C01%7Cbakera%40vmware.com%7Cc9366c32ed2146bf008b08d8d6c6efda%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495497221703569%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lz57LqDdTfjRJRfjZVdj%2BwuT1volK03QPwmvnwhze%2FQ%3D&reserved=0> | LinkedIn<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D1413336&data=04%7C01%7Cbakera%40vmware.com%7Cc9366c32ed2146bf008b08d8d6c6efda%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495497221713530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=TWs68hNmFYjucsSyE0HCWRe3AUshg5NrXnSslzrhiyo%3D&reserved=0> | Facebook<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.facebook.com%2Fgopivotal&data=04%7C01%7Cbakera%40vmware.com%7Cc9366c32ed2146bf008b08d8d6c6efda%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495497221713530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CS97ip5IX%2BiGKpT%2FaOJRIFVtbhLyzoNqfgnC3e7mMwg%3D&reserved=0>
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Lyndon Adams <ly...@gmail.com>.
Hi Anthony
Its felt like ages since we last spoke, hope all is well.
This is my netstat output
pi@raspberrypi:~/fractalworks/example-1.0 $ netstat -a | grep 41111
tcp6 0 0 [::]:41111 [::]:* LISTEN
Telnet
lyndonadams@lyndons-mini ~ % telnet 192.168.86.27 41111
Trying 192.168.86.27...
Connected to raspberrypi.lan.
Escape character is '^]’.
Thanks
> On 21 Feb 2021, at 21:30, Anthony Baker <ba...@vmware.com> wrote:
>
> Hey Lyndon! What does netstat show for port 41111 on the Pi? Can you telnet from your remote host to the locator (eg `telnet 192.168.86.29 41111`)?
>
> Anthony
>
>
>> On Feb 21, 2021, at 8:01 AM, Lyndon Adams <lyndon.adams@gmail.com <ma...@gmail.com>> wrote:
>>
>> Guys,
>>
>> For the life of me I cannot connect to a mini cluster hosted on a Raspberry Pi 4 either by GFSH or from code. However I can connect to Pulse, browser on port 7070. I have kept the config as simple as possible see below:
>>
>> Any ideas what config I am missing?
>>
>> 1. I set up the cluster using gfsh
>> > start locator --name=colocator --port=41111 --properties-file=./conf/geode/datasources/gemfire.properties --classpath=../lib/fractalworks-geode-transport-1.0.0.jar:../lib/interestingstuff-1.0.jar:../lib/platform-1.0.0.jar
>>
>> Etc
>>
>> Everything comes up and if I run the application on the same host all works as expected
>>
>> gemFire.properties
>> log-level=INFO
>> conserve-sockets=false
>> mcast-port=0
>> locators=192.168.86.29[41111]
>> bind-address=192.168.86.29
>> distributed-system-id=10
>>
>>
>> Cache.xml
>> <cache
>> xmlns="http://geode.apache.org/schema/cache <http://geode.apache.org/schema/cache>"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050435441%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dNmMyXKTR%2FsVzgivB2N18h8G9JziESChTpcpJnnfsWM%3D&reserved=0>"
>> xsi:schemaLocation="http://geode.apache.org/schema/cache <http://geode.apache.org/schema/cache> http://geode.apache.org/schema/cache/cache-1.0.xsd <http://geode.apache.org/schema/cache/cache-1.0.xsd>"
>> version="1.0">
>>
>> <cache-server port="${PORT}"/>
>> <region name=“myregion” etc….. />
>>
>> </cache>
>>
>> Also all ports are open on the pi
>>
>> Any help much appreciated
>>
>> Lyndon Adams
>> Follow Me: Twitter <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flyndon.adams.98&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050435441%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CwDI1C6dI5x6Juvu%2FP0XQ3RwUhRrmReMjdbc86UgV4E%3D&reserved=0> | LinkedIn <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D1413336&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050445398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=blBbcCx335nPEA6mXZZPNgPhN9JnPADsPzWAPtK3vrs%3D&reserved=0> | Facebook <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.facebook.com%2Fgopivotal&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050445398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8F5qwvLW4BHO9o8AJ0rDokMajYozHuPnKj19qPmCSo8%3D&reserved=0>
>>
>
Re: Connecting remotely to Geode on Raspberry Pi 4
Posted by Anthony Baker <ba...@vmware.com>.
Hey Lyndon! What does netstat show for port 41111 on the Pi? Can you telnet from your remote host to the locator (eg `telnet 192.168.86.29 41111`)?
Anthony
On Feb 21, 2021, at 8:01 AM, Lyndon Adams <ly...@gmail.com>> wrote:
Guys,
For the life of me I cannot connect to a mini cluster hosted on a Raspberry Pi 4 either by GFSH or from code. However I can connect to Pulse, browser on port 7070. I have kept the config as simple as possible see below:
Any ideas what config I am missing?
1. I set up the cluster using gfsh
> start locator --name=colocator --port=41111 --properties-file=./conf/geode/datasources/gemfire.properties --classpath=../lib/fractalworks-geode-transport-1.0.0.jar:../lib/interestingstuff-1.0.jar:../lib/platform-1.0.0.jar
Etc
Everything comes up and if I run the application on the same host all works as expected
gemFire.properties
log-level=INFO
conserve-sockets=false
mcast-port=0
locators=192.168.86.29[41111]
bind-address=192.168.86.29
distributed-system-id=10
Cache.xml
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050435441%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dNmMyXKTR%2FsVzgivB2N18h8G9JziESChTpcpJnnfsWM%3D&reserved=0>"
xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd"
version="1.0">
<cache-server port="${PORT}"/>
<region name=“myregion” etc….. />
</cache>
Also all ports are open on the pi
Any help much appreciated
Lyndon Adams
Follow Me: Twitter<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Flyndon.adams.98&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050435441%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CwDI1C6dI5x6Juvu%2FP0XQ3RwUhRrmReMjdbc86UgV4E%3D&reserved=0> | LinkedIn<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D1413336&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050445398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=blBbcCx335nPEA6mXZZPNgPhN9JnPADsPzWAPtK3vrs%3D&reserved=0> | Facebook<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.facebook.com%2Fgopivotal&data=04%7C01%7Cbakera%40vmware.com%7Cfc71053b77ac471a463f08d8d681fb39%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637495201050445398%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8F5qwvLW4BHO9o8AJ0rDokMajYozHuPnKj19qPmCSo8%3D&reserved=0>