# Upgrade Java on existing nodes

**URL:** <https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039>\
**Category:** Elasticsearch\
**Created:** [March 6, 2013, 5:54pm UTC](https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039 "2013-03-06T17:54:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Manuel\_Gomez](https://discuss.elastic.co/u/Manuel_Gomez)\
**Post date:** [March 6, 2013, 5:54pm UTC](https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039/1 "2013-03-06T17:54:22Z")

</div>

Hey guys, I have 3 nodes, one of which I just added recently, ever since I  
keep seeing this error "Failed to deserialize exception response from  
stream". The only thing I see different in the new node is the java version  
which is newer in the new node. I wanted to upgrade the version on the old  
nodes but was wondering if any of you has done this before or if there is  
any problems that could arise

Thanks for the help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 6, 2013, 6:03pm UTC](https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039/2 "2013-03-06T18:03:20Z")

</div>

Shut down a node, install new Java, start the node, then move to the  
next node. But consider there may be a downtime while nodes are  
recovering after start. In my case 15-20 minutes. If you let recover  
each node before moving on to the next node, there is no interruption of  
service. Or just stop all nodes, update java, and restart nodes again.  
It's easy and the fastest method I know but service is interrupted.

Jörg

Am 06.03.13 18:54, schrieb Manuel Gomez:

> Hey guys, I have 3 nodes, one of which I just added recently, ever  
> since I keep seeing this error "Failed to deserialize exception  
> response from stream". The only thing I see different in the new node  
> is the java version which is newer in the new node. I wanted to  
> upgrade the version on the old nodes but was wondering if any of you  
> has done this before or if there is any problems that could arise
> 
> Thanks for the help
> 
> --  
> You received this message because you are subscribed to the Google  
> Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Manuel\_Gomez\_2](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Manuel\_Gomez\_2](https://discuss.elastic.co/u/Manuel_Gomez_2)\
**Post date:** [March 6, 2013, 6:14pm UTC](https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039/3 "2013-03-06T18:14:06Z")

</div>

Thanks Jörg. I thought about doing this. I just didn't know if my nodes  
would recover from it. I'll give this a try and report back

On Wed, Mar 6, 2013 at 3:03 PM, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> Shut down a node, install new Java, start the node, then move to the next  
> node. But consider there may be a downtime while nodes are recovering after  
> start. In my case 15-20 minutes. If you let recover each node before moving  
> on to the next node, there is no interruption of service. Or just stop all  
> nodes, update java, and restart nodes again. It's easy and the fastest  
> method I know but service is interrupted.
> 
> Jörg
> 
> Am 06.03.13 18:54, schrieb Manuel Gomez:
> 
> > Hey guys, I have 3 nodes, one of which I just added recently, ever since  
> > I keep seeing this error "Failed to deserialize exception response from  
> > stream". The only thing I see different in the new node is the java version  
> > which is newer in the new node. I wanted to upgrade the version on the old  
> > nodes but was wondering if any of you has done this before or if there is  
> > any problems that could arise
> > 
> > Thanks for the help
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to elasticsearch+unsubscribe@\*\*[googlegroups.com](http://googlegroups.com)[elasticsearch%2Bunsubscribe@googlegroups.com](mailto:elasticsearch%2Bunsubscribe@googlegroups.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > .
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/](https://groups.google.com/d/)\*\*  
> topic/elasticsearch/\*\*LPA6Xb02Jvk/unsubscribe?hl=en-\*\*US[https://groups.google.com/d/topic/elasticsearch/LPA6Xb02Jvk/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/LPA6Xb02Jvk/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> elasticsearch+unsubscribe@\*\*[googlegroups.com](http://googlegroups.com)[elasticsearch%2Bunsubscribe@googlegroups.com](mailto:elasticsearch%2Bunsubscribe@googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> .

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2013, 6:15pm UTC](https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039/4 "2013-03-06T18:15:57Z")

</div>

Yes. As Jörg said, it's sometimes better to have one minute of full interruption than one hour of doing some recovery process without _real_ interruption.  
Also be aware that you need enough disk space to have replicas copied to the remaining nodes.

## My 2 cents

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 6 mars 2013 à 19:03, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) a écrit :

> Shut down a node, install new Java, start the node, then move to the next node. But consider there may be a downtime while nodes are recovering after start. In my case 15-20 minutes. If you let recover each node before moving on to the next node, there is no interruption of service. Or just stop all nodes, update java, and restart nodes again. It's easy and the fastest method I know but service is interrupted.
> 
> Jörg
> 
> Am 06.03.13 18:54, schrieb Manuel Gomez:
> 
> > Hey guys, I have 3 nodes, one of which I just added recently, ever since I keep seeing this error "Failed to deserialize exception response from stream". The only thing I see different in the new node is the java version which is newer in the new node. I wanted to upgrade the version on the old nodes but was wondering if any of you has done this before or if there is any problems that could arise
> > 
> > Thanks for the help
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:48am UTC](https://discuss.elastic.co/t/upgrade-java-on-existing-nodes/11039/5 "2017-07-06T02:48:01Z")

</div>


