Connection to Accumulo just hangs on initialization

I have Accumulo running in a VM. This Groovy script will connect just fine from within the VM, but outside of the VM it hangs at the first println statement.

String instance = "test"
String zkServers = "localhost:2181"
String principal = "root";
AuthenticationToken authToken = new PasswordToken("testing1234");

ZooKeeperInstance inst = new ZooKeeperInstance(instance, zkServers);
println "Attempting connection"
Connector conn = inst.getConnector(principal, authToken);
println "Connected!"

This is the listing of ports I have opened up in Vagrant: "forwarded_port", guest: 2122, host: 2122 "forwarded_port", guest: 2181, host: 2181 "forwarded_port", guest: 2888, host: 2888 "forwarded_port", guest: 3888, host: 3888 "forwarded_port", guest: 4445, host: 4445 "forwarded_port", guest: 4560, host: 4560 "forwarded_port", guest: 6379, host: 6379 "forwarded_port", guest: 8020, host: 8020 "forwarded_port", guest: 8030, host: 8030 "forwarded_port", guest: 8031, host: 8031 "forwarded_port", guest: 8032, host: 8032 "forwarded_port", guest: 8033, host: 8033 "forwarded_port", guest: 8040, host: 8040 "forwarded_port", guest: 8042, host: 8042 "forwarded_port", guest: 8081, host: 8081 "forwarded_port", guest: 8082, host: 8082 "forwarded_port", guest: 8088, host: 8088 "forwarded_port", guest: 9000, host: 9000 "forwarded_port", guest: 9092, host: 9092 "forwarded_port", guest: 9200, host: 9200 "forwarded_port", guest: 9300, host: 9300 "forwarded_port", guest: 9997, host: 9997 "forwarded_port", guest: 9999, host: 9999 "forwarded_port", guest: 10001, host: 10001 "forwarded_port", guest: 10002, host: 10002 "forwarded_port", guest: 11224, host: 11224 "forwarded_port", guest: 12234, host: 12234 "forwarded_port", guest: 19888, host: 19888 "forwarded_port", guest: 42424, host: 42424 "forwarded_port", guest: 49707, host: 49707 "forwarded_port", guest: 50010, host: 50010 "forwarded_port", guest: 50020, host: 50020 "forwarded_port", guest: 50070, host: 50070 "forwarded_port", guest: 50075, host: 50075 "forwarded_port", guest: 50090, host: 50090 "forwarded_port", guest: 50091, host: 50091 "forwarded_port", guest: 50095, host: 50095

Any ideas why it is not letting my connect? It just hangs and never even seems to time out.


I got this response from the mailing list and it cleared everything up:

Could be that the Accumulo services are only listening on localhost and not the "external" interface for your VM. To get a connector, that's a call to a TabletServer which run on 9997 by default (and you have open).

Do a netstat -nape | fgrep 9997 | fgrep LISTEN in your VM and see what interface the server is bound to. I'd venture a guess that you just need to put the FQDN for your VM in $ACCUMULO_CONF_DIR/slaves (and masters, monitor, gc, tracers, for completeness) instead of localhost.

Need Your Help

How to find image on whole screen?

ui-automation ranorex

Is it possible to click on an image, that is not located in a specific container element?

Libarchive Gem Not Working (RoR)

ruby-on-rails compression gem decompression

I'm trying to get libarchive working in my Rails app. Specifically, I need to unzip a file and re-compress its contents as a .CPGZ file. I believe Libarchive is my best bet for this.