Support Questions

Find answers, ask questions, and share your expertise

Apache metron installation on centos 7

New Contributor

ERROR :------------------


TASK [ambari_gather_facts : set_fact] ******************************************

skipping: [node1]


TASK [ambari_gather_facts : set_fact] ******************************************

ok: [node1]


TASK [ambari_gather_facts : Ask Ambari: namenode_host] *************************

fatal: [node1]: FAILED! => {"changed": true, "cmd": "curl -s -u admin:admin -X GET -H \"X-Requested-By: ambari\" 'http://node1:8080/api/v1/clusters/metron_cluster/services/HDFS/components/NAMENODE' | python -c 'import sys, json; print json.load(sys.stdin)[\"host_components\"][0][\"HostRoles\"][\"host_name\"]'\n", "delta": "0:00:00.348825", "end": "2019-08-09 08:39:24.099609", "msg": "non-zero return code", "rc": 1, "start": "2019-08-09 08:39:23.750784", "stderr": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\nIndexError: list index out of range", "stderr_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", "IndexError: list index out of range"], "stdout": "", "stdout_lines": []}


PLAY RECAP *********************************************************************

node1 : ok=94 changed=22 unreachable=0 failed=1 skipped=24 rescued=0 ignored=0

Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.


###########################################################

[metron@localhost scripts]$ sh platform-info.sh

Metron 0.7.2

--

* master

--

commit 771d66b5a806f9c0f1c53c1782977e00fa26917a

Author: tigerquoll

Date: Mon Aug 5 10:16:19 2019 -0600


METRON-2195 Add defensive log level checks when constructing logs is expensive (tigerquoll via mmiklavc) closes apache/metron#1473

--

--

ansible 2.8.2

config file = /etc/ansible/ansible.cfg

configured module search path = [u'/home/metron/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

ansible python module location = /usr/lib/python2.7/site-packages/ansible

executable location = /usr/bin/ansible

python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

--

Vagrant 2.2.5

--

vagrant-hostmanager (1.8.9, global)

--

Python 2.7.5

--

Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T00:30:29+05:30)

Maven home: /opt/packages/apache-maven-3.6.1

Java version: 1.8.0_222, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/jre

Default locale: en_US, platform encoding: UTF-8

OS name: "linux", version: "3.10.0-957.27.2.el7.x86_64", arch: "amd64", family: "unix"

--

Docker version 1.13.1, build 7f2769b/1.13.1

--

node

v6.17.1

--

npm

3.10.10

--

g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

Copyright (C) 2015 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


--

Compiler is C++11 compliant

--

Linux localhost.localdomain 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

--

Total System Memory = 31639.2 MB

Processor Model: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

Processor Speed: 2681.213 MHz

Processor Speed: 3100.122 MHz

Processor Speed: 3044.750 MHz

Processor Speed: 3099.957 MHz

Total Physical Processors: 4

Total cores: 8

Disk information:

/dev/mapper/centos-root 50G 17G 34G 34% /

/dev/sda1 1014M 236M 779M 24% /boot

/dev/mapper/centos-home 172G 11G 162G 7% /home

This CPU appears to support virtualization

###########################################################


2 REPLIES 2

Super Collaborator

I see your Docker version seems old. Can you upgrade to a more recent and try again?

I am running ...

Docker version 17.12.0-ce, build c97c6d6

New Contributor

Hello @asubramanian,


Thanks for your response.


As recommended i ran latest version of docker (19 build) as well the same version recommended by you docker (17.12.0). Both the time it ran into same error.

Logs

Error:

TASK [ambari_gather_facts : Ask Ambari: namenode_host] *************************

fatal: [node1]: FAILED! => {"changed": true, "cmd": "curl -s -u admin:admin -X GET -H \"X-Requested-By: ambari\" 'http://node1:8080/api/v1/clusters/metron_cluster/services/HDFS/components/NAMENODE' | python -c 'import sys, json; print json.load(sys.stdin)[\"host_components\"][0][\"HostRoles\"][\"host_name\"]'\n", "delta": "0:00:00.266343", "end": "2019-08-09 19:25:48.157355", "msg": "non-zero return code", "rc": 1, "start": "2019-08-09 19:25:47.891012", "stderr": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\nIndexError: list index out of range", "stderr_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", "IndexError: list index out of range"], "stdout": "", "stdout_lines": []}


PLAY RECAP *********************************************************************

node1 : ok=94 changed=21 unreachable=0 failed=1 skipped=24 rescued=0 ignored=0

Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.


Platform-info.sh

[metron@localhost scripts]$ sh platform-info.sh

Metron 0.7.2

--

* master

--

commit 771d66b5a806f9c0f1c53c1782977e00fa26917a

Author: tigerquoll <tigerquoll@outlook.com>

Date: Mon Aug 5 10:16:19 2019 -0600


METRON-2195 Add defensive log level checks when constructing logs is expensive (tigerquoll via mmiklavc) closes apache/metron#1473

--

--

ansible 2.8.2

config file = /etc/ansible/ansible.cfg

configured module search path = [u'/home/metron/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

ansible python module location = /usr/lib/python2.7/site-packages/ansible

executable location = /usr/bin/ansible

python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

--

Vagrant 2.2.5

--

vagrant-hostmanager (1.8.9, global)

--

Python 2.7.5

--

Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T00:30:29+05:30)

Maven home: /opt/packages/apache-maven-3.6.1

Java version: 1.8.0_222, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el7_6.x86_64/jre

Default locale: en_US, platform encoding: UTF-8

OS name: "linux", version: "3.10.0-957.27.2.el7.x86_64", arch: "amd64", family: "unix"

--

Docker version 17.12.0-ce, build c97c6d6

--

node

v6.17.1

--

npm

3.10.10

--

g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

Copyright (C) 2015 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


--

Compiler is C++11 compliant

--

Linux localhost.localdomain 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

--

Total System Memory = 31639.2 MB

Processor Model: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz

Processor Speed: 3099.957 MHz

Total Physical Processors: 4

Total cores: 8

Disk information:

/dev/mapper/centos-root 50G 17G 34G 34% /

/dev/sda1 1014M 236M 779M 24% /boot

/dev/mapper/centos-home 172G 11G 162G 6% /home

This CPU appears to support virtualization


More Info:

repo is on /opt/metron

running vagrant up && vagrant provision with user metron

[metron@localhost scripts]$ id metron

uid=1000(metron) gid=1000(metron) groups=1000(metron),10(wheel)

before running i will have to set below permission

sudo chown -R metron:metron /opt /var/run/docker*


Im struggling to get this up past 2 weeks. Your help on the same shall be grateful.

Thanks,