You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2008/06/17 00:19:44 UTC

[jira] Created: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
------------------------------------------------------------------------------------------------------------------------

                 Key: HADOOP-3573
                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
             Project: Hadoop Core
          Issue Type: Improvement
          Components: dfs
    Affects Versions: 0.17.0
            Reporter: Konstantin Shvachko
             Fix For: 0.19.0


Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614592#action_12614592 ] 

Konstantin Shvachko commented on HADOOP-3573:
---------------------------------------------

I think there is no need to support this code or the corrupt image directory.
# Current version started on 0.12 image will say "unformatted or OLD version".
# 0.12 version started on current image will say unformatted and will not corrupt it.


> Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3573
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Konstantin Shvachko
>            Assignee: Raghu Angadi
>             Fix For: 0.19.0
>
>
> Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
> A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
> This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605448#action_12605448 ] 

Konstantin Shvachko commented on HADOOP-3573:
---------------------------------------------

Part of this has already been done in HADOOP-2797. I see 4 more methods that need to be removed: 
{code}
FSImage.isConversionNeeded()
FSImage.corruptPreUpgradeStorage()
DataStorage.isConversionNeeded()
DataStorage.corruptPreUpgradeStorage()
{code}
New code should consider old (pre 0.13) images unformatted and generate a message saying that the storage is not formatted or contains old image layout.
I also think we should not create "corrupt" image directory any more.
If the image directory is not there pre 0.13 versions will not recognize the storage as formatted and fail.
Versions 0.14 - 0.17 will also fail because they require the (corrupt) image directory. 
The new code imo should ignore image directory if it exists, but should not create it if the image is upgraded to or formatted by 0.18.

> Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3573
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Konstantin Shvachko
>             Fix For: 0.19.0
>
>
> Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
> A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
> This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614833#action_12614833 ] 

Raghu Angadi commented on HADOOP-3573:
--------------------------------------

Ok, what you are saying is that we need not support the extra code we have for more precise messages when user runs 0.12 etc. Then we can remove some of the code.

So essentially 2 situations I gave above need not be handled the same way between current and older Hadoops. 

> Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3573
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Konstantin Shvachko
>            Assignee: Raghu Angadi
>             Fix For: 0.19.0
>
>
> Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
> A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
> This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko reassigned HADOOP-3573:
-------------------------------------------

    Assignee: Raghu Angadi

> Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3573
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Konstantin Shvachko
>            Assignee: Raghu Angadi
>             Fix For: 0.19.0
>
>
> Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
> A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
> This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Devaraj Das updated HADOOP-3573:
--------------------------------

    Fix Version/s:     (was: 0.19.0)

> Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3573
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Konstantin Shvachko
>            Assignee: Raghu Angadi
>
> Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
> A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
> This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3573) Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614571#action_12614571 ] 

Raghu Angadi commented on HADOOP-3573:
--------------------------------------

I think the following are the reasons why these still exist :

# If cur trunk is started on a image directory created by 0.12, it should fail without causing any loss of data. i.e. user should be able to start 0.12 back on that directory.
# If a user starts 0.12 on a directory created by current trunk, it should fail with an error.

The above were the reasons why these existed before HADOOP-2797 and looks like these are valid reasons even now. Let me know other wise.

> Remove code related to conversion of name-node and data-node storage directories to the format introduced in hadoop 0.13
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3573
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3573
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Konstantin Shvachko
>            Assignee: Raghu Angadi
>             Fix For: 0.19.0
>
>
> Hadoop 0.18 does not support direct HDFS upgrades from versions 0.13 or earlier as stated in HADOOP-2797.
> A 2 step upgrade is required in this case first from 0.x <= 0.13 to one of version 0.14 through 0.17 and then to 0.18.
> This implies that current hdfs does not need to support code related to conversions of the old (pre 0.13) storage layout to the current one introduced in 0.13 (see. HADOOP-702).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.