Looks like you may have an issue with your configured users/groups in the
blueprint. I'm not sure where you got the blueprint from, but per the stack
trace it looks like the "metron" key doesn't exist in the
user_to_groups_dict.
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'metron'
https://docs.python.org/2/library/exceptions.html#exceptions.KeyError
Best,
Mike
On Wed, Jan 30, 2019 at 10:12 AM Hema malini <[email protected]>
wrote:
> Hi,
>
> I am trying to install Metron 0.7 through Mpack in Ambari in Ubuntu 14
> with 3 nodes using HCP 2.6. I am getting the below error. Can someone
> provide any documentation for the Metron set up for the current version.
>
> Error
>
> stderr:
> Traceback (most recent call last):
> File "/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py",
> line 38, in
> 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'metron'
> 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-1001.json',
> '/var/lib/ambari-agent/cache/stack-hooks/before-ANY',
> '/var/lib/ambari-agent/data/structured-out-1001.json', 'INFO',
> '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']2019-01-28 20:59:11,683 -
> Reporting component version failed
> Traceback (most recent call last):
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py",
> line 363, in execute
> self.save_component_version_to_structured_out(self.command_name)
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py",
> line 223, in save_component_version_to_structured_out
> stack_select_package_name = stack_select.get_package_name()
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
> line 109, in get_package_name
> package = get_packages(PACKAGE_SCOPE_STACK_SELECT, service_name,
> component_name)
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
> line 223, in get_packages
> supported_packages = get_supported_packages()
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
> line 147, in get_supported_packages
> raise Fail("Unable to query for supported packages using
> {0}".format(stack_selector_path))
> Fail: Unable to query for supported packages using /usr/bin/hdp-select
> stdout:
> 2019-01-28 20:59:11,645 - Stack Feature Version Info: Cluster Stack=2.6,
> Command Stack=None, Command Version=None -> 2.6
> 2019-01-28 20:59:11,649 - Using hadoop conf dir:
> /usr/hdp/current/hadoop-client/conf
> 2019-01-28 20:59:11,651 - Group['metron'] {}
> 2019-01-28 20:59:11,651 - Group['hdfs'] {}
> 2019-01-28 20:59:11,651 - Group['zeppelin'] {}
> 2019-01-28 20:59:11,652 - Group['hadoop'] {}
> 2019-01-28 20:59:11,652 - Group['users'] {}
> 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-1001.json',
> '/var/lib/ambari-agent/cache/stack-hooks/before-ANY',
> '/var/lib/ambari-agent/data/structured-out-1001.json', 'INFO',
> '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']
> 2019-01-28 20:59:11,683 - Reporting component version failed
> Traceback (most recent call last):
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py",
> line 363, in execute
> self.save_component_version_to_structured_out(self.command_name)
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py",
> line 223, in save_component_version_to_structured_out
> stack_select_package_name = stack_select.get_package_name()
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
> line 109, in get_package_name
> package = get_packages(PACKAGE_SCOPE_STACK_SELECT, service_name,
> component_name)
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
> line 223, in get_packages
> supported_packages = get_supported_packages()
> File
> "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py",
> line 147, in get_supported_packages
> raise Fail("Unable to query for supported packages using
> {0}".format(stack_selector_path))
> Fail: Unable to query for supported packages using /usr/bin/hdp-select
>
> Command failed after 1 tries
>
>
>
> <https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=86b88ee8-cd91-4ffa-a3c4-5735dab8accc>
> I’m
> protected online with Avast Free Antivirus. Get it here — it’s free
> forever.
> <https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=86b88ee8-cd91-4ffa-a3c4-5735dab8accc>
> <#m_-3980813803244137859_m_-3243092609624469034_m_6204765872626301415_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>