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

Add _cat/versions endpoint #4825

Closed
wants to merge 1 commit into from

Conversation

dadoonet
Copy link
Member

If we want to have a full picture of versions running in a cluster, we need to add a _cat/versions endpoint.

Response could look like:

% curl es2:9200/_cat/versions?v
node component                        version
es1  jvm                              1.6.0_65-b14
es1  elasticsearch                    0.90.10
es1  elasticsearch-mapper-attachment  1.7.0
es1  elasticsearch-lang-js            1.7.0
es1  elasticsearch-analysis-smartcn   1.9.0
es2  jvm                              1.6.0_65-b14
es2  elasticsearch                    1.0.0.RC1
es2  elasticsearch-mapper-attachment  2.0.0.RC1
es2  elasticsearch-lang-js            2.0.0.RC1
es2  elasticsearch-analysis-smartcn   2.0.0.RC1

Closes #4824.

Note that this PR requires first #4378 to be merged.

@drewr
Copy link
Contributor

drewr commented Jan 21, 2014

Looks ok to me!

@dadoonet
Copy link
Member Author

I did rebase this PR on master which now have the plugin version in.
The end point is now _cat/versions.

I'm still adding information about jvm and elasticsearch here but they are not really plugins...

Wondering if it makes sense?

@uboness
Copy link
Contributor

uboness commented Jan 30, 2014

I would still want to get the jvm & es versions in the _cat/nodes endpoint, it's something you care quite often about when looking at nodes... and resolving problems and switching between "views" doesn't help here (you'll to correlated between two different outputs)

clusterStateRequest.local(request.paramAsBoolean("local", clusterStateRequest.local()));
clusterStateRequest.masterNodeTimeout(request.paramAsTime("master_timeout", clusterStateRequest.masterNodeTimeout()));

client.admin().cluster().state(clusterStateRequest, new ActionListener<ClusterStateResponse>() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to use AbstractRestResponseActionListener instead of ActionListener the onFailure method is already implemented there

@s1monw
Copy link
Contributor

s1monw commented Feb 6, 2014

Looks cool can you also add a REST test for this feature?

If we want to have a full picture of versions running in a cluster, we need to add a `_cat/plugins` endpoint.

Response could look like:

```sh
% curl es2:9200/_cat/plugins?v
node component                        version   type url                                   desc
es1  mapper-attachments               1.7.0       j                                        Adds the attachment type allowing to parse difference attachment formats
es1  lang-javascript                  1.4.0       j                                        JavaScript plugin allowing to add javascript scripting support
es1  analysis-smartcn                 1.9.0       j                                        Smart Chinese analysis support
es1  marvel                           1.1.0      j/s http://localhost:9200/_plugins/marvel Elasticsearch Management & Monitoring
es1  kopf                             0.5.3       s  http://localhost:9200/_plugins/kopf   kopf - simple web administration tool for ElasticSearch
es2  mapper-attachments               2.0.0.RC1   j                                        Adds the attachment type allowing to parse difference attachment formats
es2  lang-javascript                  2.0.0.RC1   j                                        JavaScript plugin allowing to add javascript scripting support
es2  analysis-smartcn                 2.0.0.RC1   j                                        Smart Chinese analysis support
```

Closes elastic#4824.
@dadoonet
Copy link
Member Author

Closed with f54e924

@dadoonet dadoonet closed this Mar 17, 2014
@dadoonet dadoonet deleted the issue/4824-cat-version branch March 17, 2014 08:03
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

Successfully merging this pull request may close these issues.

Add _cat/plugins endpoint
4 participants