Thanks - I've created this Jira to fix the docs:
https://issues.apache.org/jira/browse/GEODE-7295

--Jens

On Mon, Oct 14, 2019 at 6:26 PM James Dodson <jimdod...@gmail.com> wrote:

> I started docker with:
> docker run -it -p 10334:10334 -p 1099:1099 -p 7070:7070 -p 8080:8080 -p
> 40404:40404 apachegeode/geode
>
> then in docker I started geode with:
> start locator --hostname-for-clients=localhost
> --jmx-manager-hostname-for-clients=localhost
> --J=-Djava.rmi.server.hostname=localhost
> start server --hostname-for-clients=localhost
>
> then I created a region.
>
> From that point, I was able to successfully run the Hello World app on the
> host.
>
> I believe the key was passing the correct flags to the start locator and
> start server commands.
>
> I was able to also achieve the same success using a docker-compose.yml by
> starting the locator and server with the correct flags.
>
> Thanks again for your help!
>
>
> On Mon, Oct 14, 2019 at 2:45 PM Jens Deppe <jensde...@apache.org> wrote:
>
>> Good to know. For the benefit of others treading the same path, can you
>> share how the problem was resolved?
>>
>> Thanks
>> --Jens
>>
>> On Mon, Oct 14, 2019 at 12:19 PM James Dodson <jimdod...@gmail.com>
>> wrote:
>>
>>> Thank you, Jens and Ajay - I have it working now
>>>
>>> On Sun, Oct 13, 2019 at 10:43 AM ajay vasudevan <
>>> vasudevan.a...@gmail.com> wrote:
>>>
>>>> Hi Jim,
>>>>
>>>> The following commands would work for you to connect to a local geode
>>>> cluster :
>>>>
>>>> docker run --rm -it --name localhost --hostname localhost -p 8080:8080
>>>> -p 10334:10334  -p 40404:40404 -p 1099:1099 -p 7070:7070
>>>> apachegeode/geode:1.10.0
>>>>
>>>> Start locator
>>>> ==========
>>>> start locator --name=myLocator --hostname-for-clients=localhost
>>>> --log-level=config
>>>> --J='-Dgemfire.jmx-manager-hostname-for-clients=localhost'
>>>>
>>>> Start server
>>>> =========
>>>> start server --name=myServerOne --locators=localhost[10334]
>>>> --server-port=40404
>>>>
>>>> Regards,
>>>> aj-vas
>>>>
>>>> On Sat, Oct 12, 2019 at 8:07 PM Jens Deppe <jensde...@apache.org>
>>>> wrote:
>>>>
>>>>> Hi James,
>>>>>
>>>>> Could you clarify this:
>>>>>
>>>>>>
>>>>>> When I try to use the docker image, I get:
>>>>>> Exception in thread "main"
>>>>>> org.apache.geode.cache.client.NoAvailableServersException
>>>>>>
>>>>>>
>>>>> What are you doing when this happens? Perhaps obvious, but just to be
>>>>> clear you do need to keep the docker session running otherwise the started
>>>>> geode members will just go away when the gfsh shell exits.
>>>>>
>>>>> I think the instructions do need to be updated a bit. If you're trying
>>>>> to connect to the cluster from your host you should use the following to
>>>>> start the locator and server:
>>>>>
>>>>> start locator --hostname-for-clients=localhost
>>>>> --jmx-manager-hostname-for-clients=localhost
>>>>> --J=-Djava.rmi.server.hostname=localhost
>>>>> start server --hostname-for-clients=localhost
>>>>>
>>>>>
>>>>> Since the started cluster will be using docker non-public IPs
>>>>> (probably on a 172.17.0.0/16 subnet) any externally connecting client
>>>>> will not be able to connect directly to these addresses, but will need to
>>>>> use the localhost proxy ports as exposed by docker.
>>>>>
>>>>> --Jens
>>>>>
>>>>

Reply via email to