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

Missing commons-cli dependency? #288

Closed
lmenezes opened this issue Sep 30, 2014 · 9 comments
Closed

Missing commons-cli dependency? #288

lmenezes opened this issue Sep 30, 2014 · 9 comments

Comments

@lmenezes
Copy link

Hey,

Just installed v2.0.1(hadoop2) on a elasticsearch v1.0.3, and while trying to create a repository, I just got a 500 with NoClassDefFoundError[org/apache/commons/cli/ParseException.

Adding the lib manually fixed it, but I'm trying to figure out if:

  • I did something wrong
  • The documentation is incomplete
  • That was not really suppose to happen

any thoughts? :)

@bhalsey
Copy link

bhalsey commented Sep 30, 2014

We just encountered the same problem.

@bhalsey
Copy link

bhalsey commented Oct 2, 2014

We had the same issue. We're also running CDH 4.6, which expects a different hadoop client.

We fixed these by grabbing the source, removing the 'exclude module: "commons-cli"' from repository-hdfs/build.gradle, setting 'hadoop2Version = 2.0.0-cdh4.6.0' in gradle.properties (and set the esVersion and luceneVersions for good measure), and building our own zip:
cd repository-hdfs/; ../gradlew -Pdistro=hadoopYarn distZip

You can install this with:
bin/plugin -u file:////elasticsearch-repository-hdfs-2.1.0.BUILD-SNAPSHOT-hadoop2.zip -i elasticsearch-repository-hdfs

Hope this helps.

@lmenezes
Copy link
Author

lmenezes commented Oct 3, 2014

@bhalsey thanks for that, but I'm still hoping to get the plain vanilla version going :)

@costin
Copy link
Member

costin commented Oct 3, 2014

Hi folks,

I've added commons-cli to the Hadoop2 jar and published the snapshots - can you try it out?

@bhalsey if the dependencies for Hadoop2 are not correct for your environment, why don't you try the slim/light jar and put the Hadoop2 in your classpath?

@costin
Copy link
Member

costin commented Oct 8, 2014

As there hasn't been any update regarding the fix, I'm closing the issue. Please re-open it, if that's not the case.

@costin costin closed this as completed Oct 8, 2014
@lmenezes
Copy link
Author

lmenezes commented Oct 9, 2014

@costin sorry about taking so long to give feedback. Just installed snapshot for v2.0.2 and it still seems to have the same problem.

./bin/plugin -u https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/elasticsearch-repository-hdfs/2.0.2.BUILD-SNAPSHOT/elasticsearch-repository-hdfs-2.0.2.BUILD-20141008.030249-64-hadoop2.zip -i elasticsearch-repository-hdfs-2.0.2-BUILD-SNAPSHOT-hadoop2

Am I doing something wrong here?

@costin
Copy link
Member

costin commented Oct 9, 2014

What elasticsearch version do you plan on using? If you're using 1.4 try 2.1 Beta2 otherwise the latest 2.0.3.BUILD-SNAPSHOT - looks like the fix was not applied to 2.0.2.

@costin costin added the v2.0.3 label Oct 9, 2014
@lmenezes
Copy link
Author

lmenezes commented Oct 9, 2014

with 2.0.3-snapshot seems to work fine. Any idea when it will be released? Thanks.

  • I'm currently running 1.0.3, so 2.1 isn't currently an option :)

@costin
Copy link
Member

costin commented Oct 9, 2014

Considering 2.0.2 was released yesterday, probably in 1-2 months from now...

On 10/9/14 8:00 PM, leonardo menezes wrote:

with 2.0.3-snapshot seems to work fine. Any idea when it will be released? Thanks.

  • I'm currently running 1.0.3, so 2.1 isn't currently an option :)


Reply to this email directly or view it on GitHub
#288 (comment).

Costin

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

No branches or pull requests

3 participants