Member since
12-19-2019
7
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1162 | 01-27-2020 03:24 AM |
09-17-2021
03:19 AM
I try to install elasticsearch-6.4.2 to my cluster(HDP 3.1 Ambari 2.7.3) , intallation was completed successfully but it could not start, and the error encounterd: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/scripts/es_master.py", line 168, in <module>
ESMaster().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
method(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 1011, in restart
self.start(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/scripts/es_master.py", line 153, in start
self.configure(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/scripts/es_master.py", line 86, in configure
group=params.es_group
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 123, in action_create
content = self._get_content()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 160, in _get_content
return content()
File "/usr/lib/ambari-agent/lib/resource_management/core/source.py", line 52, in __call__
return self.get_content()
File "/usr/lib/ambari-agent/lib/resource_management/core/source.py", line 144, in get_content
rendered = self.template.render(self.context)
File "/usr/lib/ambari-agent/lib/ambari_jinja2/environment.py", line 891, in render
return self.environment.handle_exception(exc_info, True)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/templates/elasticsearch.master.yml.j2", line 93, in top-level template code
action.destructive_requires_name: {{action_destructive_requires_name}}
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/config_dictionary.py", line 73, in __getattr__
raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'hostname' was not found in configurations dictionary! I modified the property of discovery.zen.ping.unicast.hosts from elastic-config.xml and hostname from elasticsearch-env.xml, However, it still could not start and the same error encountered, do you have any idea?
... View more
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-22-2020
12:41 AM
I faced the same exception with Ambari 2.7.1 with different scenario. The scenario happens like that: I was trying to install Apache Solr with HDP Search as mpack. I wrongly installed the old version of mpack and when I restart the Ambari, Ambari couldn't open. I looked into ambari-server.log and the error was like below: An unexpected error occured during starting Ambari Server. com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting method, java.lang.NullPointerException at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:250) at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:123) while locating org.apache.ambari.server.api.services.AmbariMetaInfo for field at org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(AmbariServer.java:179) at org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.java:179) while locating org.apache.ambari.server.controller.AmbariServer 1 error at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054) at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1101) Caused by: java.lang.NullPointerException at org.apache.ambari.server.stack.StackModule.mergeRoleCommandOrder(StackModule.java:1336) at org.apache.ambari.server.stack.StackModule.finalizeModule(StackModule.java:244) at org.apache.ambari.server.stack.StackManager.fullyResolveStacks(StackManager.java:413) at org.apache.ambari.server.stack.StackManager.<init>(StackManager.java:186) at org.apache.ambari.server.stack.StackManager$$FastClassByGuice$$33e4ffe0.newInstance(<generated>) at I tried to start ambari-server as you said with --skip-database-check but it still couldn't open. Then I install the mpack with the same version before it down again, with this command: sudo ambari-server install-mpack --mpack=/tmp/hdf-ambari-mpack-3.2.0.0-520.tar.gz --verbose and I restart the ambari-server. Then ambari-server works without problem and I can access Ambari from web. Perhaps it helps.
... View more