Member since
12-19-2019
7
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2185 | 01-27-2020 03:24 AM |
01-27-2020
03:24 AM
I resolve the problem. The cause of the error is that when Solr is installed, Solr user and group can not be created automatically. I add Solar user and its group manually from the terminal with this command (1004 is the Oozie's group id): useradd -g 1004 infra-solr -m -d /home/infra-solr --shell /bin/bash
... View more
01-23-2020
05:06 AM
Hello,
I'm trying to install Infra Solr from Ambari. After installation, when i restart the Infra Solr, the status of the service is red and it gives error below:
Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 51, in _ensure_metadata
_user_entity = pwd.getpwnam(user)
KeyError: 'getpwnam(): name not found: infra-solr'
The above exception was the cause of the following exception:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/infra_solr.py", line 171, in <module>
InfraSolr().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/infra_solr.py", line 54, in start
self.configure(env)
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/infra_solr.py", line 49, in configure
setup_infra_solr(name = 'server')
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA_SOLR/0.1.0/package/scripts/setup_infra_solr.py", line 38, in setup_infra_solr
group=params.user_group
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 125, in __new__
cls(names_list.pop(0), env, provider, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 199, in action_create
recursion_follow_links=self.resource.recursion_follow_links, safemode_folders=self.resource.safemode_folders)
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 53, in _ensure_metadata
raise Fail("User '{0}' doesn't exist".format(user))
resource_management.core.exceptions.Fail: User 'infra-solr' doesn't exist
I google it, but i cannot find any solution. Does anybody know the cause of this error?
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache Solr
12-31-2019
06:11 AM
Thank you @stevenmatison. I can install properly from https://github.com/steven-dfheinz/dfhz_elk_mpack.
... View more
12-31-2019
03:55 AM
When i try to install ELK to my cluster (HDP 3.0, HDF 3.2 and Ambari 2.7.1) according to these steps, i get this error: Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 1060, in <module> mainBody() File "/usr/sbin/ambari-server.py", line 1030, in mainBody main(options, args, parser) File "/usr/sbin/ambari-server.py", line 980, in main action_obj.execute() File "/usr/sbin/ambari-server.py", line 79, in execute self.fn(*self.args, **self.kwargs) File "/usr/lib/ambari-server/lib/ambari_server/setupMpacks.py", line 900, in install_mpack (mpack_metadata, mpack_name, mpack_version, mpack_staging_dir, mpack_archive_path) = _install_mpack(options, replay_mode) File "/usr/lib/ambari-server/lib/ambari_server/setupMpacks.py", line 700, in _install_mpack tmp_root_dir = expand_mpack(tmp_archive_path) File "/usr/lib/ambari-server/lib/ambari_server/setupMpacks.py", line 151, in expand_mpack archive_root_dir = get_archive_root_dir(archive_path) File "/usr/lib/ambari-server/lib/resource_management/libraries/functions/tar_archive.py", line 82, in get_archive_root_dir with closing(tarfile.open(archive, mode(archive))) as tar: File "/usr/lib64/python2.7/tarfile.py", line 1678, in open return func(name, filemode, fileobj, **kwargs) File "/usr/lib64/python2.7/tarfile.py", line 1729, in gzopen raise ReadError("not a gzip file") tarfile.ReadError: not a gzip file Does anyone know the cause of this error?
... View more