Member since
08-16-2017
25
Posts
1
Kudos Received
0
Solutions
11-23-2017
08:03 AM
Following archives will be produces. The filesize of the Log-File and also the number of archives will be ignored.
... View more
09-22-2017
07:37 AM
@Dominik Ludwig You can create a user belonging to role "Cluster User" (kind of Read Only) user. Cluster User: Users assigned to the Cluster User role can view information about the cluster and its services, including configurations, service status, and health alerts. In Ambari 2.2 and earlier, this user was referred to as the Read-only user. Effectively, the cluster user is a view-only user. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-administration/content/cluster_roles.html
... View more
08-29-2017
04:07 PM
@Dominik Ludwig You can extract more information's from the host if you do not apply the Fields filter: # curl -sH "X-Requested-By: ambari" -u admin:admin http://$AMBARI_SERVER:8080/api/v1/hosts/$HOST_TO_MONITOR . Please replace the "$HOST_TO_MONITOR" and "$AMBARI_SERVER" with the appropriate FQDN (hostnames)
... View more
08-29-2017
11:35 AM
@Dominik Ludwig I am talking about a local Ambari user it has nothing to do with the cluster. see the attached sequential screenshots to create a local user ludwig with the role of Cluster Administrator and proof of login. Please let me know ,depending on the user create in our case remember in screenshot 02 to give also Ambari admin. After creating the user then login and proceed to Manage Ambari and create the Remote cluster
... View more
08-28-2017
07:34 AM
1 Kudo
@Dominik Ludwig Please correct me uf my understanding regarding your query is not right. . We can register the remotecluster using ambari API as following, by passign the remote cluster credentials: # curl -H "X-Requested-By: ambari" -u admin:admin -X POST -d '{"ClusterInfo":{"name":"erie21","url":"http://mainremote.example.com:8080/api/v1/clusters/MainCluster","username":"admin","password":"admin"}}' http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA . - However once the remote cluster is registered, it is not possible to see the password of remote cluster using the ambari APIs. You can only update the credentials using -X PUT method and the Put data as mentioned in the above API call. curl -H "X-Requested-By: ambari" -u admin:admin -X GET http://standaloneambari.example.com:8080/api/v1/remoteclusters/RemoteClusterNameA In the response of the above command we will not see the password only the username will be visible. .
... View more
08-22-2017
08:43 AM
@Dominik Ludwig This HCC thread looks duplicate of the following thread: https://community.hortonworks.com/questions/129949/communication-between-ambari-instances.html?childToView=129951#answer-129951 . Yes Once we can access the rest API of the remote cluster then we can extract the information that the ambari server itself is able to extract from it's Database including the information's about the configurations/hosts/metrics (metrics Data is fetched from the AMS data store). Although ambari server fetches some informations from the JMX URLs of the individual components like NameNode/DataNode .. those informations are not accessible via ambari APIs as they are directly received from the Components.
... View more
08-22-2017
08:36 AM
@Dominik Ludwig Yes When we configure the "Remote Cluster" then in that case we will have to know 2 things about the remote cluster: 1. The cluster API URI: http://$REMOTE_AMBARI_HOSTNAME:8080/api/v1/clusters/$CLUSTER_NAME 2. The Remote Cluster Ambari Admin Credentials ( like admin/admin) . Once we provide the above two details in our Remote Cluster configuration then we can extract almost every details from the remote cluster Like various configurations/resources/statistics ...etc. . Ambari Makes use of the Rest APIs fully to communicate with the remote cluster. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-administration/content/registering_remote_clusters.html
... View more
08-22-2017
07:32 AM
@Dominik Ludwig Using Ambari API is the best approach instead of developing a view /tool to mofigy the ambari DB. Ambari APIs are very matured and ambari UI itself makes those API calls to fetch the details / perform operations / monitor resources. So i think in future there might be many enhancements in the ambari API ... but it wont affect current ambari API usages or fundamental behavior of API calls. So i will suggest you to rely on the ambari API instead of Direct DB modification. . There is a best link available on Ambari API usage and it's various usage for managing & monitoring resources: https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/index.md . Most of the details can be extracted using Ambari APIs (that we can extract from the Database directly)
... View more
08-22-2017
06:45 AM
Hi, that’s
it. I write my own views and I extract the Apache-Ambari database to get the
Data. I have seen that you can use Java for the views. In that case I want to
use Hibernate for the connection to the database. Many
Thanks for your help
... View more
08-18-2017
06:18 PM
Again, the API is versioned. If there are any major breaking changes, one should expect there to be a v2. If you just look at the Github trunk, then you'll see that the API spec has not changed in years, and the latest commits have been typo and hyperlink fixes.
... View more