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-08-2018
09:51 AM
Hi @Ilya Li , If you are using default postgreSQL of ambari , Please follow this steps which might help you get ride to this issue 1) Stop ambari -server 2) login to psql psql -U ambari ambari (default password will be bigdata) select * from ambari.stack where stack_id in (select clusters.desired_stack_id from ambari.clusters); probably it will be pointing towards HDF-3.1.0 if my assumption is correct or pointing towards a wrong REPO then you might need to update the desired_stack_id to HDF-3.1.2 which is your current version , cluster id yu can get from clusters table. update clusters set desired_stack_id = X where cluster_id = Y; You will get the stack_ID X from this command : select stack_id,stack_version from stack; Please refer to this help which explains it very good manner : https://community.hortonworks.com/content/supportkb/150258/the-ambari-versions-page-keeps-loading-when-upgrad.html Suggested DB backup before this operaton If PostgreSQL: pg_dump -U ambari ambari > ./ambari_$(date +"%Y%m%d%H%M%S").sql If MySQL: mysqldump -u ambari -p ambari > ./ambari_$(date +"%Y%m%d%H%M%S").sql After the opration you can start ambari-server. Please mark the asnwer as accepted if this helps you.
... View more
08-08-2018
09:30 AM
1 Kudo
hi @XM , It seems you might have removed some tasks manually from the database. can you please execute following commands and see if it helps you. select * from host_role_command where stage_id in (select stage_id from upgrade_item) order by task_id;
select * from upgrade_item where stage_id not in (select distinct(stage_id) from host_role_command);
select * from upgrade_group;
select * from upgrade_item; the upgrade_item table contains all the subtasks of upgrade and host_role_command contains all the tasks. both are mapped with stage_id Please use more specific scripts than '*' as i gave if you are using the command line to inspect queries. I use PGAdmin 4 a UI tool which gives a better idea of the tables. There is another simple way which I can suggest downgrade and upgrade again and don't modify Database unless you take backup. hope this Comment helps you.
... View more
08-08-2018
09:12 AM
Hi @Berry Österlund , I think you will get a good idea about the issue from the error logs itself. exit code 255 is just to inform the task which ambari is performing as part of upgrade is failed. Seeing the command it seems you have have upgraded to /usr/hdp/3.0.0.0-1634 . Can you try to mannually run the command on the node which demands to run and see if you get some clue from it ?
... View more
08-08-2018
09:04 AM
Hi @Ilya Li , Can you please open developer console of your browser and see if there any Error exists in your UI. you can press Press Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac) for the same. Usually after the upgrade there is a chance some JS files are cached. can you see the Ambari-ui in incognito window and see if there is any exception. Please post the screenshot of exception if you see any in Chrome console.
... View more
08-08-2018
06:41 AM
HI @XM , No there is no way you can manually mark the upgrade as complete, unless you are editing the database. you can explore the Tables host_role_command and see if there is any task pending stage as I mentioned in the previous comment. and carefully change those to completed stage might help. Take ambari backup before the mannual editings. and pause upgrade and stop ambari-server while operation.
... View more
08-08-2018
06:38 AM
HI @Sadique Manzar , Seeing the exception snippets , Just a quick doubt. Have you created the table with adding 'STORED AS ORC' if not you might need to recreate the table with adding the tag. Additionaly mention your HDP version too. it can be a case where you can be hitting some known issues like : https://issues.apache.org/jira/browse/HIVE-18258
... View more
08-08-2018
06:22 AM
HI @XM, It seems you are stuck at upgrade . Can you please pause the upgrade and resume the upgrade , see if this works ? If it doesnt you might need to see which task is ambari waiting for you can use this command in DB to see which Task is state wich is not in completed,Aborted state: select distinct(status) from host_role_command; If some tasks are instatus= HOLDING or HOLDING_TIMEOUT stage you might need to make it to completed or Aborted. Additionally can you please tell which is the operation you performed to remove a row from ambari_db. it's not suggested usually to remove a ROW in database instead you can change its status to completed or Aborted. Hope this helps.
... View more
08-07-2018
04:07 PM
1 Kudo
Hi @Saurabh , Its not possible to register a host with IP.its suggested using the FQDN so that it will be easy to change ip in /etc/hosts if IP changes in future. IF you try to give the IP in Add Host wizard it will show this corresponding error message : The following hostnames are not valid FQDNs:
172.26.69.17
This may cause problems during installation. Do you want to continue? Later the registration will fail with below error message Registeringwith the server...Registrationwith the server failed. you won't find any errors in ambari-server logs. What I can suggest you is changing the yarn configs replace it with IP's instead of FQDN . See if that works. If this solves your issue, please mark this as accepted.
... View more
08-07-2018
04:03 PM
Hi @Saurabh , Its not possible to register a host with IP.its suggested to use the FQDN so that it will be easy to change ip in /etc/hosts if IP changes in future. IF you try to give the IP in Add Host wizard it will show this coresponding error message : The following hostnames are not valid FQDNs: 172.26.69.17 This may cause problems during installation. Do you want to continue? Later the registration will fail with below error message Registering with the server...
Registration with the server failed. you wont find any errors in ambari-server logs. Then I tried with FQDN of corresponding IP . its success. Hope this helps. If you find this answer helpfull please mark as accepted which will help other users.
... View more
08-07-2018
12:39 PM
Hi @shobha, yeah you can do that. but its always better to run the select command mentioned abouve to see whats wrong in your database
... View more