HDFS-8456. Introduce STORAGE_CONTAINER_SERVICE as a new NodeType. (Contributed by Arpit Agarwal)

This commit is contained in:
Arpit Agarwal 2015-06-15 11:04:02 -07:00 committed by Owen O'Malley
parent 1b9ecc264a
commit d41245ca56
4 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,9 @@
Breakdown of HDFS-7240 sub-tasks:
HDFS-8210. Ozone: Implement storage container manager. (Jitendra Pandey)
HDFS-8392. Ozone: DataNode support for multiple datasets. (Arpit Agarwal)
HDFS-8456. Ozone: Introduce STORAGE_CONTAINER_SERVICE as a new NodeType.
(Arpit Agarwal)

View File

@ -84,7 +84,8 @@ public interface HdfsServerConstants {
enum NodeType {
NAME_NODE,
DATA_NODE,
JOURNAL_NODE
JOURNAL_NODE,
STORAGE_CONTAINER_SERVICE
}
/** Startup options for rolling upgrade. */

View File

@ -262,4 +262,8 @@ public class StorageInfo {
}
return props;
}
public NodeType getNodeType() {
return storageType;
}
}

View File

@ -187,6 +187,14 @@ message StorageInfoProto {
required uint32 namespceID = 2; // File system namespace ID
required string clusterID = 3; // ID of the cluster
required uint64 cTime = 4; // File system creation time
enum NodeTypeProto {
NAME_NODE = 1;
DATA_NODE = 2;
JOURNAL_NODE = 3;
STORAGE_CONTAINER_SERVICE = 4;
}
optional NodeTypeProto nodeType = 5;
}
/**