[TACHYON-180] Added support for multiple workers on the same node, and a...

...dded a utility script for launching multiple workers
Good catch. I'll fix
On Oct 29, 2014 10:53 AM, "Huamin Chen" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/master/MasterInfo.java:
>
> >        } else {
> > -        for (NetAddress address : mWorkerAddressToId.keySet()) {
> > -          InetAddress inetAddress = InetAddress.getByName(address.getMHost());
> > -          if (inetAddress.getHostName().equals(host) || inetAddress.getHostAddress().equals(host)
> > -              || inetAddress.getCanonicalHostName().equals(host)) {
> > -            LOG.debug("getLocalWorker: {}" + address);
> > -            return address;
> > -          }
> > -        }
> > +        address = randomWorker(host);
> > +      }
> > +    }
> > +    if (address.isPresent()) {
> > +      LOG.debug("getWorker: {}" + address.get());
>
> is + or ,?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/472/files#r19557732>.
>