You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Bellow you can see some issues that I have encountered on HDP 3.1.
I present my quick fixes (I don't know if this is the best approach but maybe will help someone :) )
Error:
File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/shared_initialization.py", line 50, in setup_users
groups = params.user_to_groups_dict[user],
KeyError: u'redis'
Error:
ImportError: cannot import name format_hdp_stack_version
Fix:
In file REDIS-5.0.0/package/scripts/params.py
replace 'format_hdp_stack_version' with 'format_stack_version'
Error:
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/REDIS-5.0.0/package/scripts/redisSlave.py", line 30, in install
ignore_failures=True
TypeError: new() takes at least 2 arguments (1 given)
Fix:
Remove 'username' from 'User' object creation in both redisSlave.py and redisMaster.py.
E.g.
User(params.redis_user,
gid=params.redis_group,
groups=[params.redis_group],
ignore_failures=True
)
Hello,
Bellow you can see some issues that I have encountered on HDP 3.1.
I present my quick fixes (I don't know if this is the best approach but maybe will help someone :) )
File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/shared_initialization.py", line 50, in setup_users
groups = params.user_to_groups_dict[user],
KeyError: u'redis'
Fix:
https://community.hortonworks.com/questions/212871/add-custom-service-via-ambari-error.html
I have choose 'python configs.py' solution.
ImportError: cannot import name format_hdp_stack_version
Fix:
In file REDIS-5.0.0/package/scripts/params.py
replace 'format_hdp_stack_version' with 'format_stack_version'
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/REDIS-5.0.0/package/scripts/redisSlave.py", line 30, in install
ignore_failures=True
TypeError: new() takes at least 2 arguments (1 given)
Fix:
Remove 'username' from 'User' object creation in both redisSlave.py and redisMaster.py.
E.g.
User(params.redis_user,
gid=params.redis_group,
groups=[params.redis_group],
ignore_failures=True
)
hdp_3.1_fix.txt
The text was updated successfully, but these errors were encountered: