Member since
12-19-2019
7
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
273 | 01-27-2020 03:24 AM |
02-17-2020
04:00 AM
Hello,
We use HDP 3.0.1 and know that HDP 3.0.1 supports Python 2.7.x. We use Superset for visualization and need to implement some extra features for Superset. So that we want to use the latest version of the Superset (0.35.2) with Python3. We wonder that does HDP 3.0.1 supports the latest version of Superset? Could we execute Superset (0.35.2) with Python3 from a different environment? The other services will use the same Python2 version as before, but only Superset will use the Python3. Is this possible? Will this situation cause any problem for other services like Hive, Druid etc. ?
... View more
Labels:
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:
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
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
12-19-2019
10:22 PM
Hello,
While I'm installing and trying to Druid, I realized that there is a mistake in the document and this mistake causes the error. On this page https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.0.1/adding-druid/content/druid_query_druid.html in step one, it said to create a file and named as wickiticker-top.json. But in step 2, when the HTTP query is made, the name of the file is written as wikiticker-top.json. Yesterday I'm trying to execute this command and it gave me an error. Then I realized that the name of the file is written wrongly. After I edit the name of the file, everything is worked as I expected but this situation took my time. To avoid other people having the same problem, it should be edited as soon as possible.
For your information.
... View more
Labels: