Support Questions

Find answers, ask questions, and share your expertise

Instal HDP -2.6.4 on Ambari Livy Server install issue

We encountered following problem during HPD - 2.6.4 installation using Ambari . The step it was stopped was in Livy Server install . I attached the error message below. Please help !

stderr:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.1/package/scripts/livy_server.py", line 141, in <module>
LivyServer().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.1/package/scripts/livy_server.py", line 45, in install
self.install_packages(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 821, in install_packages
retry_count=agent_stack_retry_count)
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/package/__init__.py", line 53, in action_install
self.install_package(package_name, self.resource.use_repos, self.resource.skip_repos)
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 264, in install_package
self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 266, in checked_call_with_retries
return self._call_with_retries(cmd, is_checked=True, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 283, in _call_with_retries
code, out = func(cmd, **kwargs)
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/bin/yum -d 0 -e 0 -y install spark_2_6_4_0_91' returned 1. Error: Package: glibc-2.17-196.el7_4.2.i686 (rhel-7-server-rpms)
Requires: glibc-common = 2.17-196.el7_4.2
Installed: glibc-common-2.17-222.el7.x86_64 (@repo/$releasever)
glibc-common = 2.17-222.el7
Available: glibc-common-2.17-55.el7.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7
Available: glibc-common-2.17-55.el7_0.1.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7_0.1
Available: glibc-common-2.17-55.el7_0.3.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7_0.3
Available: glibc-common-2.17-55.el7_0.5.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7_0.5
Available: glibc-common-2.17-78.el7.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-78.el7
Available: glibc-common-2.17-105.el7.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-105.el7
Available: glibc-common-2.17-106.el7_2.1.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-106.el7_2.1
Available: glibc-common-2.17-106.el7_2.4.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-106.el7_2.4
Available: glibc-common-2.17-106.el7_2.6.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-106.el7_2.6
Available: glibc-common-2.17-106.el7_2.8.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-106.el7_2.8
Available: glibc-common-2.17-157.el7.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-157.el7
Available: glibc-common-2.17-157.el7_3.1.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-157.el7_3.1
Available: glibc-common-2.17-157.el7_3.2.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-157.el7_3.2
Available: glibc-common-2.17-157.el7_3.4.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-157.el7_3.4
Available: glibc-common-2.17-157.el7_3.5.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-157.el7_3.5
Available: glibc-common-2.17-196.el7.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-196.el7
Available: glibc-common-2.17-196.el7_4.2.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-196.el7_4.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Loaded plugins: langpacks, product-id, subscription-manager
stdout:
2018-09-27 11:57:39,013 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-09-27 11:57:39,018 - Using hadoop conf dir: /usr/hdp/2.6.4.0-91/hadoop/conf
2018-09-27 11:57:39,020 - Group['livy'] {}
2018-09-27 11:57:39,021 - Group['spark'] {}
2018-09-27 11:57:39,021 - Group['hdfs'] {}
2018-09-27 11:57:39,022 - Group['hadoop'] {}
2018-09-27 11:57:39,022 - Group['users'] {}
2018-09-27 11:57:39,022 - Group['knox'] {}
2018-09-27 11:57:39,023 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,025 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,026 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,027 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-09-27 11:57:39,031 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,033 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,035 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users'], 'uid': None}
2018-09-27 11:57:39,036 - User['flume'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,040 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,041 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs'], 'uid': None}
2018-09-27 11:57:39,043 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,044 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,045 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,046 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,048 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-09-27 11:57:39,049 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-09-27 11:57:39,051 - 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 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2018-09-27 11:57:39,082 - 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 0'] due to not_if
2018-09-27 11:57:39,083 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}
2018-09-27 11:57:39,084 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-09-27 11:57:39,086 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-09-27 11:57:39,087 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}
2018-09-27 11:57:39,127 - call returned (0, '1002')
2018-09-27 11:57:39,127 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1002'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2018-09-27 11:57:39,159 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1002'] due to not_if
2018-09-27 11:57:39,160 - Group['hdfs'] {}
2018-09-27 11:57:39,160 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', u'hdfs']}
2018-09-27 11:57:39,161 - FS Type:
2018-09-27 11:57:39,161 - Directory['/etc/hadoop'] {'mode': 0755}
2018-09-27 11:57:39,178 - File['/usr/hdp/2.6.4.0-91/hadoop/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2018-09-27 11:57:39,179 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2018-09-27 11:57:39,197 - Repository['HDP-2.6-repo-51'] {'append_to_file': False, 'base_url': 'http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0', 'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-51', 'mirror_list': None}
2018-09-27 11:57:39,206 - File['/etc/yum.repos.d/ambari-hdp-51.repo'] {'content': '[HDP-2.6-repo-51]\nname=HDP-2.6-repo-51\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-09-27 11:57:39,207 - Writing File['/etc/yum.repos.d/ambari-hdp-51.repo'] because contents don't match
2018-09-27 11:57:39,207 - Repository with url http://public-repo-1.hortonworks.com/HDP-GPL/centos7/2.x/updates/2.6.4.0 is not created due to its tags: set([u'GPL'])
2018-09-27 11:57:39,208 - Repository['HDP-UTILS-1.1.0.22-repo-51'] {'append_to_file': True, 'base_url': 'http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7', 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'ambari-hdp-51', 'mirror_list': None}
2018-09-27 11:57:39,212 - File['/etc/yum.repos.d/ambari-hdp-51.repo'] {'content': '[HDP-2.6-repo-51]\nname=HDP-2.6-repo-51\nbaseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0\n\npath=/\nenabled=1\ngpgcheck=0\n[HDP-UTILS-1.1.0.22-repo-51]\nname=HDP-UTILS-1.1.0.22-repo-51\nbaseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7\n\npath=/\nenabled=1\ngpgcheck=0'}
2018-09-27 11:57:39,212 - Writing File['/etc/yum.repos.d/ambari-hdp-51.repo'] because contents don't match
2018-09-27 11:57:39,217 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-09-27 11:57:40,130 - Skipping installation of existing package unzip
2018-09-27 11:57:40,130 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-09-27 11:57:40,804 - Skipping installation of existing package curl
2018-09-27 11:57:40,805 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-09-27 11:57:41,517 - Skipping installation of existing package hdp-select
2018-09-27 11:57:41,522 - The repository with version 2.6.4.0-91 for this command has been marked as resolved. It will be used to report the version of the component which was installed
2018-09-27 11:57:41,879 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=None -> 2.6
2018-09-27 11:57:41,881 - Using hadoop conf dir: /usr/hdp/2.6.4.0-91/hadoop/conf
2018-09-27 11:57:41,890 - call['ambari-python-wrap /usr/bin/hdp-select status spark-client'] {'timeout': 20}
2018-09-27 11:57:41,945 - call returned (0, 'spark-client - 2.6.4.0-91')
2018-09-27 11:57:41,952 - Command repositories: HDP-2.6-repo-51, HDP-2.6-GPL-repo-51, HDP-UTILS-1.1.0.22-repo-51
2018-09-27 11:57:41,953 - Applicable repositories: HDP-2.6-repo-51, HDP-2.6-GPL-repo-51, HDP-UTILS-1.1.0.22-repo-51
2018-09-27 11:57:41,955 - Looking for matching packages in the following repositories: HDP-2.6-repo-51, HDP-2.6-GPL-repo-51, HDP-UTILS-1.1.0.22-repo-51
2018-09-27 11:57:52,609 - Package['spark_2_6_4_0_91'] {'retry_on_repo_unavailability': False, 'retry_count': 5}
2018-09-27 11:57:53,504 - Installing package spark_2_6_4_0_91 ('/usr/bin/yum -d 0 -e 0 -y install spark_2_6_4_0_91')
2018-09-27 11:58:21,646 - Execution of '/usr/bin/yum -d 0 -e 0 -y install spark_2_6_4_0_91' returned 1. Error: Package: glibc-2.17-196.el7_4.2.i686 (rhel-7-server-rpms)
Requires: glibc-common = 2.17-196.el7_4.2
Installed: glibc-common-2.17-222.el7.x86_64 (@repo/$releasever)
glibc-common = 2.17-222.el7
Available: glibc-common-2.17-55.el7.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7
Available: glibc-common-2.17-55.el7_0.1.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7_0.1
Available: glibc-common-2.17-55.el7_0.3.x86_64 (rhel-7-server-rpms)
glibc-common = 2.17-55.el7_0.3

4 REPLIES 4

Super Collaborator

Can you please check

/usr/hdp/2.6.4.0-91/hadoop/conf and /usr/hdp/2.6.4.0-91/spark2/conf directories for multiple-version conf files linked to spark or Livy ?

Which file you think that I should check?

From the following directory I ran ls and can see there are many configuration file and wonder which one I should look into

/usr/hdp/2.6.4.0-91/hadoop/conf


capacity-scheduler.xml kms-acls.xml secure
configuration.xsl kms-env.sh slaves
container-executor.cfg kms-log4j.properties ssl-client.xml
core-site.xml kms-site.xml ssl-client.xml.example
hadoop-env.cmd log4j.properties ssl-server.xml
hadoop-env.sh mapred-env.cmd ssl-server.xml.example
hadoop-metrics2.properties mapred-env.sh taskcontroller.cfg
hadoop-metrics.properties mapred-queues.xml.template yarn-env.cmd
hadoop-policy.xml mapred-site.xml yarn-env.sh
hdfs-site.xml mapred-site.xml.template yarn-site.xml

We do not have

usr/hdp/2.6.4.0-91/spark2/conf

Thank you

Jessica

Mentor

@jessica Chen

Can you look in /usr/hdp/current/*

All installed components will have active symlinks !!

Mentor

@jessica Chen

I think you have a problem with RHEL package

returned 1. Error: Package: glibc-2.17-196.el7_4.2.i686 (rhel-7-server-rpms)
Requires: glibc-common = 2.17-196.el7_4.2
Installed: glibc-common-2.17-222.el7.x86_64 (@repo/$releasever)

You seem to have a higher version of glibc can you downgrade to glibc-common = 2.17-196.el7_4.2

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.