Created
September 20, 2011 10:21
-
-
Save anonymous/1228803 to your computer and use it in GitHub Desktop.
unable to create index using rabbitmq river?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client client = new TransportClient() | |
.addTransportAddress(new InetSocketTransportAddress("localhost",9300)); | |
java.util.Map<java.lang.String,java.lang.Object> settings=new HashMap<java.lang.String,java.lang.Object>(); | |
settings1.put("host","localhost"); | |
settings1.put("port","5672"); | |
settings1.put("pass","guest"); | |
settings1.put("vhost","/"); | |
settings1.put("queue","elasticsearch"); | |
settings1.put("exchange","elasticsearch"); | |
settings1.put("routing_key","elasticsearch"); | |
settings1.put("exchange_type","direct"); | |
settings1.put("exchange_durable","true"); | |
settings1.put("queue_durable","true"); | |
settings1.put("queue_auto_delete","false"); | |
RiverSettings riversettings=new RiverSettings(null,settings); | |
RiverName riverName=new RiverName("standard_type1","standerattribute1"); | |
RabbitmqRiver rr=new RabbitmqRiver(riverName,riversettings,client); | |
rr.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment