Member since
07-30-2019
453
Posts
112
Kudos Received
80
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1462 | 04-12-2023 08:58 PM | |
3474 | 04-04-2023 11:48 PM | |
1030 | 04-02-2023 10:24 PM | |
2686 | 07-05-2019 08:38 AM | |
2733 | 05-13-2019 06:21 AM |
08-07-2018
11:28 AM
Hi @chaouki trabelsi , Are you able to resolve the issue. I hope if you run the Command ambari-agent start as root user you should be able to start the ambari-agent. If you are still facing the issue . Please attach the error logs while running the command to this thread. hope this helps.
... View more
08-07-2018
11:21 AM
1 Kudo
Hi @forest lin , Can you please pause the upgrade, Make the configuration change and Try to resume the upgrade? As per current ambari design once upgrade is going on all configuration changes will be at paused stage. Thanks, Akhil
... View more
08-07-2018
11:00 AM
Hi @Shobhna Dhami , thanks for attaching the trace. From Trace, it seems like you have a mytest.example.com that already exists in database. I would suggest you raise a case with hortonworks support if you are a customer so that our engineers can fix this issue for you. Or else. Follow this steps . 1) take a DB backup ( so that you can restore incase you got something wrong in database) pg_dump -U ambari ambari > ./ambari_$(date +"%Y%m%d%H%M%S").sql 2) stop Ambari-server 3) login to Postgres ( default password will be bigdata) [root@aanaik1 ~]# psql -U ambari ambari
Password for user ambari:
psql (9.2.23)
Type "help" for help.
ambari=> select host_id,host_name,ipv4,public_host_name from ambari.hosts;
ambari=> SELECT * FROM ambari.hoststate;
<br> you might find some duplicate entries for the host_name mytest.example.com. you need to remove existing hosts after verifying that they do not have any services installed and not in use. you can run the command : ambari=> select * from hoststate where host_id in (select host_id from hosts where host_name like '%mytest.example.com%');
ambari=> delete from hoststate where host_id in (select host_id from hosts where host_name like '%mytest.example.com%');
ambari=> select * from hosts where host_name like '%mytest.example.com%' ;
ambari=> delete from hosts where host_name like '%mytest.example.com%' ; and then try to run the host update command again. This commands are as per my understanding on the issue. you might need to investigate based on contents of ambari.hosts and ambari.hoststate table as you are more aware then me about your cluster configuration. I would suggest if it's your production cluster then you can actually contact hortonworks support for this operation here: https://hortonworks.com/services/support/ hope this helps. If this helps. Please accept the answer so that it will be helpfull for other users facing same issue. .
... View more
08-07-2018
05:44 AM
Hi @Shobhna Dhami, Can you post the last few lines of the exception in server logs which will actually specify the reason in code format like below. I am code format also the below exception seems to be some exception related to hive views and i dont think its related to changing hostnames. Please see the log timestamp and post the logs related to correct time when the issue have occured. you can even try to run the command again and post the logs of current timestamp.
... View more
08-07-2018
05:24 AM
Hi @Shobhna Dhami , you might need to stop ambari-agent in all hosts , stop ambari-server Update host name as per the doc ( i see you are reffering to ambari-2.2.2.18 doc) refer to the version you are using. then start ambari-server and ambari-agent . Then try to stop and start datanodes. If the hostname ip is changed then ambari-agent may be in lost heartbeat state You can mannually try to stop datanode if you need : refer to : https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_reference/content/stopping_hdp_services.html this URL refers to HDP-2.6.5 please refer to your corresponding HDP. additionally if your command is failing please analyse ambari-server logs at /var/log/ambari-server/ambari-server.log and search the Error trace here in community. you will find lot of similar article. if not please attach those exceptions here with 'code' format ( easy to read) will be happy to help you.
... View more
08-07-2018
05:18 AM
Hi @Guozhen Li Just would like to advise you ambari-server logs are at /var/log/ambari-server/ambari-server.log ambari start up logs are (where you see out of memory, coredump if it happens ) /var/log/ambari-server/ambari-server.out ambari-views(hive views , CapacityScheduler view ) logs are in the folder /var/log/ambari-server/<corresponding-view-name> ambari-agent logs are at : /var/log/ambari-agent/ambari-agent.log ambari operations logs (start service , stop service) will be at folder of corresponding node. here in this folder you can find corresponding error-XXXX.txt , output-XXXX.txt and command-XXXX.txt which can be used for troubleshooting /var/lib/ambari-agent/data/ Hope this helps you. If my answer helped you please accept the answer which would help another guys who face the same trouble.
... View more
08-07-2018
02:05 AM
1 Kudo
Hi @Guozhen Li , This error seems to be generic and doesn't give any clue. Can you go into /var/lib/ambai-agent/data/errors-2610.txt and also output-2610.txt and see if you can find any clue, attach its output.. Additionally, you can do inspect /var/log/ambari-server/ambari-server.log and see what error its thrown and attach here. Hope you have added this in core-site of hdfs hadoop.proxyuser.root.groups=*
hadoop.proxyuser.root.hosts=*
... View more
08-01-2018
06:29 PM
Hi @Michael Bronson, sorry i missed the comment as you didnt tag me by name. you can follow the same method with --action=set . you can refer to this Good document by apache : https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations#Modifyconfigurations-Editconfigurationusingconfigs.py Please Mark answer as resolved if this helped you 🙂
... View more
08-01-2018
03:57 AM
Hi @Kalyan Das , I think its better to create a new community thread for the issue you are facing . it will be easily viewable by other community users for which they are willing to help . Comments here wont allow posting screenshots and other things.
... View more
07-31-2018
06:37 PM
1 Kudo
Hi @Michael Bronson , I see you want to perform this operation via REST API , I see the rest api method is very tough at you need to fetch the whole configs first, add your own configs and use PUT method to save it. I would suggest you use config.py method. for ex: below commands worked for me. Please note i use admin/admin and my cluster name is asnaik , [root@anaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=anaik1 --cluster=asnaik --config-type=yarn-site --key=yarn.nodemanager.localizer.cache.target-size-mb --value=10240 [root@anaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=anaik1 --cluster=asnaik --config-type=yarn-site --key=yarn.nodemanager.localizer.cache.cleanup.interval-ms --value=300000 Please mark the thread as resolved if this answers your query. Let me know if you need the harder method. can help you with that too. but requires two REST API calls and some shell scripting.
... View more