Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

4 Required subjects before upgrade

avatar

we are in the stage before the upgrade , ( but we see 4 requirements that need to be solve )

message is - You must meet these requirements before you can proceed.

example:

64688-capture.png

64690-capture1.png

but the requirement not really true

we check the services and we not found any service that is in maintenance mode

second all services in the clsuter are started and up

and nothing that described in requirements is true

so my question is

what we can do in this stage ?

we cant do upgrade! ,

and actually we cant uninstall because we not see any option to uninstall !!!

please advice regarding this case

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson
I see 4 messages in your Initial Issue description.

Message-1).

Verify Cluster Components Exist In Target Repository 


This kind of message can appear while starting upgrades if we have installed some custom services to our cluster which are not part of the HDP version that we are going to install. For example if you have some third party services installed in your cluster which are not coming from HDP repo then you will have to remove them before you begin the HDP upgrade.


Message-2).

All service components must be installed 


This messages indicates that you might have some services installed to your cluster which migth have some components in "INSTALL_FAILED" state.

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster/host_components?HostRoles/state=INST...


If you find any component in install failed state then please install them properly before starting the upgrade.

In some cases it might happen if the clients components might not be installed on few cluster hosts. So please check if you have CLIENT components installed properly on your cluster nodes. If not then use the following API aapproach to install the CLIENTs to your cluster nodes. (or install them using Ambari UI)

https://community.hortonworks.com/content/supportkb/150098/how-to-install-hadoop-clients-on-all-the-...

Message-3).

No Service can be in maintenance mode.


You can not start HDP upgrade if any of your service is in Maintenance mode so please run the following API call before upgrading HDp to findout if there are any Services in Maintenance Mode or not? Also similar approach you will need to use to check that all Host Components are also not in Maintenance Mode .

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster/services?ServiceInfo/maintenance_sta...


Message-4).

All Services must be started.


This message indicates that we can not start HDP component upgrades before all the components are already in running state. So we need to make sure that all the components / services are in Started stated. Also please make sure that we must run all the service checks successfully before we begin the HDP component upgrade to verify that all the components are in healthy state..

View solution in original post

32 REPLIES 32

avatar
Master Mentor

@Michael Bronson

My current version is HDP-2.6.2.0 so I am upgrading to HDP-2.6.3.0 then will do the 2.6.4.0-91 .

Is that a production cluster? I think until you finalize(the moment symlinks are created to point to the new version) your previous version should still be usuable. !!


26-upgrade.jpg

avatar

yes my cluster is prod cluster

Michael-Bronson

avatar

before the HDP Upgrade ( install ) we finalize the current version , so this isnt the problem

Michael-Bronson

avatar

the problem is that we cant upgrade from this point ( because the 4 requirement ) and we also cant falback

Michael-Bronson

avatar
Master Mentor

@Michael Bronson

If its a production cluster then by precaution I advise you to contact hortonworks support hoping you subscribed. Secondly before upgrading the production you should have tested in DEV, UAT and maybe PREPROD and clearly documented all issues encountered and it's resolution, that's the safest and recommended path.

You will have to resolve those issues before you can proceed, but as reiterated, before you finalize your upgrade your old version should still be usable as all the conf files still are pointing to HDP-2.6.0.3.

To this

$ cd /usr/hdp/current
$ ll
lrwxrwxrwx 1 root root 26 Mar 17 18:39 sqoop-client -> /usr/hdp/2.6.2.0-205/sqoop
lrwxrwxrwx 1 root root 26 Mar 17 18:39 sqoop-server -> /usr/hdp/2.6.2.0-205/sqoop
lrwxrwxrwx 1 root root 26 Mar 17 18:39 storm-client -> /usr/hdp/2.6.2.0-205/storm
lrwxrwxrwx 1 root root 26 Mar 17 18:39 storm-nimbus -> /usr/hdp/2.6.2.0-205/storm
lrwxrwxrwx 1 root root 40 Mar 17 18:39 storm-slider-client -> /usr/hdp/2.6.2.0-205/storm-slider-client

This should still point to 2.6.0.3

I am still upgrading to an intermediary version


avatar

you said " My current version is HDP-2.6.2.0 so I am upgrading to HDP-2.6.3.0 then will do the 2.6.4.0-91"

why not upgrade from HDP-2.6.2.0 to 2.6.4.0-91 , why need middle version ?

Michael-Bronson

avatar
Master Mentor

@Michael Bronson

Wanted t have the same path like you

avatar
Master Mentor

@Michael Bronson
I see 4 messages in your Initial Issue description.

Message-1).

Verify Cluster Components Exist In Target Repository 


This kind of message can appear while starting upgrades if we have installed some custom services to our cluster which are not part of the HDP version that we are going to install. For example if you have some third party services installed in your cluster which are not coming from HDP repo then you will have to remove them before you begin the HDP upgrade.


Message-2).

All service components must be installed 


This messages indicates that you might have some services installed to your cluster which migth have some components in "INSTALL_FAILED" state.

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster/host_components?HostRoles/state=INST...


If you find any component in install failed state then please install them properly before starting the upgrade.

In some cases it might happen if the clients components might not be installed on few cluster hosts. So please check if you have CLIENT components installed properly on your cluster nodes. If not then use the following API aapproach to install the CLIENTs to your cluster nodes. (or install them using Ambari UI)

https://community.hortonworks.com/content/supportkb/150098/how-to-install-hadoop-clients-on-all-the-...

Message-3).

No Service can be in maintenance mode.


You can not start HDP upgrade if any of your service is in Maintenance mode so please run the following API call before upgrading HDp to findout if there are any Services in Maintenance Mode or not? Also similar approach you will need to use to check that all Host Components are also not in Maintenance Mode .

# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://hdfcluster1.example.com:8080/api/v1/clusters/TestCluster/services?ServiceInfo/maintenance_sta...


Message-4).

All Services must be started.


This message indicates that we can not start HDP component upgrades before all the components are already in running state. So we need to make sure that all the components / services are in Started stated. Also please make sure that we must run all the service checks successfully before we begin the HDP component upgrade to verify that all the components are in healthy state..

avatar

regarding to steps 2,3 very strange because all services/components are without failed and no service / components with maintenance mode

<br>[root@master02 centos7]# curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://master02:8080/api/v1/clusters/sys65/host_components?HostRoles/state=INSTALL_FAILED                    {
  "href" : "http://master02:8080/api/v1/clusters/sys65/host_components?HostRoles/state=INSTALL_FAILED",
  "items" : [ ]


}[root@master02 centos7]#curl -u admin:admin -H "X-Requested-By: ambari" -X GET http://master02:8080/api/v1/clusters/sys65/services?ServiceInfo/maintenance_state=ON
{
  "href" : "http://master02:8080/api/v1/clusters/sys65/services?ServiceInfo/maintenance_state=ON",
  "items" : [ ]
Michael-Bronson

avatar

regarding to step 4 - we check more then twice that all service are up and running

Michael-Bronson