<?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 cant run yarn-utils.py , with python 3.3.3 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178031#M140278</link>
    <description>&lt;PRE&gt;[root@hadoop1 ~]# python /root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py -c 16 -m 64 -k True
 Using cores=16 memory=64GB disks=4 hbase=True
Traceback (most recent call last):
  File "/root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py", line 146, in &amp;lt;module&amp;gt;
    main()
  File "/root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py", line 99, in main
    reservedStackMemory = getReservedStackMemory(memory)
  File "/root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py", line 48, in getReservedStackMemory
    if (reservedStack.has_key(memory)):
AttributeError: 'dict' object has no attribute 'has_key'
[root@hadoop1 ~]#
&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Jul 2017 05:12:32 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2017-07-11T05:12:32Z</dc:date>
    <item>
      <title>cant run yarn-utils.py , with python 3.3.3</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178031#M140278</link>
      <description>&lt;PRE&gt;[root@hadoop1 ~]# python /root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py -c 16 -m 64 -k True
 Using cores=16 memory=64GB disks=4 hbase=True
Traceback (most recent call last):
  File "/root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py", line 146, in &amp;lt;module&amp;gt;
    main()
  File "/root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py", line 99, in main
    reservedStackMemory = getReservedStackMemory(memory)
  File "/root/hdp_manual_install_rpm_helper_files-2.5.0.0.1245/scripts/yarn-utils.py", line 48, in getReservedStackMemory
    if (reservedStack.has_key(memory)):
AttributeError: 'dict' object has no attribute 'has_key'
[root@hadoop1 ~]#
&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jul 2017 05:12:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178031#M140278</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2017-07-11T05:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: cant run yarn-utils.py , with python 3.3.3</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178032#M140279</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The issue is happening as &lt;STRONG&gt;has_key&lt;/STRONG&gt; has been removed starting from Python3.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3.1/whatsnew/3.0.html#builtins" target="_blank"&gt;https://docs.python.org/3.1/whatsnew/3.0.html#builtins&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To solve the issue, edit yarn-utils.py to change the below lines and see if it helps:-&lt;/P&gt;&lt;P&gt;if (reservedStack.has_key(memory)):&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (memory in reservedStack &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (reservedHBase.has_key(memory)):&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (memory in reservedHBase):&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:42:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178032#M140279</guid>
      <dc:creator>vasubramanian</dc:creator>
      <dc:date>2017-07-11T12:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: cant run yarn-utils.py , with python 3.3.3</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178033#M140280</link>
      <description>&lt;P&gt;awesome .. that worked .&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:26:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cant-run-yarn-utils-py-with-python-3-3-3/m-p/178033#M140280</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2017-07-11T22:26:56Z</dc:date>
    </item>
  </channel>
</rss>

