Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2730 | 04-27-2020 03:48 AM | |
| 5288 | 04-26-2020 06:18 PM | |
| 4458 | 04-26-2020 06:05 PM | |
| 3584 | 04-13-2020 08:53 PM | |
| 5383 | 03-31-2020 02:10 AM |
09-28-2017
05:17 AM
@Vinay MP If this issue is resolved then can you please mark this thread as "Accepted". Or if you found any other solution then please share.
... View more
09-27-2017
12:59 PM
@Dima Kovalyov Thank you for sharing the solution. This "sed" command will be quick and good to change on a large cluster.
... View more
09-26-2017
04:43 PM
@Kumar Veerappan The Following kind of Ambari API call can show which NameNode is Active and which one is StandBy. Syntax: curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET "http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/components/NAMENODE?ServiceComponentInfo/category=MASTER&fields=ServiceComponentInfo/service_name,host_components/metrics/dfs/FSNamesystem/HAState" Example: curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/components/NAMENODE?ServiceComponentInfo/category=MASTER&fields=ServiceComponentInfo/service_name,host_components/metrics/dfs/FSNamesystem/HAState" . Example Output of the above call might look like: {
"href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/components/NAMENODE?ServiceComponentInfo/category=MASTER&fields=ServiceComponentInfo/service_name,host_components/metrics/dfs/FSNamesystem/HAState",
"ServiceComponentInfo" : {
"category" : "MASTER",
"cluster_name" : "plain_ambari",
"component_name" : "NAMENODE",
"service_name" : "HDFS"
},
"host_components" : [
{
"href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/hosts/amb25101.example.com/host_components/NAMENODE",
"HostRoles" : {
"cluster_name" : "plain_ambari",
"component_name" : "NAMENODE",
"host_name" : "amb25101.example.com"
},
"metrics" : {
"dfs" : {
"FSNamesystem" : {
"HAState" : "active"
}
}
}
},
{
"href" : "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/hosts/amb25102.example.com/host_components/NAMENODE",
"HostRoles" : {
"cluster_name" : "plain_ambari",
"component_name" : "NAMENODE",
"host_name" : "amb25102.example.com"
},
"metrics" : {
"dfs" : {
"FSNamesystem" : {
"HAState" : "standby"
}
}
}
}
]
* Connection #0 to host amb25101.example.com left intact
} .
... 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
09-22-2017
03:15 AM
@Pathan Shehbaz Ambari Blueprint based cluster creation is one the best option to Automate HDP cluster creation. Blueprint can be easily integrated with Ansible as well ... as those are simple Curl Calls to the ambari server. To know more about Ambari Blueprint feature please refer to : https://cwiki.apache.org/confluence/display/AMBARI/Blueprints Please refer to step by Step tutorial By @Kuldeep Kulkarni https://community.hortonworks.com/articles/47170/automate-hdp-installation-using-ambari-blueprints.html https://community.hortonworks.com/articles/47171/automate-hdp-installation-using-ambari-blueprints-1.html https://community.hortonworks.com/articles/61358/automate-hdp-installation-using-ambari-blueprints-2.html https://community.hortonworks.com/articles/70189/automate-hdp-installation-using-ambari-blueprints-3.html https://community.hortonworks.com/articles/78969/automate-hdp-installation-using-ambari-blueprints-4.html https://community.hortonworks.com/articles/78969/automate-hdp-installation-using-ambari-blueprints-5.html https://community.hortonworks.com/articles/78969/automate-hdp-installation-using-ambari-blueprints-6.html Some Useful Scripts for Automated Cluster can be found here: https://github.com/crazyadmins/useful-scripts/tree/master/hdp-automated-setup https://github.com/crazyadmins/useful-scripts/
... View more
09-22-2017
02:10 AM
1 Kudo
@Sree Kupp It happens Python version is "python-2.7.5" or higher, hence you should try to either downgrade the python version to lower than python-2.7.5 as it causes this issue. [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) (OR) Else you will need to following the steps mentioned in the following doc to fix the "certificate verify failed (_ssl.c" issue while using RHEL7: Controlling and troubleshooting certificate verification: https://access.redhat.com/articles/2039753#controlling-certificate-verification-7 # vi /etc/python/cert-verification.cfg
[https]
verify=disable . Valid values are enable (verification is enabled by default), disable (verification is disabled by default), . Also please check the related threads: 1. https://community.hortonworks.com/questions/120861/ambari-agent-ssl-certificate-verify-failed-certifi.html 2. https://community.hortonworks.com/questions/121978/openssl-compatibility.html 3. https://community.hortonworks.com/questions/138820/ambari-server-failing-to-communicate-with-ambari-a.html .
... View more
09-21-2017
05:13 AM
@darkz yu This is the step that i followed: 1). Copied the "flume_monitor.py" script to ambari server "/var/lib/ambari-server/resources/host_scripts" location. # scp /Users/jsensharma/Downloads/40443-test/flume_monitor.py root@amb25101:/var/lib/ambari-server/resources/host_scripts . 2). Now i pushed the alert definition to my ambari cluster. # curl -u admin:admin -i -H 'X-Requested-By:ambari' -X POST -d @/Users/jsensharma/Downloads/40443-test/flume_monitor.json http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/alert_definitions
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Cache-Control: no-store
Pragma: no-cache
Set-Cookie: AMBARISESSIONID=j2au8meo5w73182sf1wnjn9z8;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
User: admin
Content-Type: text/plain
Content-Length: 0 3). Restarted Ambari Server. # ambari-server restart 4). Checked the Ambari UI. My Cluster Details: [root@amb25101 ambari-server]# ambari-server --version
2.5.1.0-159
[root@amb25101 ambari-server]# python --version
Python 2.7.5 .
... View more
09-21-2017
01:42 AM
@darkz yu There is a typo in UNKNOWN word, Although it might not be causing the issue. return 'UNKNOW','UNKNOW data' . Can you please share the steps that you followed like Where have you placed the script and the sample script, alerts.json. The Ambari Version, I will try the same at my end.
... View more
09-20-2017
01:23 PM
@darkz yu Where exactly are you putting your custom alert script? Is it the following location? /var/lib/ambari-server/resources/host_scripts . I have written a similar article on this customization: https://community.hortonworks.com/articles/38149/how-to-create-and-register-custom-ambari-alerts.html Above link will give some idea about how to run the alert manually using "?run_now=true" something like following: # curl -u admin:admin -i -H 'X-Requested-By:ambari' -X PUT http://node1.example.com:8080/api/v1/clusters/ClusterDemo/alert_definitions/151?run_now=true .
... View more
09-20-2017
12:36 PM
@darkz yu Also will it be possible if you can share your monitor.py script.
... View more