I cloned and followed all the instructions on
https://github.com/apache/incubator-geode but I'm unable to start a locator.
gfsh>start locator --name=locator
Starting a GemFire Locator in
/<home>/workspace/incubator-geode/gemfire-assembly/build/install/apache-geode/locator...
An error occurred while attempting to start a Locator in
/Users/peixoto/Documents/workspace/incubator-geode/gemfire-assembly/build/install/apache-geode/locator
on 10.0.1.192[10334]:
sun.tools.attach.MacosxVirtualMachine.isLinuxThreads()Z
I tried starting gfsh with sudo and I got a more complete message:
gfsh>start locator --name=locator
Starting a GemFire Locator in
/<home>s/workspace/incubator-geode/gemfire-assembly/build/install/apache-geode/locator...
The Locator process terminated unexpectedly with exit status 1. Please
refer to the log file in
/<home>/workspace/incubator-geode/gemfire-assembly/build/install/apache-geode/locator
for full details.
Exception in thread "main" java.lang.RuntimeException: An IO error occurred
while starting a Locator in
/<home>/workspace/incubator-geode/gemfire-assembly/build/install/apache-geode/locator
on 10.0.1.192[10334]: Network is unreachable; port (10334) is not available
on localhost.
at
com.gemstone.gemfire.distributed.LocatorLauncher.start(LocatorLauncher.java:614)
at
com.gemstone.gemfire.distributed.LocatorLauncher.run(LocatorLauncher.java:505)
at
com.gemstone.gemfire.distributed.LocatorLauncher.main(LocatorLauncher.java:180)
Caused by: java.net.BindException: Network is unreachable; port (10334) is
not available on localhost.
at
com.gemstone.gemfire.distributed.AbstractLauncher.assertPortAvailable(AbstractLauncher.java:126)
at
com.gemstone.gemfire.distributed.LocatorLauncher.start(LocatorLauncher.java:588)
... 2 more
So the port is not available. I tried specifying a port myself:
gfsh>start locator --name=locator --port 55000
The first error occurs again.
Looking at the logs I see this "The file
"/<home>/workspace/incubator-geode/gemfire-assembly/build/install/apache-geode/locator/ConfigDiskDir_locator/DRLK_IFcluster_config.lk"
is being used by another process.". That sounds fishy... I look at the
processes and both locator processes, that actually failed, are still
running.
Starting everything again still fails with the same original error. The
locator process is still running, even though it said it failed, and "gfsh>
status locator" says "Locator ... is currently not responding".
OS: Mac OS X 10.9.5 x86_64
JVM: 1.8.0_40 (Oracle Corporation 25.40-b25)