-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running ElasticSearch code base as a Java application in your IDE #100
Comments
Just paste that string in the run configuration, that class is contained in an external dependency jar (Elasticsearch). |
Hi, I did what you suggested above and now I got this error: I will have to pull in all the jars required by ES. I will let you know if I have more problem. Thank you for being so responsive!!! |
Hi, I added commons-cli-1.2.jar and then commons-cli-2.0.jar as referenced libraries and I still get this error: I will keep looking into it but if you have any ideas as to why, please help. Thank you. |
Once again can you make sure you covered the troubleshooting section of the development page in the wiki? |
Hi, The thread showing people using commons-cli-1.2.jar. I use the same jar version. I also use Elasticsearch ReadonlyRest 2.3.5 source code. This is my error: I have elasticsearch 2.3 source and I checked BootstrapCLIParser.java line 93: commons-cli has Option.class but it does not have builder() method. Therefore it blows up on Option.builder("D")... |
Does maven build all right from the command line? |
Hi, This is a run-time error because BootstrapCLIParser.java is within elasticsearch-2.3.5.jar. It does not get compiled as part of the ReadonlyRest. Two things that could fix this issue:
I still don't know why I encounter this situation when the others don't seem to be. Thank you. |
I am facing the exact same issue. Is there any solution for the same? |
@abhilash1994 what ES version? And what error? |
I configured IntelliJ IDE as per the wiki. I also added the elasticsearch.jar from /usr/share/elasticsearch/lib. Then I get exception as below when I run the "Whole ES".
|
@abhilash1994 you should switch off the local ES installation, as the one in the IDE will try to bind to the same port. Having said that, your issue is another because it can't load the ES dependencies. for reference, here is my java options in the launcher I have:
"use classpath module: es23x_main" |
@sscarduzio Thanks a lot for the help. I have followed everything as mentioned and I was able to solve majority of the dependencies. Although now I get this error.
This is how my configuration looks. |
you need to edit plugin-descriptor.properties. Add: site=false |
Hi,
I follow this https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/wiki/Development
I can't find this class:
Main class org.elasticsearch.bootstrap.Elasticsearch
Thank you.
v/r
Chantal
The text was updated successfully, but these errors were encountered: