Skip to content
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

FAILURE: Build failed with an exception. Execution failed for task ':integTestRunner'. #28

Closed
mattiabaldari opened this issue Oct 25, 2018 · 10 comments

Comments

@mattiabaldari
Copy link

Hi,

I am trying to install this project, but with no luck.
I have a fresh new installed Ubuntu 18.10, updated and with java-11-openjdk-amd64 and gradle 4.10.2 installed. And the content of my $JAVA_HOME is the following:

echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64/bin/

Specified manually in the /etc/environment file.
Starting from the situation described above I try to install the project, to do so I run the following commands:

git clone https://github.com/bnafziger/elasticsearch-ingest-opennlp.git
cd path/to/elasticsearch-ingest-opennlp
gradle build

But after the compiling part, it throws the following exception:
screenshot 2018-10-25 at 19 37 53

If you have any solution would be really helpful.
Thank you

@mattiabaldari
Copy link
Author

@spinscale no idea why this happens?

@spinscale
Copy link
Owner

please use the gradle wrapper instead of your local gradle installation and include the full log output in a gist. Thanks!

@mattiabaldari
Copy link
Author

I'll try on a new Ubuntu instance and let you know. thanks

@mattiabaldari
Copy link
Author

I tried on a fresh Ubuntu install and it works!
Thank you!

For who ends up on this ISSUE, BE SURE to have already installed ElasticSeach, I know can sound obvious, but in some tasks, like the one I am doing, you can forget the obvious parts.

To install it, just follow this guide: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-16-04

As a very last thing, in order to make the installation work pay attention to the Hardware requirements needed for your ElasticSeach installation, sometimes it can fail due to insufficient resources.

@spinscale
Copy link
Owner

You do not need Elasticsearch at all preinstalled in order to work with this plugin. Everything comes prebundled or is downloaded as part of gradle jobs.

Can you please explain why you think, that Elasticsearch is needed? Happy to sort out any confusions.

@mattiabaldari
Copy link
Author

Hi @spinscale,

I wrote that because I wasn't able to make it work until elasticsearch was installed on my machine.
If you need I can try to install it again without elastic and see what is the outcome.

Bests

@spinscale
Copy link
Owner

thanks a ton for the offer! only retry, if you have the time. I'm fine as is, but still sure that you did something else in addition to installing Elasticsearch locally, that made this work on your machine (like installing the right java version for example).

@mattiabaldari
Copy link
Author

mattiabaldari commented Nov 19, 2018

Ok, so I have a new ubuntu installation, with nothing on it but your project in the download folder, unzipped. If I follow the readme file I should give the following command to install it:

bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-opennlp/releases/download/6.5.0.1/ingest-opennlp-6.5.0.1.zip

but my system does not recognise this command.
I'll leave it as it is, so maybe with your help I can figure out what I'm doing wrong

@spinscale
Copy link
Owner

this command assumes you are in the elasticsearch installation directory. This will not be fixed by installing elasticsearch globally. I think you may have changed that command after installing ES?

@mattiabaldari
Copy link
Author

Ok! I understand now that the installation has to start from:

./gradlew clean check

Since in the README.md this was not on top, I though it was something to perform AFTER the installation. So... now I ran that command, nothing else before it, just a
"sudo apt-get update & upgrade".

What I get is:

ERROR: JAVA_HOME is not set and no 'java' command could be found in your path.

It is safe to say I need to install JAVA first, any speecific version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants