Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

failed to start metron

failed to start metron

New Contributor

stderr: /var/lib/ambari-agent/data/errors-568.txt

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.5.1.1.5.1.0/package/scripts/enrichment_master.py", line 121, in <module>
    Enrichment().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.5.1.1.5.1.0/package/scripts/enrichment_master.py", line 115, in restart
    self.configure(env)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 120, in locking_configure
    original_configure(obj, *args, **kw)
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.5.1.1.5.1.0/package/scripts/enrichment_master.py", line 44, in configure
    group=params.metron_group)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 120, in action_create
    raise Fail("Applying %s failed, parent directory %s doesn't exist" % (self.resource, dirname))
resource_management.core.exceptions.Fail: Applying File['/usr/hcp/1.5.1.0-16/metron/config/enrichment-splitjoin.properties'] failed, parent directory /usr/hcp/1.5.1.0-16/metron/config doesn't exist
3 REPLIES 3
Highlighted

Re: failed to start metron

Super Collaborator

@Habtamu Wubneh the install seems broken looking at this error:

Applying File['/usr/hcp/1.5.1.0-16/metron/config/enrichment-splitjoin.properties'] failed, parent directory /usr/hcp/1.5.1.0-16/metron/config doesn't exist

Can you check if this is a fresh install and that the folder is present?

Also, you seem to be using an older version of HCP. Can you try with latest?

Re: failed to start metron

Community Manager

The above question was originally posted in the Community Help track. On Thu Aug 1 03:57 UTC 2019, a member of the HCC moderation staff moved it to the CyberSecurity track. The Community Help Track is intended for questions about using the HCC site itself, not technical questions about HCP.

Bill Brooks, Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Re: failed to start metron

New Contributor

stderr: /var/lib/ambari-agent/data/errors-685.txt

when I try the latest the following error is occured. Can you help me?

Traceback (most recent call last):

  File "/var/lib/ambari-agent/cache/common-services/METRON/0.7.1.1.9.1.0/package/scripts/enrichment_master.py", line 121, in <module>

    Enrichment().execute()

  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute

    method(env)

  File "/var/lib/ambari-agent/cache/common-services/METRON/0.7.1.1.9.1.0/package/scripts/enrichment_master.py", line 62, in start

    self.configure(env)

  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 120, in locking_configure

    original_configure(obj, *args, **kw)

  File "/var/lib/ambari-agent/cache/common-services/METRON/0.7.1.1.9.1.0/package/scripts/enrichment_master.py", line 52, in configure

    metron_service.init_zk_config(params)

  File "/var/lib/ambari-agent/cache/common-services/METRON/0.7.1.1.9.1.0/package/scripts/metron_service.py", line 43, in init_zk_config

   path=ambari_format("{java_home}/bin")

  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__

    self.env.run()

  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run

    self.run_action(resource, action)

  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action

    provider_action()

  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 262, in action_run

    tries=self.resource.tries, try_sleep=self.resource.try_sleep)

  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner

   result = function(command, **kwargs)

  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call

    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)

  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper

    result = _call(command, **kwargs_copy)

  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 303, in _call

    raise ExecutionFailed(err_msg, code, out, err)

resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/hcp/1.9.1.0-6/metron/bin/zk_load_configs.sh --zk_quorum master.sip.com:2181,worker1.sip.com:2181,worker2.sip.com:2181 --mode PUSH --input_dir /usr/hcp/1.9.1.0-6/metron/config/zookeeper' returned 127. /bin/bash: /usr/hcp/1.9.1.0-6/metron/bin/zk_load_configs.sh: No such file or directory