You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "David Cameron (JIRA)" <ji...@apache.org> on 2014/06/30 16:53:25 UTC

[jira] [Commented] (AMBARI-5705) Fail to install hive client with error: Fail: Execution of '/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf --retry 5 http://hadoop1:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'' returned 22.

    [ https://issues.apache.org/jira/browse/AMBARI-5705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047722#comment-14047722 ] 

David Cameron commented on AMBARI-5705:
---------------------------------------

I just installed the entire HDP-2.1 (except Hive) using Ambari 1.6.0 and ran into what appears to be this exact bug.

As some background, I’m behind a corporate firewall, so I had to configure proxies for curl, wget and yum. Every other package installed BUT Hive. According to the remedy for this bug every use of curl to contact the Ambari host should include the –noproxy flag. It appears that when retrieving DBConnectionVerification.jar it got left off.

Here is the error message that came out of Ambari:
2014-06-27 12:26:59,487 – Error while executing command ‘install’:
Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py”, line 105, in execute
method(env)
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_client.py”, line 28, in install
self.configure(env)
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive_client.py”, line 34, in configure
hive(name=’client’)
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package/scripts/hive.py”, line 81, in hive
environment = environment)
File “/usr/lib/python2.6/site-packages/resource_management/core/base.py”, line 148, in __init__
self.env.run()
File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 149, in run
self.run_action(resource, action)
File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 115, in run_action
provider_action()
File “/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py”, line 239, in action_run
raise ex
Fail: Execution of ‘/bin/sh -c ‘cd /usr/lib/ambari-agent/ && curl -kf –retry 5 http://datamanager.mydomain.com:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar” returned 22. % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 –:–:– 0:00:05 –:–:– 0
0 0 0 0 0 0 0 0 –:–:– 0:00:05 –:–:– 0
curl: (22) The requested URL returned error: 404 Not Found

The folks over in the Hortonworks Forum asked that I comment here so as to capture the issue at the source.

Thanks!

> Fail to install hive client with error: Fail: Execution of '/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf --retry 5 http://hadoop1:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'' returned 22.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-5705
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5705
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller, test
>    Affects Versions: 1.5.0
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 1.6.0
>
>         Attachments: AMBARI-5705.patch, AMBARI-5705_branch-1.6.0.patch
>
>
> PROBLEM: Fresh install of HDP 2.1, when deploying hive client it fail with error: Execution of '/bin/sh -c 'cd /usr/lib/ambari-agent/ && curl -kf --retry 5 http://hadoop1:8080/resources/DBConnectionVerification.jar -o DBConnectionVerification.jar'' returned 22.
> Steps to reproduce: set up a proxy (http_proxy="<proxy host that has not access to cluster>"). 
> Fix: 
> Added
> {code}
> --noproxy <ambari-server hostname>
> {code}
> option to all our curl invocations that download files from ambari-server. I would go for this option because sometimes ftp_proxy may be used as well.
> Also, I've fixed an error message that is shown when jce_name property is not defined in a non-secure cluster and added a proper handling of this situation in secure cluster.



--
This message was sent by Atlassian JIRA
(v6.2#6252)