Support Questions

Find answers, ask questions, and share your expertise

Failed starting metron due to zk_load_configs.sh unavailable

avatar
Contributor

Hi,

I was installing metron via ambari and it succeed, but when starting the service i got this error.

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1.1.4.1.0/package/scripts/enrichment_master.py", line 117, in <module>
    Enrichment().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1.1.4.1.0/package/scripts/enrichment_master.py", line 111, in restart
    self.configure(env)
  File "/usr/lib/python2.6/site-packages/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.4.1.1.4.1.0/package/scripts/enrichment_master.py", line 48, in configure
    metron_service.init_zk_config(params)
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1.1.4.1.0/package/scripts/metron_service.py", line 41, in init_zk_config
    path=ambari_format("{java_home}/bin")
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/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/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/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.4.1.0-18/metron/bin/zk_load_configs.sh --zk_quorum masternode-02:2181,masternode-01:2181,insight-svr:2181 --mode PUSH --input_dir /usr/hcp/1.4.1.0-18/metron/config/zookeeper' returned 127. /bin/bash: /usr/hcp/1.4.1.0-18/metron/bin/zk_load_configs.sh: No such file or directory

Thanks.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@asubramanian

As I had reiterated your installation didn't go smoothly, the workaround could be to copy all the missing folders under 1.4.0.0-38 to 1.4.0.0-18 folder and retry.

cd $METRON_HOME/bin
./zk_load_configs.sh -i ../config/zookeeper -m PUSH -z ${zookeeper}

If your setup in not on bare metal but VMware then better start from scratch .

Where is your Ambari server? If its co-related with the Master node the don't dedicate a node to only the database that would be wastage of resources make it a master

3 masternode        # the 3 zookeeper should be insatlled here 
3 workernode        # Primarily Datanodes /nodemanager/Hbase regionc servers
1 edge node

Hope that helps

View solution in original post

10 REPLIES 10

avatar
Contributor

@Geoffrey Shelton Okot

I install it on bare metal, i have 1 dedicated server for ambari.

if i want to uninstall metron and reinstall it on the cluster again, how to do it?