dfhz_hdp_mpack icon indicating copy to clipboard operation
dfhz_hdp_mpack copied to clipboard

When installing Apache Flink 1.9.3 as Ambari service, a KeyError: u'flink' occurs

Open denismaggior8 opened this issue 4 years ago • 0 comments

Apache Flink 1.9.3 as Ambari service, a KeyError: u'flink' occurs:

2021-10-01 10:23:04,925 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=None -> 3.1
2021-10-01 10:23:04,930 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2021-10-01 10:23:04,932 - Group['flink'] {}
2021-10-01 10:23:04,933 - Group['livy'] {}
2021-10-01 10:23:04,933 - Group['spark'] {}
2021-10-01 10:23:04,933 - Group['hdfs'] {}
2021-10-01 10:23:04,933 - Group['hadoop'] {}
2021-10-01 10:23:04,933 - Group['users'] {}
2021-10-01 10:23:04,934 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
2021-10-01 10:23:04,935 - User['yarn-ats'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-197.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-197.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']
2021-10-01 10:23:04,958 - The repository with version 3.1.4.0-315 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2021-10-01 10:23:04,962 - Skipping stack-select on FLINK because it does not exist in the stack-select package structure.
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py", line 38, in <module>
    BeforeAnyHook().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py", line 31, in hook
    setup_users()
  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'flink'
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-52.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-52.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']

denismaggior8 avatar Oct 01 '21 20:10 denismaggior8