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

Olivier Renault commented on AMBARI-3723:
-----------------------------------------

We're good. I've build it with the above command and it's perfect. Pls ignore 
me.

Thanks, 
Olivier
rpm -qlp 
/root/incubator-ambari/ambari-client/target/rpm/ambari-client/RPMS/x86_64/ambari-client-1.3.0-SNAPSHOT20131110222705.x86_64.rpm
/usr/lib/python2.6/site-packages/ambari_client
/usr/lib/python2.6/site-packages/ambari_client/__init__.py
/usr/lib/python2.6/site-packages/ambari_client/__init__.pyc
/usr/lib/python2.6/site-packages/ambari_client/ambari_api.py
/usr/lib/python2.6/site-packages/ambari_client/ambari_api.pyc
/usr/lib/python2.6/site-packages/ambari_client/core
/usr/lib/python2.6/site-packages/ambari_client/core/__init__.py
/usr/lib/python2.6/site-packages/ambari_client/core/__init__.pyc
/usr/lib/python2.6/site-packages/ambari_client/core/coreutils.py
/usr/lib/python2.6/site-packages/ambari_client/core/errors.py
/usr/lib/python2.6/site-packages/ambari_client/core/errors.pyc
/usr/lib/python2.6/site-packages/ambari_client/core/http_client.py
/usr/lib/python2.6/site-packages/ambari_client/core/http_client.pyc
/usr/lib/python2.6/site-packages/ambari_client/core/http_utils.py
/usr/lib/python2.6/site-packages/ambari_client/core/http_utils.pyc
/usr/lib/python2.6/site-packages/ambari_client/core/rest_resource.py
/usr/lib/python2.6/site-packages/ambari_client/core/rest_resource.pyc
/usr/lib/python2.6/site-packages/ambari_client/model
/usr/lib/python2.6/site-packages/ambari_client/model/__init__.py
/usr/lib/python2.6/site-packages/ambari_client/model/__init__.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/base_model.py
/usr/lib/python2.6/site-packages/ambari_client/model/base_model.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/cluster.py
/usr/lib/python2.6/site-packages/ambari_client/model/cluster.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/component.py
/usr/lib/python2.6/site-packages/ambari_client/model/component.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/configuration.py
/usr/lib/python2.6/site-packages/ambari_client/model/configuration.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/host.py
/usr/lib/python2.6/site-packages/ambari_client/model/host.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/paths.py
/usr/lib/python2.6/site-packages/ambari_client/model/paths.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/service.py
/usr/lib/python2.6/site-packages/ambari_client/model/service.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/stack.py
/usr/lib/python2.6/site-packages/ambari_client/model/stack.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/status.py
/usr/lib/python2.6/site-packages/ambari_client/model/status.pyc
/usr/lib/python2.6/site-packages/ambari_client/model/utils.py
/usr/lib/python2.6/site-packages/ambari_client/model/utils.pyc
/usr/lib/python2.6/site-packages/ambari_client/resources
/usr/lib/python2.6/site-packages/ambari_client/resources/__init__.py
/usr/lib/python2.6/site-packages/ambari_client/resources/__init__.pyc
/usr/lib/python2.6/site-packages/ambari_client/resources/clusters.py
/usr/lib/python2.6/site-packages/ambari_client/resources/clusters.pyc
/usr/lib/python2.6/site-packages/ambari_client/resources/hosts.py
/usr/lib/python2.6/site-packages/ambari_client/resources/hosts.pyc
/usr/lib/python2.6/site-packages/ambari_client/resources/stacks.py
/usr/lib/python2.6/site-packages/ambari_client/resources/stacks.pyc

> ambari-client does not install correctly 
> -----------------------------------------
>
>                 Key: AMBARI-3723
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3723
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.1
>         Environment: CentOS6 x86_64 / HDP 1.4.1
>            Reporter: Olivier Renault
>            Assignee: subin
>             Fix For: 1.4.3
>
>
> After having installed ambari-client manually, if i register the client i get 
> : 
> >>> from ambari_client.ambari_api import AmbariClient
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.6/site-packages/ambari_client/ambari_api.py", line 
> 19, in <module>
>     from ambari_client.core.http_client import HttpClient
> ImportError: No module named core.http_client
> I've installed it on centos 6 using 
> git clone https://github.com/apache/incubator-ambari.git
> cd incubator-ambari/ambari-client/
> mvn install
> tar zxvf \
> target/ambari-client-1.3.0-SNAPSHOT/dist/ambari_client-1.0.3-SNAPSHOT.linux-x86_64.tar.g\
> -C /
> The installation is not copying the folder : core, model, resources so I’ve 
> copied it manually afterward and it now works: 
> cp -ax 
> target/ambari-client-1.3.0-SNAPSHOT/ambari_client/{resources,core,model} \
> /usr/lib/python2.6/site-packages/ambari_client/



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to