<?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: ambari-server setup 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-error-cannot-import-name-parse-log4j/m-p/110634#M46629</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;&lt;P&gt;please open this as a new HCC question not to hijack the current thread.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 02:39:24 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2017-03-08T02:39:24Z</dc:date>
    <item>
      <title>ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110627#M46622</link>
      <description>&lt;P&gt;I am installing HDP-2.5.0.0&lt;/P&gt;&lt;P&gt;When I setup the ambari-server, i have an error as follows:&lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python
Setup ambari-server
Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 33, in &amp;lt;module&amp;gt;
    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 &amp;lt;module&amp;gt;
    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 &amp;lt;module&amp;gt;
    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;/P&gt;&lt;P&gt;The command is : ambari-server setup -j /usr/local/cloud/java/jdk1.8.0_65 --jdbc-driver=/usr/share/java/mysql-connector-java.jar --jdbc-db=mysql -v -g&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9603-3error.png" style="width: 1348px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23313iCF05306329A1B87D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9603-3error.png" alt="9603-3error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My ambari-server's version is 2.4.1.0,installed from &lt;A href="http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.1.0" target="_blank" rel="nofollow noopener noreferrer"&gt;http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9602-1error.png" style="width: 574px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23314i1353AA7D73A48032/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9602-1error.png" alt="9602-1error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; My python is 2.6.6&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9604-2error.png" style="width: 520px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23315iB7B8A6F5FA8C8174/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9604-2error.png" alt="9604-2error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So why does it show "ImportError: cannot import name parse_log4j_file", i haven't met it in previous hdp version&lt;/P&gt;&lt;P&gt;Wait for your reply, thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:27:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110627#M46622</guid>
      <dc:creator>Yan</dc:creator>
      <dc:date>2019-08-19T11:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110628#M46623</link>
      <description>&lt;P&gt;try to reinstall Ambari after you uninstall it, delete any ambari-server directories and especially remove the following directory /usr/lib/python2.6/site-packages/ambari_server&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 01:41:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110628#M46623</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-11-20T01:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110629#M46624</link>
      <description>&lt;P&gt;ok, i will try it&lt;/P&gt;&lt;P&gt;appreciate reply&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 21:42:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110629#M46624</guid>
      <dc:creator>Yan</dc:creator>
      <dc:date>2016-11-20T21:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110630#M46625</link>
      <description>&lt;P&gt;thank you Artem&lt;/P&gt;&lt;P&gt;It worked&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:34:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110630#M46625</guid>
      <dc:creator>Yan</dc:creator>
      <dc:date>2016-11-21T16:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110631#M46626</link>
      <description>&lt;P&gt;in my case, version of Ambari and Python mismatched, I installed a lower version of Ambari and it started to work&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2017 12:26:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110631#M46626</guid>
      <dc:creator>dpnctl</dc:creator>
      <dc:date>2017-01-01T12:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110632#M46627</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 am facing similar issue while setting up ambari server v2.4.1.0 and python 2.6.6. I tried to uninstall and made sure /usr/lib/python2.6/site-packages/ambari_server is cleaned but still issue exists. Can you please let me know what else can be done to resolve this issue. &lt;/P&gt;&lt;P&gt;Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 33, in &amp;lt;module&amp;gt;
    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 &amp;lt;module&amp;gt;
    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 &amp;lt;module&amp;gt;
    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;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 02:28:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110632#M46627</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-03-08T02:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110633#M46628</link>
      <description>&lt;P&gt;I also tried deploying ambari version 2.4.2.0 and also in different environement, still seeing the same issue. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 02:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110633#M46628</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-03-08T02:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110634#M46629</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;&lt;P&gt;please open this as a new HCC question not to hijack the current thread.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 02:39:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110634#M46629</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-03-08T02:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server setup error 'cannot import name parse_log4j_file'</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110635#M46630</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 opened new thead in HCC. Below is the link,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/87491/ambari-server-setup-v2410-error-cannot-import-name.html" target="_blank"&gt;https://community.hortonworks.com/questions/87491/ambari-server-setup-v2410-error-cannot-import-name.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 02:59:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-setup-error-cannot-import-name-parse-log4j/m-p/110635#M46630</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-03-08T02:59:22Z</dc:date>
    </item>
  </channel>
</rss>

