Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2438 | 04-27-2020 03:48 AM | |
4870 | 04-26-2020 06:18 PM | |
3973 | 04-26-2020 06:05 PM | |
3212 | 04-13-2020 08:53 PM | |
4907 | 03-31-2020 02:10 AM |
02-15-2017
09:19 AM
@rahul gulati Although the workaround is quite simple. Just edit the file "/usr/lib/python2.6/site-packages/ambari_agent/main.py" Just change the line "server_ip = socket.gethostbyname(server_hostname)" as mentioned in:
https://git1-us-west.apache.org/repos/asf?p=ambari.git;a=commitdiff;h=a43837a35536096224a77356a4049ea5b01a8bdc;hp=8b3ec80cef1ac453b53b24cd0e0efa944cb45c89 This need to be done on all the ambari-agent hosts and then followed by "ambari-agent restart"
.
NOTE: It should help only if your issue is exactly same as the one mentioned in : https://issues.apache.org/jira/browse/AMBARI-19246
... View more
02-15-2017
04:31 AM
@Manish Anand You mentioned that [The server log is still showing the same error. I have in fact dropped the "AMBARIDATABASE".] Are you checking the latest log? Can you clear the "/var/log/ambari-server/*" directory old logs and then freshly start ambari server sothat we can see the latest log. Also please try the run the following command to findout from where is it getting that name ? # cd /etc/ambari-server/conf/
# find . -name "*.*" | xargs grep -i "AMBARIDATABASE" .
... View more
02-15-2017
03:21 AM
@Manish Anand Just for testing try the following: 0. Stop ambari-server and take the Posgtres DB dump using "pg_dump" utility.
ambari-server stop 1. Rename the database "AMBARIDATABASE" to lowercase "ambari" (or something else like "xyzdb") alter database "AMBARIDATABASE" RENAME TO "ambari";
2. Edit the "/etc/ambari-server/conf/ambari.properties" and change the database name to the new one. server.jdbc.database_name=ambari
3. Start ambari-server. ambari-server start .
... View more
02-14-2017
01:14 PM
7 Kudos
@Georg Heiler You can export the blueprint of your current cluster as : http://erie1.example.com:8080/api/v1/clusters/ErieCluster?format=blueprint . Please see: https://cwiki.apache.org/confluence/display/AMBARI/Blueprints To export a blueprint from an existing cluster:
curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://c6401.ambari.apache.org:8080/api/v1/clusters/TestCluster?format=blueprint .
Also get the blueprint registered: curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://c6401.ambari.apache.org:8080/api/v1/blueprints .
... View more
02-14-2017
08:56 AM
@Maher Hattabi In Windiws there is "START" command that can be used to work similar to "&" in unix. Did you try that? Try to use the "/B" switch, like this: C:\> start /B start-dfs.cmd . Or else you may try to run refer to the approach mentioned in the following link: http://www.winhelponline.com/blog/run-bat-files-invisibly-without-displaying-command-prompt/
... View more
02-14-2017
07:51 AM
@Maher Hattabi I am not very clear about waht do you mean by two CLI here. Can you please let us know how are you starting those components? Are you starting those components using the following commands? nohup hadoop-daemon.sh start namenode &
nohup hadoop-daemon.sh start datanode & - You can run then in background or use Ambari to manage the start & stop. Are you following the below mentioned doc: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.3/bk_reference/content/starting_hdp_services.html
... View more
02-14-2017
05:31 AM
@Anna Qin Do you see the following file in your system ? If yes then try running it manually to reset the password of ambari. /usr/sbin/ambari-admin-password-reset As you mentioned that there is no log "/var/log/ambari-server", that indicates that due to some reason ambari-server might not be running so you shoudl try restarting it on your own: ambari-server start
ambari-server status .
... View more
02-13-2017
10:40 AM
@Vladislav Falfushinsky As you have deleted the cluster so it is better to reset the ambari. Like following then use it. ambari-server reset . please remember that reset will clean the ambari database. So that you can start freshly. Also how did you delete the cluster? By accident or intentionally. By directly editing the Database?
... View more
02-13-2017
10:09 AM
@kishore sanchina For example when you will access the API: http://erie1.example.com:8080/api/v1/clusters/ErieCluster/alert_definitions/33 Then you might get the following kind of output: {
href: "http://erie1.example.com:8080/api/v1/clusters/ErieCluster/alert_definitions/33",
AlertDefinition: {
cluster_name: "ErieCluster",
component_name: "APP_TIMELINE_SERVER",
description: "This host-level alert is triggered if the App Timeline Server Web UI is unreachable.",
enabled: true,
help_url: null,
id: 47,
ignore_host: false,
interval: 1,
label: "App Timeline Web UI",
name: "yarn_app_timeline_server_webui",
repeat_tolerance: 1,
repeat_tolerance_enabled: false,
scope: "ANY",
service_name: "YARN",
source: {
reporting: {
ok: {
text: "HTTP {0} response in {2:.3f}s"
},
warning: {
text: "HTTP {0} response from {1} in {2:.3f}s ({3})"
},
critical: {
text: "Connection failed to {1} ({3})"
}
},
type: "WEB",
uri: {
http: "{{yarn-site/yarn.timeline-service.webapp.address}}/ws/v1/timeline",
https: "{{yarn-site/yarn.timeline-service.webapp.https.address}}/ws/v1/timeline",
https_property: "{{yarn-site/yarn.http.policy}}",
https_property_value: "HTTPS_ONLY",
kerberos_keytab: "{{yarn-site/yarn.timeline-service.http-authentication.kerberos.keytab}}",
kerberos_principal: "{{yarn-site/yarn.timeline-service.http-authentication.kerberos.principal}}",
default_port: 0,
connection_timeout: 5
}
}
}
} - Then while putting the above edited JSON data back to ambari you should remove the second line from it ...which is following: href: "http://erie1.example.com:8080/api/v1/clusters/ErieCluster/alert_definitions/33" .
... View more
02-13-2017
10:06 AM
@kishore sanchina Before you do the "-X PUT" the "app_def.json" you must delete the "href" line from very second line of your json file.
... View more