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).
The socket will figure this out.  It tried to find a port not used on the
current system.
On Aug 2, 2014 9:58 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. Then, how does the worker know which port to connect to?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/292/files#r15730028>.
>