<?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 Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file' in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144570#M56496</link>
    <description>&lt;P&gt;I am facing issue while setting up Ambari server v2.4.1.0 and Python 2.6.6. I followed steps listed in below thread but that didn't helped. If install lower version of Ambari server v2.2.2 it is working fine, but any versiov 2.4.* failing with same error. &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/67196/ambari-server-setup-error-cannot-import-name-parse.html" target="_blank"&gt;https://community.hortonworks.com/questions/67196/ambari-server-setup-error-cannot-import-name-parse.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 02:58:18 GMT</pubDate>
    <dc:creator>sparepally</dc:creator>
    <dc:date>2017-03-08T02:58:18Z</dc:date>
    <item>
      <title>Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144570#M56496</link>
      <description>&lt;P&gt;I am facing issue while setting up Ambari server v2.4.1.0 and Python 2.6.6. I followed steps listed in below thread but that didn't helped. If install lower version of Ambari server v2.2.2 it is working fine, but any versiov 2.4.* failing with same error. &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/67196/ambari-server-setup-error-cannot-import-name-parse.html" target="_blank"&gt;https://community.hortonworks.com/questions/67196/ambari-server-setup-error-cannot-import-name-parse.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 02:58:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144570#M56496</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-03-08T02:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144571#M56497</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/14265/parepallykiran.html"&gt;Saikiran Parepally&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you uninstall Ambari-server and clean up all the folders by searching with following commands?&lt;/P&gt;&lt;P&gt;find / -name "ambari-server" &lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 03:27:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144571#M56497</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2017-03-08T03:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144572#M56498</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt; in your error&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 33, in from ambari_server.dbConfiguration import DATABASE_NAMES, LINUX_DBMS_KEYS_LIST File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 28, in from ambari_server.serverConfiguration import decrypt_password_for_alias, get_ambari_properties, get_is_secure, \ File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 36, in from ambari_commons.os_utils import run_os_command, search_file, set_file_permissions, parse_log4j_file ImportError: cannot import name parse_log4j_file&lt;/PRE&gt;&lt;P&gt;can you check in /usr/lib/python2.6/site-packages/ambari_commons directory whether you have a file called os_utils.py&lt;/P&gt;&lt;P&gt;in that file you should have a function&lt;/P&gt;&lt;P&gt;def parse_log4j_file(filename):&lt;/P&gt;&lt;P&gt;if you don't, you should &lt;/P&gt;&lt;PRE&gt;yum remove ambari-server ambari-agent
rm -rf /usr/lib/python2.6/site-packages/ambari_commons
yum install ambari-server ambari-agent&lt;/PRE&gt;&lt;P&gt;then check in that directory again to see if that file (os_utils.py) exists.&lt;/P&gt;&lt;P&gt;I'm also urging you to install Ambari 2.4.2 instead of 2.4.1 as that was found to contain critical bugs. Also, can you tell us what OS you're running?&lt;/P&gt;&lt;P&gt;Depending on the OS, it matters what version of Python you're running. &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/software_requirements.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/software_requirements.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 02:57:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144572#M56498</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-09T02:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144573#M56499</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; I have followed the above listed steps and initial error is resolved. But I see new error message. (We are using RedHat 6.6 version of OS and Python 2.6.6)&lt;/P&gt;&lt;P&gt;[root@pxnhd539 views]# ambari-server setup
Using python  /usr/bin/python
Setup ambari-server
Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 37, in &amp;lt;module&amp;gt;
    from ambari_server.serverUpgrade import upgrade, upgrade_stack, set_current
  File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py", line 50, in &amp;lt;module&amp;gt;
    from ambari_server.setupMpacks import replay_mpack_logs
  File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 41, in &amp;lt;module&amp;gt;
    from resource_management.libraries.functions.tar_archive import extract_archive, get_archive_root_dir
ImportError: cannot import name extract_archive&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 08:38:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144573#M56499</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-03-09T08:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144574#M56500</link>
      <description>&lt;P&gt;I would remove Ambari and agents, delete the whole directory /usr/lib/python2.6/site-packages/ambari* and try again&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 20:33:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144574#M56500</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-09T20:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari-server setup v2.4.1.0 Error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144575#M56501</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; .. I have deployed Ambari server v2.4.2 on a brand new machine and it worked. Not sure what was the issue on the server where we already have ambari-agent v 2.2.2 is installed. Removing agents and also cleaning up directories didn't helped to completely resolve the issue. Thanks a lot for your help !!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 03:42:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-server-setup-v2-4-1-0-Error-cannot-import-name-parse/m-p/144575#M56501</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-03-10T03:42:18Z</dc:date>
    </item>
  </channel>
</rss>

