HQ plugin doesn't work for ES2.3.3

113 views
Skip to first unread message

mannoj...@phonepe.com

unread,
Nov 22, 2017, 7:28:25 AM11/22/17
to ElasticHQ
I see that HQ(2x or 1x)  doesn't work for ES 2.3.3 . 

I install HQ and start Elastic search it won't work.

If I start ES and then install, and then if I restart ES. ES won't start.


My command I execute to get HQ is 


/usr/share/elasticsearch/bin/plugin install royrusso/elasticsearch-hq/v2.3.3.


or 


/usr/share/elasticsearch/bin/plugin install royrusso/elasticsearch-hq/v2.0.0


or 


/usr/share/elasticsearch/bin/plugin install royrusso/elasticsearch-hq/v1.0.0



It points to https://github.com/royrusso/elasticsearch-hq/archive/master.zip and also in other branches I see /usr/share/elasticsearch/plugins/hq/plugin-descriptor.properties has version=1.0.0. Not sure if this is the issue. Not sure how we can fix it. 


All the cases I get below error.

java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [hq]. Was the plugin built before 2.0?

at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:381)

at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:128)

at org.elasticsearch.node.Node.<init>(Node.java:158)

at org.elasticsearch.node.Node.<init>(Node.java:140)

at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)

at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)

at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)

at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

Caused by: java.nio.file.AccessDeniedException: /usr/share/elasticsearch/plugins/hq/plugin-descriptor.properties

at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)

at java.nio.file.Files.newByteChannel(Files.java:361)

at java.nio.file.Files.newByteChannel(Files.java:407)

at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)

at java.nio.file.Files.newInputStream(Files.java:152)

at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:87)

at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:378)


mannoj...@phonepe.com

unread,
Nov 24, 2017, 1:29:54 AM11/24/17
to ElasticHQ
FIXED IT BY DOING AFTER INSTALLING

chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/plugins

And then service elasticsearch start (Worked).
Reply all
Reply to author
Forward
0 new messages