You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Alejandro Fernandez (JIRA)" <ji...@apache.org> on 2014/11/06 23:04:34 UTC

[jira] [Updated] (AMBARI-8147) Rolling Upgrade - Bootstrap cluster to support RUs

     [ https://issues.apache.org/jira/browse/AMBARI-8147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Fernandez updated AMBARI-8147:
----------------------------------------
    Description: 
1. Create new tables and populate during the installation of a new cluster.
*cluster_version* table
||Column||Type||Keys||Example||
|id|BIGINT|PK|1|
|cluster_id|BIGINT|FK|2|
|stack|VARCHAR(255)| |HDP-2.2 |
|version|VARCHAR(255)| |HDP-2-2.0.1-885 |
|state| VARCHAR(32) | |INSTALLED, CURRENT, UPGRADING, UPGRADE_FAILED |
|start_time|DATETIME| |2014-10-31 14:00:00|
|end_time|DATETIME| |2014-10-31 15:00:00|
|user_name|VARCHAR(32)| |admin|

*hostcomponentstate* table
Add column upgrade_state VARCHAR(32) ("NONE" is the default, "UPGRADING", "UPGRADE_FAILED")

*host_version* table
||Column||Type||Keys||Example||
|id|BIGINT|PK|1|
|host_name|VARCHAR(255)|FK hosts.name|c6401.ambari.apache.org|
|stack|VARCHAR(255)| |HDP-2.2|
|version|VARCHAR(255)| |2.2.0.1-885|
|state|VARCHAR(32)| |INSTALLED, CURRENT, NOT_INSTALLED|

2. Whenever adding a host or service, update the tables above.
Adding a host already populates the *hostcomponentstate* table, so the upgrade_state column needs to have a default value.
Adding a host needs to look up the currently installed stack, and add a record for the host in the *hostversion* table.

3. The upgrade from Ambari 1.7.0 to Ambari 2.0.0 should create these tables, and bootstrap them with data.

  was:
1. Create new tables and populate during the installation of a new cluster.
*clusterversion* table
||Column||Type||Keys||Example||
|id|BIGINT|PK|1|
|cluster_id|BIGINT|FK|2|
|stack|VARCHAR(255)| |HDP-2.2 |
|version|VARCHAR(255)| |HDP-2-2.0.1-885 |
|state| VARCHAR(32) | |INSTALLED, CURRENT, UPGRADING, UPGRADE_FAILED |
|start_time|DATETIME| |2014-10-31 14:00:00|
|end_time|DATETIME| |2014-10-31 15:00:00|
|user_name|VARCHAR(32)| |admin|

*hostcomponentstate* table
Add column upgrade_state VARCHAR(32) ("NONE" is the default, "UPGRADING", "UPGRADE_FAILED")

*hostversion* table
||Column||Type||Keys||Example||
|id|BIGINT|PK|1|
|host_name|VARCHAR(255)|FK hosts.name|c6401.ambari.apache.org|
|stack|VARCHAR(255)| |HDP-2.2|
|version|VARCHAR(255)| |2.2.0.1-885|
|state|VARCHAR(32)| |INSTALLED, CURRENT, NOT_INSTALLED|

2. Whenever adding a host or service, update the tables above.
Adding a host already populates the *hostcomponentstate* table, so the upgrade_state column needs to have a default value.
Adding a host needs to look up the currently installed stack, and add a record for the host in the *hostversion* table.

3. The upgrade from Ambari 1.7.0 to Ambari 2.0.0 should create these tables, and bootstrap them with data.


> Rolling Upgrade - Bootstrap cluster to support RUs
> --------------------------------------------------
>
>                 Key: AMBARI-8147
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8147
>             Project: Ambari
>          Issue Type: Story
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Alejandro Fernandez
>            Assignee: Alejandro Fernandez
>             Fix For: 2.0.0
>
>
> 1. Create new tables and populate during the installation of a new cluster.
> *cluster_version* table
> ||Column||Type||Keys||Example||
> |id|BIGINT|PK|1|
> |cluster_id|BIGINT|FK|2|
> |stack|VARCHAR(255)| |HDP-2.2 |
> |version|VARCHAR(255)| |HDP-2-2.0.1-885 |
> |state| VARCHAR(32) | |INSTALLED, CURRENT, UPGRADING, UPGRADE_FAILED |
> |start_time|DATETIME| |2014-10-31 14:00:00|
> |end_time|DATETIME| |2014-10-31 15:00:00|
> |user_name|VARCHAR(32)| |admin|
> *hostcomponentstate* table
> Add column upgrade_state VARCHAR(32) ("NONE" is the default, "UPGRADING", "UPGRADE_FAILED")
> *host_version* table
> ||Column||Type||Keys||Example||
> |id|BIGINT|PK|1|
> |host_name|VARCHAR(255)|FK hosts.name|c6401.ambari.apache.org|
> |stack|VARCHAR(255)| |HDP-2.2|
> |version|VARCHAR(255)| |2.2.0.1-885|
> |state|VARCHAR(32)| |INSTALLED, CURRENT, NOT_INSTALLED|
> 2. Whenever adding a host or service, update the tables above.
> Adding a host already populates the *hostcomponentstate* table, so the upgrade_state column needs to have a default value.
> Adding a host needs to look up the currently installed stack, and add a record for the host in the *hostversion* table.
> 3. The upgrade from Ambari 1.7.0 to Ambari 2.0.0 should create these tables, and bootstrap them with data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)