# How to start specified elasticsearch version using command "yarn elasticsearch"?

**URL:** <https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231>\
**Category:** Kibana\
**Created:** [March 9, 2018, 9:11am UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231 "2018-03-09T09:11:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahrtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahrtr/32/29551_2.png) [@ahrtr](https://discuss.elastic.co/u/ahrtr)\
**Post date:** [March 9, 2018, 9:11am UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/1 "2018-03-09T09:11:41Z")

</div>

I am trying to developping a new kibana plugin against kibana 6.2. The steps as below,

> git clone [GitHub - elastic/kibana: Your window into the Elastic Stack](https://github.com/elastic/kibana.git) kibana  
> cd kibana  
> git checkout 6.2  
> nvm install "$(cat .node-version)"  
> yarn  
> yarn elasticsearch

The elasticsearch version being started is 6.3.0, but what I want is 6.2.x. How can I start 6.2.x elasticsearch? Thanks.

> curl localhost:9200  
> {  
> "name" : "Bnwlgaf",  
> "cluster\_name" : "esvm-dev",  
> "cluster\_uuid" : "ie8sDTDLT3-ITmUE1\_Wz3w",  
> "version" : {  
> "number" : "6.3.0",  
> "build\_hash" : "0ac6a36",  
> "build\_date" : "2018-03-08T21:18:20.003316Z",  
> "build\_snapshot" : true,  
> "lucene\_version" : "7.2.1",  
> "minimum\_wire\_compatibility\_version" : "5.6.0",  
> "minimum\_index\_compatibility\_version" : "5.0.0"  
> },  
> "tagline" : "You Know, for Search"  
> }

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [March 9, 2018, 10:27pm UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/2 "2018-03-09T22:27:55Z")

</div>

Hi there, looks like that's an error with Kibana's 6.2 tag. As a workaround, you can install [esvm](https://www.npmjs.com/package/esvm) globally and then use it to launch ES 6.2:

```auto
esvm 6.2.0

```

Hope this helps,  
CJ

---

<div class="post-metadata">

**Author:** ![ahrtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahrtr/32/29551_2.png) [@ahrtr](https://discuss.elastic.co/u/ahrtr)\
**Post date:** [March 10, 2018, 7:24am UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/3 "2018-03-10T07:24:04Z")

</div>

@cjcenizal

Thanks, it works. But only ES 6.2.0 and 6.2.1 are available for 6.2.x. The kibana version being started is 6.2.3 by default.

I configured 6.2.1 in the plugin's package.json,

> "kibana": {  
> "version": "6.2.1"  
> },

But I saw the following error message when starting the kibana + plugin,

> [warning][plugin] Plugin "example1" was disabled because it expected Kibana version "6.2.1", and found "6.2.3".

So the question is how to run kibana 6.2.0 or 6.2.1?

Thanks.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [March 12, 2018, 10:16pm UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/4 "2018-03-12T22:16:03Z")

</div>

ES 6.2.0 and 6.2.1 are both compatible with Kibana 6.2.3. I believe you're seeing this error because your `getExpectedKibanaVersion` method declares 6.2.1 as the Kibana version your plugin is compatible with, and your Kibana version is 6.2.3. If you change that method to declare 6.2.3 then that error should go away.

Hope this helps,  
CJ

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [March 12, 2018, 10:16pm UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/5 "2018-03-12T22:16:29Z")

</div>

Actually, you should be able to just remove that method entirely, which would be even better.

---

<div class="post-metadata">

**Author:** ![ahrtr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahrtr/32/29551_2.png) [@ahrtr](https://discuss.elastic.co/u/ahrtr)\
**Post date:** [March 13, 2018, 8:07am UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/6 "2018-03-13T08:07:42Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 10, 2018, 8:08am UTC](https://discuss.elastic.co/t/how-to-start-specified-elasticsearch-version-using-command-yarn-elasticsearch/123231/7 "2018-04-10T08:08:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
