<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Python error upgrading manager agent in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27172#M5820</link>
    <description>&lt;P&gt;ok i found the problem, the python version was upgraded during the apt-get update step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i found the following solution online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;On Ubuntu 10.04, the Cloudera Manager agent will not run if the system python is upgraded to 2.6.5-1ubuntu6.1. (2.6.5-1ubuntu6 works correctly.) If you have upgraded, you must also rebuild your pre-prepared virtualenv:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;apt-get install python-virtualenv&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;virtualenv /usr/lib64/cmf/agent/build/env&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2015 09:17:00 GMT</pubDate>
    <dc:creator>crcerror</dc:creator>
    <dc:date>2015-05-08T09:17:00Z</dc:date>
    <item>
      <title>Python error upgrading manager agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27169#M5819</link>
      <description>&lt;P&gt;After upgrading CM tot 5.4 and upgrading the agents with the CM wizard i get the follwoing error when starting the agents:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what might be causing this?&lt;/P&gt;&lt;P&gt;if followed allt the&amp;nbsp;steps from:&amp;nbsp;&lt;A target="_blank" href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ag_upgrade_cm5.html"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/cm_ag_upgrade_cm5.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR:root:code for hash md5 was not found.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 139, in &amp;lt;module&amp;gt;&lt;BR /&gt;globals()[__func_name] = __get_hash(__func_name)&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor&lt;BR /&gt;raise ValueError('unsupported hash type %s' % name)&lt;BR /&gt;ValueError: unsupported hash type md5&lt;BR /&gt;ERROR:root:code for hash sha1 was not found.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 139, in &amp;lt;module&amp;gt;&lt;BR /&gt;globals()[__func_name] = __get_hash(__func_name)&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor&lt;BR /&gt;raise ValueError('unsupported hash type %s' % name)&lt;BR /&gt;ValueError: unsupported hash type sha1&lt;BR /&gt;ERROR:root:code for hash sha224 was not found.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 139, in &amp;lt;module&amp;gt;&lt;BR /&gt;globals()[__func_name] = __get_hash(__func_name)&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor&lt;BR /&gt;raise ValueError('unsupported hash type %s' % name)&lt;BR /&gt;ValueError: unsupported hash type sha224&lt;BR /&gt;ERROR:root:code for hash sha256 was not found.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 139, in &amp;lt;module&amp;gt;&lt;BR /&gt;globals()[__func_name] = __get_hash(__func_name)&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor&lt;BR /&gt;raise ValueError('unsupported hash type %s' % name)&lt;BR /&gt;ValueError: unsupported hash type sha256&lt;BR /&gt;ERROR:root:code for hash sha384 was not found.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 139, in &amp;lt;module&amp;gt;&lt;BR /&gt;globals()[__func_name] = __get_hash(__func_name)&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor&lt;BR /&gt;raise ValueError('unsupported hash type %s' % name)&lt;BR /&gt;ValueError: unsupported hash type sha384&lt;BR /&gt;ERROR:root:code for hash sha512 was not found.&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 139, in &amp;lt;module&amp;gt;&lt;BR /&gt;globals()[__func_name] = __get_hash(__func_name)&lt;BR /&gt;File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor&lt;BR /&gt;raise ValueError('unsupported hash type %s' % name)&lt;BR /&gt;ValueError: unsupported hash type sha512&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib/cmf/agent/src/cmf/agent.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;import avro.ipc&lt;BR /&gt;File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 25, in &amp;lt;module&amp;gt;&lt;BR /&gt;from avro import protocol&lt;BR /&gt;File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/protocol.py", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt;from md5 import md5&lt;BR /&gt;File "/usr/lib/python2.7/md5.py", line 10, in &amp;lt;module&amp;gt;&lt;BR /&gt;from hashlib import md5&lt;BR /&gt;ImportError: cannot import name md5&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:28:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27169#M5819</guid>
      <dc:creator>crcerror</dc:creator>
      <dc:date>2022-09-16T09:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python error upgrading manager agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27172#M5820</link>
      <description>&lt;P&gt;ok i found the problem, the python version was upgraded during the apt-get update step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i found the following solution online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;On Ubuntu 10.04, the Cloudera Manager agent will not run if the system python is upgraded to 2.6.5-1ubuntu6.1. (2.6.5-1ubuntu6 works correctly.) If you have upgraded, you must also rebuild your pre-prepared virtualenv:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;apt-get install python-virtualenv&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;virtualenv /usr/lib64/cmf/agent/build/env&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 09:17:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27172#M5820</guid>
      <dc:creator>crcerror</dc:creator>
      <dc:date>2015-05-08T09:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python error upgrading manager agent</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27181#M5821</link>
      <description>I am happy to see you resolved the issue quickly. Thank you for the follow up crcerror.</description>
      <pubDate>Fri, 08 May 2015 12:44:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Python-error-upgrading-manager-agent/m-p/27181#M5821</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2015-05-08T12:44:45Z</dc:date>
    </item>
  </channel>
</rss>

