Skip to main content
Ananya_Misra
Gold ⭐️
September 15, 2020
Solved

Error while upgrading from HDP 2.3.4 to HDP 2.6.5

Hi ,

We are currently upgrading from HDP 2.3.4 to HDP 2.6.5 following the following reference document as suggested in the following link.

https://docs.cloudera.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-upgrade/content/ambari_upgrade_guide.html

Ours is an environment without internet connection so we downloaded and created the offline repository.

We already upgraded the ambari from 2.4.2 to Ambari 2.6.2.2 successfully and performed all the prerequisites for HDP upgrade. We are currently got stuck in the "Register and Install Target Version" phase. We have registered the local repository for HDP 2.6.5 and from ambari>stacks and versions>manage version we are trying to install the new softwares which is failing with the following error message.This issue is only happening for only one of the hosts in cluster.Rest all other hosts the installation was successful.

"Package Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install ''' returned 1. Error: Nothing to do"

Please help. Somehow it is detecting a blank package.

I have attached the output and error logs.

Thanks and Regards,
Ananya

Ananya_Misra
Gold ⭐️
September 23, 2020

Hi Experts,

 

My issue is resolved now. I had raised a ticket with cloudera and they provided my with a modified yumrpm.py file which I replaced with my existing file. This new python had option to skip in case it encounters a blank package.

Following are the steps to resolve my issue.

1) verify ambari-agent version is 2.6.2.2 by `ambari-agent --version`  on problematic node

 

2) stop ambari-agent on problematic node

 

3)go to /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

~> cd /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

4) take bacup of yumrpm.py

 

~> mv yumrpm.py /tmp

 

5) download the attached yumrpm.py and keep it in /user/home/ananya

 

6) do an diff of

~> diff /tmp/yumrpm.py  /user/home/ananya/yumrpm.py

 

>>>(diff loooks similar too this)

263,267c263,264

<       if len(name) == 0:

<         Logger.info("Skipping installation of empty package")

<       else:

<         Logger.info("Installing package %s ('%s')" % (name, string_cmd_from_args_list(cmd)))

<         self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())

---

>       Logger.info("Installing package %s ('%s')" % (name, string_cmd_from_args_list(cmd)))

>       self.checked_call_with_retries(cmd, sudo=True,

> logoutput=self.get_logoutput())

<<<< 

 

 

7) move the yumrpm.py  to /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

 mv /user/home/ananya/yumrpm.py  /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

 

😎 start ambari-agent

 

Thanks and Regards,

Ananya

7 replies

Ananya_Misra
Gold ⭐️
September 16, 2020

Hi Experts,

 

Any idea on this issue please. We are currently stuck with the upgrade and can not proceed further.

 

Thanks and Regards,

Ananya

Translate
Bender
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
September 16, 2020

Hello @Ananya_Misra ,

 

thank you for reaching out to the Community!

 

Please check on the host where the installation fails if there is any package left from the old version. Please remove all packages that are for the 2.3.4 version and attempt the installation on this node again.

 

Hope this helps!

 

Kind regards:

Ferenc

Translate
Ferenc Erdelyi, Technical Solutions Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Learn more about the Cloudera Community: - Community Guidelines (https://community.cloudera.com/t5/custom/page/page-id/Community_Guidelines) - How to use the forum (/t5/help/faqpage)
Ananya_Misra
Gold ⭐️
September 16, 2020

Hi @Bender Frenec,

 

I am on the installation binary phase and the upgrade is not yet started.

 

If I check on the host where the installation is failing as well as where installation is successful. Both servers still got the packages for HDP 2.3.4.

 

Is it okay to remove them before the upgrade is completed and we finalize the upgrade.

 

Please advise.

 

Thanks and Regards,

Ananya

Translate
Ananya_Misra
Ananya_MisraAuthorAnswer
Gold ⭐️
September 23, 2020

Hi Experts,

 

My issue is resolved now. I had raised a ticket with cloudera and they provided my with a modified yumrpm.py file which I replaced with my existing file. This new python had option to skip in case it encounters a blank package.

Following are the steps to resolve my issue.

1) verify ambari-agent version is 2.6.2.2 by `ambari-agent --version`  on problematic node

 

2) stop ambari-agent on problematic node

 

3)go to /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

~> cd /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

4) take bacup of yumrpm.py

 

~> mv yumrpm.py /tmp

 

5) download the attached yumrpm.py and keep it in /user/home/ananya

 

6) do an diff of

~> diff /tmp/yumrpm.py  /user/home/ananya/yumrpm.py

 

>>>(diff loooks similar too this)

263,267c263,264

<       if len(name) == 0:

<         Logger.info("Skipping installation of empty package")

<       else:

<         Logger.info("Installing package %s ('%s')" % (name, string_cmd_from_args_list(cmd)))

<         self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())

---

>       Logger.info("Installing package %s ('%s')" % (name, string_cmd_from_args_list(cmd)))

>       self.checked_call_with_retries(cmd, sudo=True,

> logoutput=self.get_logoutput())

<<<< 

 

 

7) move the yumrpm.py  to /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

 mv /user/home/ananya/yumrpm.py  /usr/lib/ambari-agent/lib/resource_management/core/providers/package/

 

😎 start ambari-agent

 

Thanks and Regards,

Ananya

Translate