Created 07-10-2017 10:12 PM
[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 <module>
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 ~]#
Created 07-11-2017 05:42 AM
The issue is happening as has_key has been removed starting from Python3.
https://docs.python.org/3.1/whatsnew/3.0.html#builtins
To solve the issue, edit yarn-utils.py to change the below lines and see if it helps:-
if (reservedStack.has_key(memory)):
to
if (memory in reservedStack 😞
if (reservedHBase.has_key(memory)):
to
if (memory in reservedHBase):
Created 07-11-2017 05:42 AM
The issue is happening as has_key has been removed starting from Python3.
https://docs.python.org/3.1/whatsnew/3.0.html#builtins
To solve the issue, edit yarn-utils.py to change the below lines and see if it helps:-
if (reservedStack.has_key(memory)):
to
if (memory in reservedStack 😞
if (reservedHBase.has_key(memory)):
to
if (memory in reservedHBase):
Created 07-11-2017 03:26 PM
awesome .. that worked .
thanks