<?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: IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties' in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182224#M144390</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/51358/amoghsuman.html" nodeid="51358"&gt;@Amogh Suman&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Do you mean to say there is no "/etc" directory?&lt;/P&gt;&lt;PRE&gt;# ls -l /etc&lt;BR /&gt;# ls -l /etc/ambari-server/conf/&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If the "/etc" directory is missing then it indicates Sandbox VM corruption. Please use a new Sandbox Image.&lt;/P&gt;&lt;P&gt;And if the "/etc/ambari-server/conf/" is missing then it indicates  Ambari installation corruption.   So in that case either reinstall ambari server Or better to use a new Sandbox Image.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 06:51:28 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-01-05T06:51:28Z</dc:date>
    <item>
      <title>IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182221#M144387</link>
      <description>&lt;P&gt;I typed the following commands in the terminal of sandbox-hdp terminal :&lt;/P&gt;&lt;PRE&gt;1. ambari-server status
2. ambari-server setup
3. ambari-server restart&lt;/PRE&gt;&lt;P&gt;However, after hitting enter on typing the above commands, I keep getting the same type of error :&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):                                                                                                                   
  File "/usr/sbin/ambari-server.py", line 36, 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 593, in &amp;lt;module&amp;gt;                                                
    configDefaults = ServerConfigDefaults()                                                                                                          
  File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 503, in __init__                                                
    super(ServerConfigDefaultsLinux, self).__init__()                                                                                                
  File "/usr/lib/python2.6/site-packages/ambari_server/serverConfiguration.py", line 363, in __init__                                                
    self.OUT_DIR = parse_log4j_file(get_conf_dir() + "/log4j.properties")['ambari.log.dir'].replace("//", "/")                                       
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_utils.py", line 194, in parse_log4j_file                                                  
    with open(filename, "rb") as fp:                                                                                                                 
IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties'               
&lt;/PRE&gt;&lt;P&gt;I'm unable to figure it out. Can someone please help me to sort out the IOError ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 06:16:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182221#M144387</guid>
      <dc:creator>amoghsuman</dc:creator>
      <dc:date>2018-01-05T06:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182222#M144388</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/51358/amoghsuman.html" nodeid="51358"&gt;@Amogh Suman&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;IOError:[Errno2]No such file or directory:'/etc/ambari-server/conf/log4j.properties'&lt;/PRE&gt;&lt;P&gt;The error indicates that somehow the file "/etc/ambari-server/conf/log4j.properties" is missing in the mentioned location.&lt;/P&gt;&lt;P&gt;So can you please try checking if this file exist in that location or mistakenly someone deleted it.&lt;/P&gt;&lt;P&gt;If the file is missing then try to get that file from ambari git repo and then place it in the same location before starting ambari server.&lt;/P&gt;&lt;P&gt;&lt;A href="https://raw.githubusercontent.com/apache/ambari/trunk/ambari-server/conf/unix/log4j.properties" target="_blank"&gt;https://raw.githubusercontent.com/apache/ambari/trunk/ambari-server/conf/unix/log4j.properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;It may also be a permission related issue. So please check if the user who is starting the ambari server process has access to read that log4j.properties file or not?&lt;/P&gt;&lt;PRE&gt;# ls -l /etc/ambari-server/conf/log4j.properties
-rwxr-xr-x. 1 root root 5443 Oct  9 15:37 /etc/ambari-server/conf/log4j.properties&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 06:25:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182222#M144388</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-05T06:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182223#M144389</link>
      <description>&lt;P&gt;there is no diectory or file named as etc. What to do ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 06:47:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182223#M144389</guid>
      <dc:creator>amoghsuman</dc:creator>
      <dc:date>2018-01-05T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182224#M144390</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/51358/amoghsuman.html" nodeid="51358"&gt;@Amogh Suman&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Do you mean to say there is no "/etc" directory?&lt;/P&gt;&lt;PRE&gt;# ls -l /etc&lt;BR /&gt;# ls -l /etc/ambari-server/conf/&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If the "/etc" directory is missing then it indicates Sandbox VM corruption. Please use a new Sandbox Image.&lt;/P&gt;&lt;P&gt;And if the "/etc/ambari-server/conf/" is missing then it indicates  Ambari installation corruption.   So in that case either reinstall ambari server Or better to use a new Sandbox Image.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 06:51:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182224#M144390</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-05T06:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: IOError: [Errno 2] No such file or directory: '/etc/ambari-server/conf/log4j.properties'</title>
      <link>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182225#M144391</link>
      <description>&lt;P&gt;Sorry, I was wrong. I sorted it out. in the /etc/ambari-server/conf/ the log4j.properties file was missing. So I put up this file into that folder through the link that you had posted. Thanks a ton &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 07:17:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/IOError-Errno-2-No-such-file-or-directory-etc-ambari-server/m-p/182225#M144391</guid>
      <dc:creator>amoghsuman</dc:creator>
      <dc:date>2018-01-05T07:17:13Z</dc:date>
    </item>
  </channel>
</rss>

