You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Anand Subramanian (JIRA)" <ji...@apache.org> on 2017/06/09 09:55:18 UTC

[jira] [Created] (METRON-993) Quick dev broken with latest master - services unable to start

Anand Subramanian created METRON-993:
----------------------------------------

             Summary: Quick dev broken with latest master - services unable to start
                 Key: METRON-993
                 URL: https://issues.apache.org/jira/browse/METRON-993
             Project: Metron
          Issue Type: Bug
    Affects Versions: 0.4
            Reporter: Anand Subramanian


I am trying to bring up a quick dev environment using the latest bits from master and I noticed that metron services fails to come up. The below error is seen for Metron Enrichment in Ambari:

{code}
stderr: 
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.3.1/package/scripts/enrichment_master.py", line 84, 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.3.1/package/scripts/enrichment_master.py", line 51, in start
    metron_service.load_global_config(params)
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.3.1/package/scripts/metron_service.py", line 76, in load_global_config
    init_config()
  File "/var/lib/ambari-agent/cache/common-services/METRON/0.3.1/package/scripts/metron_service.py", line 31, in init_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.3.1/bin/zk_load_configs.sh --mode PUSH -i /usr/metron/0.3.1/config/zookeeper -z node1:2181' returned 127. /bin/bash: /usr/metron/0.3.1/bin/zk_load_configs.sh: No such file or directory
 stdout:
2017-06-09 09:32:22,007 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2017-06-09 09:32:22,007 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2017-06-09 09:32:22,009 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-06-09 09:32:22,097 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2017-06-09 09:32:22,098 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-06-09 09:32:22,304 - checked_call returned (0, '')
2017-06-09 09:32:22,306 - Ensuring that hadoop has the correct symlink structure
2017-06-09 09:32:22,306 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-06-09 09:32:23,537 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2017-06-09 09:32:23,561 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2017-06-09 09:32:23,562 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-06-09 09:32:23,915 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2017-06-09 09:32:23,918 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-06-09 09:32:24,110 - checked_call returned (0, '')
2017-06-09 09:32:24,111 - Ensuring that hadoop has the correct symlink structure
2017-06-09 09:32:24,112 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-06-09 09:32:24,116 - Group['metron'] {}
2017-06-09 09:32:24,118 - Group['elasticsearch'] {}
2017-06-09 09:32:24,119 - Group['hadoop'] {}
2017-06-09 09:32:24,119 - Group['kibana'] {}
2017-06-09 09:32:24,119 - Group['users'] {}
2017-06-09 09:32:24,120 - User['metron'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,121 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,129 - User['elasticsearch'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,139 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,143 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users']}
2017-06-09 09:32:24,144 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,145 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,146 - User['kibana'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,147 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop']}
2017-06-09 09:32:24,148 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-06-09 09:32:24,152 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2017-06-09 09:32:24,210 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa'] due to not_if
2017-06-09 09:32:24,211 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2017-06-09 09:32:24,218 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2017-06-09 09:32:24,224 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2017-06-09 09:32:24,239 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if
2017-06-09 09:32:24,240 - Group['hdfs'] {}
2017-06-09 09:32:24,241 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'hdfs']}
2017-06-09 09:32:24,243 - FS Type: 
2017-06-09 09:32:24,244 - Directory['/etc/hadoop'] {'mode': 0755}
2017-06-09 09:32:24,314 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2017-06-09 09:32:24,316 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2017-06-09 09:32:24,383 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2017-06-09 09:32:24,574 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}
2017-06-09 09:32:24,576 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}
2017-06-09 09:32:24,577 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}
2017-06-09 09:32:24,587 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2017-06-09 09:32:24,622 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2017-06-09 09:32:24,627 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2017-06-09 09:32:24,718 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs', 'group': 'hadoop'}
2017-06-09 09:32:24,719 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2017-06-09 09:32:24,721 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2017-06-09 09:32:24,737 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}
2017-06-09 09:32:24,760 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2017-06-09 09:32:26,022 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2017-06-09 09:32:26,023 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2017-06-09 09:32:26,024 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-06-09 09:32:26,227 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2017-06-09 09:32:26,228 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2017-06-09 09:32:26,398 - checked_call returned (0, '')
2017-06-09 09:32:26,400 - Ensuring that hadoop has the correct symlink structure
2017-06-09 09:32:26,400 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-06-09 09:32:26,410 - Create Metron Local Config Directory
2017-06-09 09:32:26,410 - Configure Metron global.json
2017-06-09 09:32:26,411 - Directory['/usr/metron/0.3.1/config/zookeeper'] {'owner': 'metron', 'group': 'metron', 'mode': 0755}
2017-06-09 09:32:26,477 - File['/usr/metron/0.3.1/config/zookeeper/global.json'] {'content': InlineTemplate(...), 'owner': 'metron'}
2017-06-09 09:32:26,528 - File['/usr/metron/0.3.1/config/zookeeper/../elasticsearch.properties'] {'content': InlineTemplate(...), 'owner': 'metron'}
2017-06-09 09:32:26,529 - Writing File['/usr/metron/0.3.1/config/zookeeper/../elasticsearch.properties'] because it doesn't exist
2017-06-09 09:32:26,530 - Changing owner for /usr/metron/0.3.1/config/zookeeper/../elasticsearch.properties from 0 to metron
2017-06-09 09:32:26,530 - Loading config into ZooKeeper
2017-06-09 09:32:26,531 - Execute['/usr/metron/0.3.1/bin/zk_load_configs.sh --mode PUSH -i /usr/metron/0.3.1/config/zookeeper -z node1:2181'] {'path': ['/usr/jdk64/jdk1.8.0_77/bin']}

Command failed after 1 tries
{code}

Further, on ssh into node1, I can see that there are two folders present under /usr/metron - one with 0.3.1 and another with 0.4.0.
{code}
[vagrant@node1 metron]$ ls /usr/metron/*
/usr/metron/0.3.1:
bin  config  flux  lib

/usr/metron/0.4.0:
bin  config  flux  lib  patterns
{code}

Here is the output of my platform-info script
{code}
Metron 0.4.0
--
* master
--
commit 7d6121bfd3bd622940e9f411ac87b56d29755596
Author: cstella <ce...@gmail.com>
Date:   Fri Jun 9 00:52:34 2017 -0400
    METRON-987: Allow stellar enrichments to be specified by a list as well as a map closes apache/metron#609
--
--
ansible 2.0.0.2
  config file =
  configured module search path = Default w/o overrides
--
Vagrant 1.8.1
--
Python 2.7.12
--
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:47+05:30)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
--
Docker version 1.12.1, build 23cf638, experimental
--
node
v7.10.0
--
npm
4.2.0
--
Darwin HW12724-4.local 15.6.0 Darwin Kernel Version 15.6.0: Tue Apr 11 16:00:51 PDT 2017; root:xnu-3248.60.11.5.3~1/RELEASE_X86_64 x86_64
--
Total System Memory = 16384 MB
Processor Model: Intel(R) Core(TM) i7-4870HQ CPU
Processor Speed: 2.50GHz
Total Physical Processors: 4
Total cores: 4
Disk information:
/dev/disk1     465Gi  364Gi  100Gi    79% 95513266 26330444   78%   /
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)