Github user JonZeolla commented on the issue:
https://github.com/apache/metron/pull/760
This is failing to spin up for me. As a part of Metron Enrichment Start,
during:
```
2017-09-19 18:05:54,844 - Execute['/usr/metron/0.4.1/bin/zk_load_configs.sh
--zk_quorum node1:2181 --mode PATCH --config_type GLOBAL --patch_path
/tmp/metron-global-config-patch.json'] {'path': ['/usr/jdk64/jdk1.8.0_77/bin']}
```
I get
```
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/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 280, in execute
method(env)
File
"/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/enrichment_master.py",
line 58, in start
self.configure(env)
File
"/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/enrichment_master.py",
line 50, in configure
metron_service.refresh_configs(params)
File
"/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/metron_service.py",
line 129, in refresh_configs
patch_global_config(params)
File
"/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/metron_service.py",
line 111, in patch_global_config
path=ambari_format("{java_home}/bin")
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
line 155, 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 273, 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 70,
in inner
result = function(command, **kwargs)
File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92,
in checked_call
tries=tries, try_sleep=try_sleep)
File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140,
in _call_wrapper
result = _call(command, **kwargs_copy)
File
"/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293,
in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of
'/usr/metron/0.4.1/bin/zk_load_configs.sh --zk_quorum node1:2181 --mode PATCH
--config_type GLOBAL --patch_path /tmp/metron-global-config-patch.json'
returned 255. Unable to parse args: --zk_quorum node1:2181 --mode PATCH
--config_type GLOBAL --patch_path /tmp/metron-global-config-patch.json
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option:
--patch_path
at org.apache.commons.cli.Parser.processOption(Parser.java:363)
at org.apache.commons.cli.Parser.parse(Parser.java:199)
at org.apache.commons.cli.Parser.parse(Parser.java:85)
at
org.apache.metron.common.cli.ConfigurationManager$ConfigurationOptions.parse(ConfigurationManager.java:140)
at
org.apache.metron.common.cli.ConfigurationManager.main(ConfigurationManager.java:352)
usage: configuration_manager
-c,--config_type <CONFIG_TYPE> The configuration type: GLOBAL,
PARSER, ENRICHMENT, INDEXING,
PROFILER
-f,--force Force operation
-h,--help Generate Help screen
-i,--input_dir <DIR> The input directory containing
the configuration files named
like "$source.json"
-m,--mode <MODE> The mode of operation: DUMP,
PULL, PUSH, PATCH
-n,--config_name <CONFIG_NAME> The configuration name: bro,
yaf, snort, squid, etc.
-o,--output_dir <DIR> The output directory which will
store the JSON configuration
from Zookeeper
-pf,--patch_file <PATCH_FILE> Path to the patch file.
-pk,--patch_key <PATCH_KEY> The key to modify
-pm,--patch_mode <PATCH_MODE> One of: ADD, REMOVE - relevant
only for key/value patches,
i.e. when a patch file is not
used.
-pv,--patch_value <PATCH_VALUE> Value to use in the patch.
-z,--zk_quorum <host:port,[host:port]*> Zookeeper Quorum URL
(zk1:port,zk2:port,...)
```
---