Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2724 | 04-27-2020 03:48 AM | |
| 5283 | 04-26-2020 06:18 PM | |
| 4448 | 04-26-2020 06:05 PM | |
| 3575 | 04-13-2020 08:53 PM | |
| 5377 | 03-31-2020 02:10 AM |
08-10-2017
05:25 AM
@Anurag Mishra 1. Are you running the AMS with proper Heap Settings? (Or with default values) Sometimes due to insufficient heap setting this can happen. Please refer to the following doc to know how to tune the AMS memory settings based on the number of nodes: https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning 2. If it still crashes then once you should try to perform the AMS data cleanup and then see if it comes up fine. https://cwiki.apache.org/confluence/display/AMBARI/Cleaning+up+Ambari+Metrics+System+Data 3. Are you running AMS in Embedded Mode (Default) or Distributed Mode (external HBase) ? .
... View more
08-10-2017
05:08 AM
@uri ben-ari As your original issue mentioned in this thread is resolved, Then we can mark this thread as "Accepted" (Answered) and continue on the other thread that you opened for the new issue. Warning: Couldn't read data from file "", this makes an empty POST. { "status" : 400, "message" : "Invalid Request: Malformed Request Body. An exception occurred parsing the request body: Unexpected character ('&' (code 38)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: java.io.StringReader@4a3484a6; line: 1, column: 3]" .
... View more
08-10-2017
04:42 AM
@Dhiraj Standalone Ambari View Instances should use their own Separate DB instead of using the Regular Operational Ambari Server DB. This is also mentioned in the recommendation: https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-views/content/standalone_server_setup.html Please see the following note in this link: Important: Do not share the DB with an Operational Ambari Server. . .
... View more
08-10-2017
03:56 AM
1 Kudo
@uri ben-ari In One of your Yesterdays Post we discussed about the Blueprint JSON parsing issue . https://community.hortonworks.com/questions/118391/ambari-cluster-what-is-the-right-syntax-in-order-t.html?childToView=118401#comment-118401 - In the above thread on the second last update we see your issue was resolved you were able to post the blueprint properly. Your new query was to be able to modify / update the blueprint. If you have some new queries to be asked which is related to the blueprint parsing then you can continue on one thread. Or Close the previously opened threads. Where you agreed to get the issue resolved which was mentioned originally during the thread creation. .
... View more
08-09-2017
01:18 PM
@uri ben-ari Have you tried restarting all the agents? Are the agent hosts able to communicate to ambari server on port 8440? Example: (from agent machines try to connect to ambari) # telnet $AMBARI_HOSTNAME 8440
(OR)
# nc -v $AMBARI_HOSTNAME 8440 . Also do you see any error on ambari-server or agent logs? /var/log/ambari-server/ambari-server.log
/var/log/ambari-agent/ambari-agent.log .
... View more
08-09-2017
12:29 PM
@uri ben-ari Looks similar another thread describing this kind of behaviour: https://community.hortonworks.com/questions/44942/how-to-updatemodify-a-blueprint-once-the-cluster-i.html . Copying few lines from there: While the Blueprint POST-ed to Ambari will not change as the state of a cluster changes, you can consider "exporting" a Blueprint from a live cluster. After a set of changes to the cluster (Config changes, services added/deleted, etc), exporting the Blueprint will provide a Blueprint that describes the current state of the cluster, which would be different than the original Blueprint used to create the cluster.
. Also i guess you should be using "-X PUT" (for update) instead of POST (For adding new setting)
... View more
08-09-2017
09:38 AM
@uri ben-ari It means either you are using some services like Nifi/Oozie and few configurations are missing like "Schema_Registry", "MassFlowManager" ... etc. So the blueprint registration is failing. The other option will be to add the "?validate_topology=false" parametere in the URL to tell ambari to not validate the blueprint so that later you can update it. # curl -u admin:admin -H "X-Requested-By: ambari" -X POST http://130.14.6.28:8080/api/v1/blueprints/HDP01?validate_topology=false -d @$path/blueprint.json
... View more
08-09-2017
09:24 AM
@uri ben-ari Please change the blueprint name to something else inside your blueprint.json file. If you want to see the rpeviously registered blueorint names then you can use the following kind of API: curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://130.14.6.28:8080/api/v1/blueprints . Blueprint name should be unique. Else you can delete the Old blueprints from your ambari server using the name> curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://130.14.6.28:8080/api/v1/blueprints/HDP01 .
... View more
08-09-2017
09:18 AM
@uri ben-ari Yes, in the POST you have twice "--data" and "-d" both are not needed together. So please try: # curl -u admin:admin -H "X-Requested-By: ambari" -d @$path/blueprint.json -X POST http://130.14.6.28:8080/api/v1/blueprints/HDP01 . OR # curl -u admin:admin -H "X-Requested-By: ambari" -X POST http://130.14.6.28:8080/api/v1/blueprints/HDP01 -d @$path/blueprint.json Here the "$path/blueprint.json" needs to be replaced with the actual path like -d@/tmp/blueprint.json .
... View more
08-09-2017
09:05 AM
@uri ben-ari You should not use the > redirect operator to move the JSON response to a file ... Instead use the Curl "-o /PATH/TO/file.json") to do the same . Please try Example: # curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://130.14.6.28:8080/api/v1/clusters/HDP01?format=blueprint -o /tmp/HDP01_blueprint.json . Still if you find any issue with the JSON data then please attach the edited JSON so that we can check the JSON characters are fine or not?
... View more