Support Questions
Find answers, ask questions, and share your expertise

Unable to install HCat in a datanode

New Contributor

Dear,

I am installing a new datanode on my CentOS7 and I am getting below error while installing HCat, can someone help me to fix this issue?

Here is the error log:

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_client.py", line 85, in <module>
    HCatClient().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/HIVE/0.12.0.2.0/package/scripts/hcat_client.py", line 35, in install
    self.install_packages(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 567, in install_packages
    retry_count=agent_stack_retry_count)
  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/package/__init__.py", line 54, 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 51, 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 86, 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 98, in _call_with_retries
    code, out = func(cmd, **kwargs)
  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/bin/yum -d 0 -e 0 -y install hive_2_5_6_0_40' returned 1. groupadd: cannot open /etc/group
/usr/bin/install: invalid group 'zookeeper'
/usr/bin/install: invalid group 'zookeeper'
error: %pre(zookeeper_2_5_6_0_40-3.4.6.2.5.6.0-40.el6.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package zookeeper_2_5_6_0_40-3.4.6.2.5.6.0-40.el6.noarch
error: zookeeper_2_5_6_0_40-3.4.6.2.5.6.0-40.el6.noarch: install failed
groupadd: cannot open /etc/group
/usr/bin/install: invalid group 'hive'
/usr/bin/install: invalid group 'hive'
/usr/bin/install: invalid group 'hive'
chmod: cannot access '/var/lib/hive/metastore': No such file or directory
/usr/bin/install: invalid group 'hive'
/usr/bin/install: invalid group 'hive'
error: %pre(hive_2_5_6_0_40-1.2.1000.2.5.6.0-40.el6.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package hive_2_5_6_0_40-1.2.1000.2.5.6.0-40.el6.noarch
1 ACCEPTED SOLUTION

Accepted Solutions

Mentor

@jhon miran

I think on the new host the group zookeeper and hive weren't created. Can you run the below to check substitute hive and zookeeper

cat /etc/group| grep hive

If they don't exit then try creating them

groupadd hive
groupadd zookeeper

Then retry installing the HCAT

View solution in original post

1 REPLY 1

Mentor

@jhon miran

I think on the new host the group zookeeper and hive weren't created. Can you run the below to check substitute hive and zookeeper

cat /etc/group| grep hive

If they don't exit then try creating them

groupadd hive
groupadd zookeeper

Then retry installing the HCAT

View solution in original post