I think this has got to be not setting up the Java API correctly.
Have a box in ec2 that is running elasticsearch.
locally, can get cluster status and health, and docs, etc.
my my local dev, connecting to that box, using a basic get
I can get cluster health/status, add docs, etc.
basically, I make a Java URL and do a get:
URL urlPage = new URL(strUrl);
HttpURLConnection urlConnection =
However, when I try doing the same things with a TransportClient, I
just hang there (if I use port 9200) or get No Node available (if I
used port 9300)
Help on the transportclient setup would be much appreciated, because
all other methods of connecting seem to work fine.
Settings settings = ImmutableSettings.settingsBuilder()
TransportClient client = new TransportClient(settings); client.addTransportAddress( new
InetSocketTransportAddress("", <tried 9200 and
right here is where it fails. it either hangs (port 9200)
or, responds with "No Node Available" using port 9300