On Wed, May 18, 2011 at 1:50 PM, Ian Stevens <[email protected]> wrote: > Hi everyone. We had some tests which were using HBaseTestingUtility to start > a single node cluster. These worked fine on our desktops and testing > environments, but when we switched to running the tests on Amazon Web > Services, startMiniCluster() raised a BindException: > >> [exec] u.startMiniCluster(1) >> [exec] BindException: java.net.BindException: Problem binding to >> /10.35.75.130:0 : Cannot assign requested address > > I'm guessing the issue here is that it's using port 0 for some reason. In > previous environments, a random port was automatically selected (by > HBaseTestingUtility, I assume). We had no other configuration aside from any > defaults. The code is just an instantiation of HBaseTestingUtility followed > by startMiniCluster(1). Migrating our testing to AWS seems to have broken > this. >
I would suggest checking the src. We are logging port 0 as what we are using but my guess is that this is a mislog. We use port zero so system will pick a random port and we're not logging what the random port chosen is. St.Ack
