I tried to load my postgress data into elasticsearch using logstash but got an error. The same logstash conf file works fine when elastic search is running locally in my machine. But when depoyed in jboss Iam not able to insert data into it.Please anyone suggent me how to insert data in Elastic search war file.
If I dont deploy in jboss..! How can I integrate with my web application..? My application is a separate war file in jboss..! I cant always run elasticsearch locally and get the result right..! Whenever my server gets started elastic search should also start automatically...!
Sorry but you wrote a logstash configuration which goal is to extract data from postgresql and send them into elasticsearch.
If you are running elasticsearch standalone, then, localhost:8080/elasticsearch-war-example-master is wrong. You need to send your data to elasticsearch localhost:9200.
I don't understand the relation with running a client from a webapp.
Can you explain exactly what you are trying to do?
My scenario is..
We have a spring based web application which we will deploy over jboss server. In this applicaion to perform global search for fetching particular user records I need to use elastic search. How can we achieve this..?Will this require elastic search server running along with jboss server..?? or Is it enough just to add spring elastic search dependencies without elastic search server running.??
Just to clarify something. If you want to use elasticsearch, it means that you have to index data into elasticsearch first.
Then you can use any client using spring or not to query elasticsearch.
Did you already index your data into elasticsearch?
It is a bit of a struggle, and understand your pain. The Java API documentation is pretty lacking and there are few things that are missing to complete the picture.
If you can think of Elasticsearch as your database, you need to have the database running in order to access it. Elasticsearch runs within it's own J2EE container, similar to your application.
I feel your pain. Something what would and should appear to be pretty simple is reasonably hard to find working examples of how and not to do things.
I am struggling at the moment getting my head around doing a dump and then do a re-import of data. If I get time and I understand this a little more, will try and put some tutorials together that give a complete example of how to do things, once I find out. I have found the documentation only shows half the story and not complete working examples from simple to the more complex things that you would want to do.
dadoonet
Yeah I indexed my data into elastic search using logstash. What I was expecting was when we deploy the elasticsearch war file in jboss elasticsearch server is running and we don't need to run the batch file again.But that is not the case right..! When our application is using elastic search we should run the elasticsearch server.
thanks for the links u posted previously..! It actually gave me an idea how to use elastic search in web application.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.