Hi to all,
in my java application I have been used the following code for
bulk load.
.........
.........
Client client = new
TransportClient().addTransportAddress(new
InetSocketTransportAddress("xxx.xxx.x.251", 9300));
.......
BulkRequestBuilder bulkRequest =
client.prepareBulk();
bulkRequest.add(client.prepareIndex("jan2103",
"cdr3",Long.toString(Id))
.setSource(
jsonBuilder().startObject()
.field("id", nextLine[0])
.field("Call_source", nextLine[1])
.field("call_destination", nextLine[2])
.field("billing_number", nextLine[3])
.field("plan", nextLine[4])
.field("call_type", nextLine[5])
.field("call_start_time", nextLine[6])
.field("call_connected", nextLine[7])
.field("call_ended", nextLine[8])
.field("duration", nextLine[9])
.field("amount", nextLine[10])
.endObject()));
BulkResponse bulkResponse = bulkRequest.execute().actionGet();
............
............
When i run the above code from my system[ip address is: (like)
xxx.xxx.x.182] I got the following error like:
..........................................
INFO: [Blink] failed to get node info for
[#transport#-1][inet[/192.168.2.251:9300]], disconnecting...
org.elasticsearch.transport.NodeDisconnectedException:
[][inet[/192.168.2.251:9300]][cluster/nodes/info] disconnected
java.util.concurrent.ExecutionException:
org.elasticsearch.client.transport.NoNodeAvailableException: No node
available
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No
node available
..............................................
Please Can any one tell me, what i have to do for load my data into server
machine's elasticsearch?
Tell me also, if, i have done wrong with my code. or is there any other way
for load data into remote systems.
regards and thanks to all.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.