Ephemeral data port

Made it so that master and worker supports ephemeral ports (aka, system finds a free port).  Was going to add data port config, but turns out that `tachyon.worker.data.port` was already set for this.  

I want to clean up the patch a bit more, so shouldn't be merged yet.  Also, this patch won't be enough to make tests run concurrently (need a thread-safe/ isolated config).
Correct.  Only test would generate 0 port.

This let's me run tachyon on my laptop and run tests with local cluster
without worrying about port conflicts.

The main goal is test parallelization which would require multiple cluster
alive with different ports.
On Aug 2, 2014 10:12 AM, "Haoyuan Li" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/master/TachyonMaster.java:
>
> > @@ -86,7 +88,10 @@ public TachyonMaster(InetSocketAddress address, int webPort, int selectorThreads
> >      mWorkerThreads = workerThreads;
> >
> >      try {
> > -      mMasterAddress = address;
> > +      mServerTNonblockingServerSocket = new TNonblockingServerSocket(address);
> > +      PORT = NetworkUtils.getPort(mServerTNonblockingServerSocket);
>
> I see. So, this is for the testing only.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/292/files#r15730104>.
>