Member since
07-26-2017
16
Posts
2
Kudos Received
0
Solutions
08-21-2017
08:51 PM
Hi @Geoffrey Shelton Okot: I've killed Atlas process via command line and started the service on Ambari Web Interface, and now it worked ok. Thanks for your help.
... View more
08-21-2017
08:28 PM
Thanks for your answer. I've created the directory and now other error is shown: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py", line 181, in <module>
MetadataServer().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata_server.py", line 145, in stop
user=params.metadata_user,
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/system.py", line 262, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
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 'source /usr/hdp/current/atlas-server/conf/atlas-env.sh; /usr/hdp/current/atlas-server/bin/atlas_stop.py' returned 255. Exception: [Errno 1] Operation not permitted
Traceback (most recent call last):
File "/usr/hdp/current/atlas-server/bin/atlas_stop.py", line 78, in <module>
returncode = main()
File "/usr/hdp/current/atlas-server/bin/atlas_stop.py", line 49, in main
os.kill(pid, SIGTERM)
OSError: [Errno 1] Operation not permitted
... View more
08-18-2017
02:31 PM
Hello everyone: I'm getting the following error while trying to restart Atlas server: stderr: /var/lib/ambari-agent/data/errors-410.txt Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 35, in <module>
BeforeAnyHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 29, in hook
setup_users()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py", line 53, in setup_users
set_uid(params.smoke_user, params.smoke_user_dirs)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py", line 137, in set_uid
mode=0555)
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/system.py", line 120, in action_create
raise Fail("Applying %s failed, parent directory %s doesn't exist" % (self.resource, dirname))
resource_management.core.exceptions.Fail: Applying File['/var/lib/ambari-agent/tmp/changeUid.sh'] failed, parent directory /var/lib/ambari-agent/tmp doesn't exist
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-410.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-410.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py', 'START', '/var/lib/ambari-agent/data/command-410.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', '/var/lib/ambari-agent/data/structured-out-410.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', ''] stdout: /var/lib/ambari-agent/data/output-410.txt 2017-08-18 09:29:16,185 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2017-08-18 09:29:16,519 - Stack Feature Version Info: stack_version=2.6, version=2.6.1.0-129, current_cluster_version=2.6.1.0-129 -> 2.6.1.0-129
2017-08-18 09:29:16,529 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
User Group mapping (user_group) is missing in the hostLevelParams
2017-08-18 09:29:16,531 - Group['livy'] {}
2017-08-18 09:29:16,532 - Group['spark'] {}
2017-08-18 09:29:16,532 - Group['zeppelin'] {}
2017-08-18 09:29:16,533 - Group['hadoop'] {}
2017-08-18 09:29:16,533 - Group['users'] {}
2017-08-18 09:29:16,533 - Group['knox'] {}
2017-08-18 09:29:16,533 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,534 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,535 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,536 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,537 - User['atlas'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,538 - User['oozie'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-08-18 09:29:16,538 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,539 - User['falcon'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-08-18 09:29:16,540 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-08-18 09:29:16,541 - User['zeppelin'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'zeppelin', u'hadoop']}
2017-08-18 09:29:16,542 - User['accumulo'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,542 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,543 - User['mahout'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,544 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,545 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'users']}
2017-08-18 09:29:16,545 - User['flume'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,546 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,547 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,548 - User['sqoop'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,549 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,549 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,550 - User['hcat'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,551 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,552 - User['knox'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop']}
2017-08-18 09:29:16,553 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-410.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-410.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py', 'START', '/var/lib/ambari-agent/data/command-410.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', '/var/lib/ambari-agent/data/structured-out-410.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1', '']
Command failed after 1 tries Thanks in advance for your help
... View more
Labels:
- Labels:
-
Hortonworks Data Platform (HDP)
07-26-2017
09:32 PM
1 Kudo
Hi
@Jay SenSharma. Thanks for your support, you've guided me to finally find a solution. I did the following:
Query for ambari rpm:
rpm -qa | grep ambari
ambari-metrics-monitor-2.5.1.0-159.x86_64
ambari-infra-solr-2.5.1.0-159.noarch
ambari-infra-solr-client-2.5.1.0-159.noarch
ambari-metrics-grafana-2.5.1.0-159.x86_64
ambari-metrics-hadoop-sink-2.5.1.0-159.x86_64
ambari-agent-2.5.1.0-159.x86_64
Removed ambari-infra-solr-client
yum remove ambari-infra-solr-client
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
--> Running transaction check
---> Package ambari-infra-solr-client.noarch 0:2.5.1.0-159 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================
Removing:
ambari-infra-solr-client noarch 2.5.1.0-159 installed 25 M
Transaction Summary
=======================================================================================================================
Remove 1 Package
Installed size: 25 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : ambari-infra-solr-client-2.5.1.0-159.noarch 1/1
warning: file /usr/lib/ambari-infra-solr-client/solrCloudCli.sh: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/log4j.properties: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/zookeeper-3.4.6.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/woodstox-core-asl-4.4.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/utility-1.0.0.0-SNAPSHOT.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/tools-1.7.0.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/stax2-api-3.1.4.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/solr-solrj-5.5.2.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/slf4j-log4j12-1.7.2.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/slf4j-api-1.7.2.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/objenesis-2.2.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/noggit-0.6.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/log4j-1.2.17.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/junit-4.10.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/jcl-over-slf4j-1.7.7.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/jackson-mapper-asl-1.9.13.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/jackson-core-asl-1.9.9.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/httpmime-4.4.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/httpcore-4.4.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/httpclient-4.4.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/hamcrest-core-1.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/guava-16.0.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/easymock-3.4.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-logging-1.1.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-lang-2.5.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-io-2.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-collections-3.2.2.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-codec-1.8.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-cli-1.3.1.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/commons-beanutils-1.9.2.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/checkstyle-6.19.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/antlr4-runtime-4.5.3.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/antlr-2.7.7.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs/ambari-logsearch-solr-client-2.5.1.0.159.jar: remove failed: No such file or directory
warning: file /usr/lib/ambari-infra-solr-client/libs: remove failed: No such file or directory
Verifying : ambari-infra-solr-client-2.5.1.0-159.noarch 1/1
Removed:
ambari-infra-solr-client.noarch 0:2.5.1.0-159
Complete!
Here I've noticed: "
warning: file /usr/lib/ambari-infra-solr-client/libs: remove failed: No such file or directory". That's really odd.
Installed ambari infra client again:
yum install ambari-infra-solr-client
....
Installed:
ambari-infra-solr-client.noarch 0:2.5.1.0-159
Complete!
After these steps, the ambari-infra installation via the web page shows a success message. Yes!
Thanks for your time and support
Hope this errors are reviewed and corrected in future releases.
... View more
07-26-2017
08:45 PM
Hi again @Jay SenSharma. I've checked the package installation, and is already installed in this node. Perhaps, ¿is this a problem with the python script that creates the configuration files for each component? Thanks for your time.
... View more
07-26-2017
06:49 PM
Hi Jay. Thanks for your answer. I've removed this component from installation, and now a similar problem occurs whith "Spark Client". ¿Do you have the line to install ambari-infra manually with yum (yum install ambari.....)? Thanks for your time and support.
... View more
07-26-2017
04:57 PM
1 Kudo
Thanks a lot for this post! It helped me a lot removing HDP-2.6.1.0 from my cluster. I used terminator and the following sequence of commands (hope it helps someone else). [See the atached file]completely-uninstall-hw.txt
... View more
07-26-2017
04:45 PM
Hi, I'm installing HDP-2.6.1.0 on a RHEL 7.2 cluster (4 servers). I've configured a local repo for RHEL and Ambari like this: HDP-2.6.1.0 HDP Version - HDP-2.6.1.0 HDP-UTILS-1.1.0.21 Hortonworks Data Platform Version - HDP-UTILS-1.1.0.21 ambari-2.5.1.0 ambari Version - ambari-2.5.1.0 mysql-community-server MySQL Community Server 5.7 repository
redhat-sri "redhat cd" repolist: 5,073 Followed installation steps, but installation of "Infra Solr Client" fails with error: Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/infra_solr_client.py", line 51, in <module>
InfraSolrClient().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 329, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/infra_solr_client.py", line 30, in install
self.configure(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 119, in locking_configure
original_configure(obj, *args, **kw)
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/infra_solr_client.py", line 35, in configure
setup_infra_solr(name ='client')
File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/setup_infra_solr.py", line 132, in setup_infra_solr
solr_cloud_util.setup_solr_client(params.config)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/solr_cloud_util.py", line 225, in setup_solr_client
content=StaticFile(solrCliFilename)
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/system.py", line 123, in action_create
content = self._get_content()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 160, in _get_content
return content()
File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 52, in __call__
return self.get_content()
File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 76, in get_content
raise Fail("{0} Source file {1} is not found".format(repr(self), path))
resource_management.core.exceptions.Fail: StaticFile('/usr/lib/ambari-infra-solr-client/solrCloudCli.sh') Source file /usr/lib/ambari-infra-solr-client/solrCloudCli.sh is not found
¿Anyone has faced the same problem?
... View more
Labels:
- Labels:
-
Hortonworks Data Platform (HDP)