2011-12-08 06:48:45 +00:00
|
|
|
/**
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2013-06-21 19:53:21 +00:00
|
|
|
/**
|
|
|
|
* These .proto interfaces are private and stable.
|
|
|
|
* Please see http://wiki.apache.org/hadoop/Compatibility
|
|
|
|
* for what changes are allowed for a *stable* .proto interface.
|
|
|
|
*/
|
|
|
|
|
2011-12-08 06:48:45 +00:00
|
|
|
option java_package = "org.apache.hadoop.hdfs.protocol.proto";
|
|
|
|
option java_outer_classname = "ClientNamenodeProtocolProtos";
|
|
|
|
option java_generic_services = true;
|
|
|
|
option java_generate_equals_and_hash = true;
|
2012-10-27 18:25:02 +00:00
|
|
|
package hadoop.hdfs;
|
2011-12-08 06:48:45 +00:00
|
|
|
|
2013-01-04 16:49:49 +00:00
|
|
|
import "Security.proto";
|
2011-12-08 06:48:45 +00:00
|
|
|
import "hdfs.proto";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The ClientNamenodeProtocol Service defines the interface between a client
|
|
|
|
* (as runnign inside a MR Task) and the Namenode.
|
|
|
|
* See org.apache.hadoop.hdfs.protocol.ClientProtocol for the javadoc
|
|
|
|
* for each of the methods.
|
|
|
|
* The exceptions declared in the above class also apply to this protocol.
|
|
|
|
* Exceptions are unwrapped and thrown by the PB libraries.
|
|
|
|
*/
|
|
|
|
|
|
|
|
message GetBlockLocationsRequestProto {
|
|
|
|
required string src = 1; // file name
|
|
|
|
required uint64 offset = 2; // range start offset
|
|
|
|
required uint64 length = 3; // range length
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetBlockLocationsResponseProto {
|
2011-12-13 23:31:44 +00:00
|
|
|
optional LocatedBlocksProto locations = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetServerDefaultsRequestProto { // No parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetServerDefaultsResponseProto {
|
|
|
|
required FsServerDefaultsProto serverDefaults = 1;
|
|
|
|
}
|
|
|
|
|
2011-12-12 05:36:35 +00:00
|
|
|
enum CreateFlagProto {
|
2011-12-08 06:48:45 +00:00
|
|
|
CREATE = 0x01; // Create a file
|
|
|
|
OVERWRITE = 0x02; // Truncate/overwrite a file. Same as POSIX O_TRUNC
|
|
|
|
APPEND = 0x04; // Append to a file
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required FsPermissionProto masked = 2;
|
|
|
|
required string clientName = 3;
|
|
|
|
required uint32 createFlag = 4; // bits set using CreateFlag
|
|
|
|
required bool createParent = 5;
|
|
|
|
required uint32 replication = 6; // Short: Only 16 bits used
|
|
|
|
required uint64 blockSize = 7;
|
|
|
|
}
|
|
|
|
|
2013-02-06 19:52:34 +00:00
|
|
|
message CreateResponseProto {
|
|
|
|
optional HdfsFileStatusProto fs = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message AppendRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string clientName = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AppendResponseProto {
|
2011-12-14 09:27:51 +00:00
|
|
|
optional LocatedBlockProto block = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SetReplicationRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required uint32 replication = 2; // Short: Only 16 bits used
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetReplicationResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetPermissionRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required FsPermissionProto permission = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetPermissionResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetOwnerRequestProto {
|
|
|
|
required string src = 1;
|
2011-12-14 09:27:51 +00:00
|
|
|
optional string username = 2;
|
|
|
|
optional string groupname = 3;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SetOwnerResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message AbandonBlockRequestProto {
|
|
|
|
required ExtendedBlockProto b = 1;
|
|
|
|
required string src = 2;
|
|
|
|
required string holder = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AbandonBlockResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message AddBlockRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string clientName = 2;
|
2011-12-13 23:31:44 +00:00
|
|
|
optional ExtendedBlockProto previous = 3;
|
2011-12-08 06:48:45 +00:00
|
|
|
repeated DatanodeInfoProto excludeNodes = 4;
|
2013-02-06 19:52:34 +00:00
|
|
|
optional uint64 fileId = 5 [default = 0]; // default as a bogus id
|
2013-04-26 20:39:51 +00:00
|
|
|
repeated string favoredNodes = 6; //the set of datanodes to use for the block
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message AddBlockResponseProto {
|
|
|
|
required LocatedBlockProto block = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetAdditionalDatanodeRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required ExtendedBlockProto blk = 2;
|
|
|
|
repeated DatanodeInfoProto existings = 3;
|
|
|
|
repeated DatanodeInfoProto excludes = 4;
|
|
|
|
required uint32 numAdditionalNodes = 5;
|
|
|
|
required string clientName = 6;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetAdditionalDatanodeResponseProto {
|
|
|
|
required LocatedBlockProto block = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CompleteRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string clientName = 2;
|
2011-12-14 09:27:51 +00:00
|
|
|
optional ExtendedBlockProto last = 3;
|
2013-06-21 07:28:38 +00:00
|
|
|
optional uint64 fileId = 4 [default = 0]; // default to GRANDFATHER_INODE_ID
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CompleteResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReportBadBlocksRequestProto {
|
|
|
|
repeated LocatedBlockProto blocks = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ReportBadBlocksResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message ConcatRequestProto {
|
|
|
|
required string trg = 1;
|
|
|
|
repeated string srcs = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ConcatResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message RenameRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string dst = 2;
|
|
|
|
}
|
|
|
|
|
2013-01-17 18:21:29 +00:00
|
|
|
message RenameResponseProto {
|
2011-12-08 06:48:45 +00:00
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
message Rename2RequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string dst = 2;
|
|
|
|
required bool overwriteDest = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Rename2ResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required bool recursive = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MkdirsRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required FsPermissionProto masked = 2;
|
|
|
|
required bool createParent = 3;
|
|
|
|
}
|
|
|
|
message MkdirsResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetListingRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required bytes startAfter = 2;
|
|
|
|
required bool needLocation = 3;
|
|
|
|
}
|
|
|
|
message GetListingResponseProto {
|
2011-12-14 09:27:51 +00:00
|
|
|
optional DirectoryListingProto dirList = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
2013-01-07 01:43:21 +00:00
|
|
|
message GetSnapshottableDirListingRequestProto { // no input parameters
|
|
|
|
}
|
|
|
|
message GetSnapshottableDirListingResponseProto {
|
|
|
|
optional SnapshottableDirectoryListingProto snapshottableDirList = 1;
|
|
|
|
}
|
|
|
|
|
2013-02-02 20:39:01 +00:00
|
|
|
message GetSnapshotDiffReportRequestProto {
|
|
|
|
required string snapshotRoot = 1;
|
|
|
|
required string fromSnapshot = 2;
|
|
|
|
required string toSnapshot = 3;
|
|
|
|
}
|
|
|
|
message GetSnapshotDiffReportResponseProto {
|
|
|
|
required SnapshotDiffReportProto diffReport = 1;
|
|
|
|
}
|
|
|
|
|
2011-12-08 06:48:45 +00:00
|
|
|
message RenewLeaseRequestProto {
|
|
|
|
required string clientName = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RenewLeaseResponseProto { //void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message RecoverLeaseRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string clientName = 2;
|
|
|
|
}
|
|
|
|
message RecoverLeaseResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFsStatusRequestProto { // no input paramters
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFsStatsResponseProto {
|
|
|
|
required uint64 capacity = 1;
|
|
|
|
required uint64 used = 2;
|
|
|
|
required uint64 remaining = 3;
|
|
|
|
required uint64 under_replicated = 4;
|
|
|
|
required uint64 corrupt_blocks = 5;
|
|
|
|
required uint64 missing_blocks = 6;
|
|
|
|
}
|
|
|
|
|
2011-12-12 05:36:35 +00:00
|
|
|
enum DatanodeReportTypeProto { // type of the datanode report
|
2011-12-08 06:48:45 +00:00
|
|
|
ALL = 1;
|
2011-12-12 05:36:35 +00:00
|
|
|
LIVE = 2;
|
2011-12-08 06:48:45 +00:00
|
|
|
DEAD = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetDatanodeReportRequestProto {
|
2011-12-12 05:36:35 +00:00
|
|
|
required DatanodeReportTypeProto type = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetDatanodeReportResponseProto {
|
|
|
|
repeated DatanodeInfoProto di = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetPreferredBlockSizeRequestProto {
|
|
|
|
required string filename = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetPreferredBlockSizeResponseProto {
|
|
|
|
required uint64 bsize = 1;
|
|
|
|
}
|
|
|
|
|
2011-12-12 05:36:35 +00:00
|
|
|
enum SafeModeActionProto {
|
2011-12-08 06:48:45 +00:00
|
|
|
SAFEMODE_LEAVE = 1;
|
|
|
|
SAFEMODE_ENTER = 2;
|
|
|
|
SAFEMODE_GET = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetSafeModeRequestProto {
|
2011-12-12 05:36:35 +00:00
|
|
|
required SafeModeActionProto action = 1;
|
2012-11-16 21:51:39 +00:00
|
|
|
optional bool checked = 2 [default = false];
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SetSafeModeResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SaveNamespaceRequestProto { // no parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
message SaveNamespaceResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
2012-09-05 04:40:23 +00:00
|
|
|
message RollEditsRequestProto { // no parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
message RollEditsResponseProto { // response
|
|
|
|
required uint64 newSegmentTxId = 1;
|
|
|
|
}
|
|
|
|
|
2011-12-08 06:48:45 +00:00
|
|
|
message RestoreFailedStorageRequestProto {
|
|
|
|
required string arg = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RestoreFailedStorageResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RefreshNodesRequestProto { // no parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
message RefreshNodesResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message FinalizeUpgradeRequestProto { // no parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
message FinalizeUpgradeResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListCorruptFileBlocksRequestProto {
|
|
|
|
required string path = 1;
|
2011-12-14 09:27:51 +00:00
|
|
|
optional string cookie = 2;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListCorruptFileBlocksResponseProto {
|
|
|
|
required CorruptFileBlocksProto corrupt = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MetaSaveRequestProto {
|
|
|
|
required string filename = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MetaSaveResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFileInfoRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFileInfoResponseProto {
|
2011-12-13 23:31:44 +00:00
|
|
|
optional HdfsFileStatusProto fs = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
2013-04-07 18:01:17 +00:00
|
|
|
message IsFileClosedRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IsFileClosedResponseProto {
|
|
|
|
required bool result = 1;
|
|
|
|
}
|
|
|
|
|
2013-11-07 22:07:16 +00:00
|
|
|
message PathBasedCacheDirectiveInfoProto {
|
|
|
|
optional int64 id = 1;
|
|
|
|
optional string path = 2;
|
|
|
|
optional uint32 replication = 3;
|
|
|
|
optional string pool = 4;
|
2013-11-20 21:31:41 +00:00
|
|
|
optional int64 bytesNeeded = 5;
|
|
|
|
optional int64 bytesCached = 6;
|
|
|
|
optional int64 filesAffected = 7;
|
2013-08-22 23:37:51 +00:00
|
|
|
}
|
|
|
|
|
2013-09-21 00:20:36 +00:00
|
|
|
message AddPathBasedCacheDirectiveRequestProto {
|
2013-11-07 22:07:16 +00:00
|
|
|
required PathBasedCacheDirectiveInfoProto info = 1;
|
2013-08-22 23:37:51 +00:00
|
|
|
}
|
|
|
|
|
2013-09-21 00:20:36 +00:00
|
|
|
message AddPathBasedCacheDirectiveResponseProto {
|
2013-11-07 22:07:16 +00:00
|
|
|
required int64 id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ModifyPathBasedCacheDirectiveRequestProto {
|
|
|
|
required PathBasedCacheDirectiveInfoProto info = 1;
|
2013-08-22 23:37:51 +00:00
|
|
|
}
|
|
|
|
|
2013-11-07 22:07:16 +00:00
|
|
|
message ModifyPathBasedCacheDirectiveResponseProto {
|
2013-08-22 23:37:51 +00:00
|
|
|
}
|
|
|
|
|
2013-11-07 22:07:16 +00:00
|
|
|
message RemovePathBasedCacheDirectiveRequestProto {
|
|
|
|
required int64 id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RemovePathBasedCacheDirectiveResponseProto {
|
2013-08-22 23:37:51 +00:00
|
|
|
}
|
|
|
|
|
2013-11-07 22:07:16 +00:00
|
|
|
message ListPathBasedCacheDirectivesRequestProto {
|
2013-09-06 18:52:50 +00:00
|
|
|
required int64 prevId = 1;
|
2013-11-07 22:07:16 +00:00
|
|
|
required PathBasedCacheDirectiveInfoProto filter = 2;
|
2013-09-06 18:52:50 +00:00
|
|
|
}
|
|
|
|
|
2013-11-07 22:07:16 +00:00
|
|
|
message ListPathBasedCacheDirectivesElementProto {
|
|
|
|
required PathBasedCacheDirectiveInfoProto info = 1;
|
2013-08-22 23:37:51 +00:00
|
|
|
}
|
|
|
|
|
2013-11-07 22:07:16 +00:00
|
|
|
message ListPathBasedCacheDirectivesResponseProto {
|
|
|
|
repeated ListPathBasedCacheDirectivesElementProto elements = 1;
|
2013-08-22 23:37:51 +00:00
|
|
|
required bool hasMore = 2;
|
|
|
|
}
|
|
|
|
|
2013-11-12 23:52:23 +00:00
|
|
|
message CachePoolInfoProto {
|
|
|
|
optional string poolName = 1;
|
2013-09-06 18:52:50 +00:00
|
|
|
optional string ownerName = 2;
|
|
|
|
optional string groupName = 3;
|
|
|
|
optional int32 mode = 4;
|
|
|
|
optional int32 weight = 5;
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
2013-11-12 23:52:23 +00:00
|
|
|
message AddCachePoolRequestProto {
|
|
|
|
required CachePoolInfoProto info = 1;
|
|
|
|
}
|
|
|
|
|
2013-09-06 18:52:50 +00:00
|
|
|
message AddCachePoolResponseProto { // void response
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ModifyCachePoolRequestProto {
|
2013-11-12 23:52:23 +00:00
|
|
|
required CachePoolInfoProto info = 1;
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ModifyCachePoolResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveCachePoolRequestProto {
|
2013-09-06 18:52:50 +00:00
|
|
|
required string poolName = 1;
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveCachePoolResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListCachePoolsRequestProto {
|
2013-09-06 18:52:50 +00:00
|
|
|
required string prevPoolName = 1;
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListCachePoolsResponseProto {
|
|
|
|
repeated ListCachePoolsResponseElementProto elements = 1;
|
2013-09-12 03:55:10 +00:00
|
|
|
required bool hasMore = 2;
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListCachePoolsResponseElementProto {
|
2013-11-12 23:52:23 +00:00
|
|
|
required CachePoolInfoProto info = 1;
|
2013-09-03 20:38:45 +00:00
|
|
|
}
|
|
|
|
|
2011-12-08 06:48:45 +00:00
|
|
|
message GetFileLinkInfoRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFileLinkInfoResponseProto {
|
2011-12-14 09:27:51 +00:00
|
|
|
optional HdfsFileStatusProto fs = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetContentSummaryRequestProto {
|
|
|
|
required string path = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetContentSummaryResponseProto {
|
|
|
|
required ContentSummaryProto summary = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetQuotaRequestProto {
|
|
|
|
required string path = 1;
|
|
|
|
required uint64 namespaceQuota = 2;
|
|
|
|
required uint64 diskspaceQuota = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetQuotaResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message FsyncRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required string client = 2;
|
2012-11-30 19:24:30 +00:00
|
|
|
optional sint64 lastBlockLength = 3 [default = -1];
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message FsyncResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetTimesRequestProto {
|
|
|
|
required string src = 1;
|
|
|
|
required uint64 mtime = 2;
|
|
|
|
required uint64 atime = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetTimesResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateSymlinkRequestProto {
|
|
|
|
required string target = 1;
|
|
|
|
required string link = 2;
|
|
|
|
required FsPermissionProto dirPerm = 3;
|
|
|
|
required bool createParent = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateSymlinkResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetLinkTargetRequestProto {
|
|
|
|
required string path = 1;
|
|
|
|
}
|
|
|
|
message GetLinkTargetResponseProto {
|
2013-01-14 23:01:39 +00:00
|
|
|
optional string targetPath = 1;
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateBlockForPipelineRequestProto {
|
|
|
|
required ExtendedBlockProto block = 1;
|
|
|
|
required string clientName = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdateBlockForPipelineResponseProto {
|
|
|
|
required LocatedBlockProto block = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdatePipelineRequestProto {
|
|
|
|
required string clientName = 1;
|
|
|
|
required ExtendedBlockProto oldBlock = 2;
|
|
|
|
required ExtendedBlockProto newBlock = 3;
|
|
|
|
repeated DatanodeIDProto newNodes = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UpdatePipelineResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetBalancerBandwidthRequestProto {
|
|
|
|
required int64 bandwidth = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SetBalancerBandwidthResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
2012-08-07 16:40:03 +00:00
|
|
|
message GetDataEncryptionKeyRequestProto { // no parameters
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetDataEncryptionKeyResponseProto {
|
2013-01-10 16:03:37 +00:00
|
|
|
optional DataEncryptionKeyProto dataEncryptionKey = 1;
|
2012-08-07 16:40:03 +00:00
|
|
|
}
|
2011-12-08 06:48:45 +00:00
|
|
|
|
2012-10-19 22:15:27 +00:00
|
|
|
message CreateSnapshotRequestProto {
|
2013-01-09 16:44:05 +00:00
|
|
|
required string snapshotRoot = 1;
|
2013-04-13 21:41:33 +00:00
|
|
|
optional string snapshotName = 2;
|
2012-10-19 22:15:27 +00:00
|
|
|
}
|
|
|
|
|
2013-04-13 21:41:33 +00:00
|
|
|
message CreateSnapshotResponseProto {
|
|
|
|
required string snapshotPath = 1;
|
2012-10-19 22:15:27 +00:00
|
|
|
}
|
|
|
|
|
2012-11-18 20:44:10 +00:00
|
|
|
message RenameSnapshotRequestProto {
|
|
|
|
required string snapshotRoot = 1;
|
|
|
|
required string snapshotOldName = 2;
|
|
|
|
required string snapshotNewName = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RenameSnapshotResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
2012-10-23 20:26:08 +00:00
|
|
|
message AllowSnapshotRequestProto {
|
|
|
|
required string snapshotRoot = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AllowSnapshotResponseProto {
|
|
|
|
}
|
|
|
|
|
|
|
|
message DisallowSnapshotRequestProto {
|
|
|
|
required string snapshotRoot = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DisallowSnapshotResponseProto {
|
|
|
|
}
|
|
|
|
|
2013-01-09 16:44:05 +00:00
|
|
|
message DeleteSnapshotRequestProto {
|
|
|
|
required string snapshotRoot = 1;
|
|
|
|
required string snapshotName = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteSnapshotResponseProto { // void response
|
|
|
|
}
|
|
|
|
|
2011-12-08 06:48:45 +00:00
|
|
|
service ClientNamenodeProtocol {
|
|
|
|
rpc getBlockLocations(GetBlockLocationsRequestProto)
|
|
|
|
returns(GetBlockLocationsResponseProto);
|
|
|
|
rpc getServerDefaults(GetServerDefaultsRequestProto)
|
|
|
|
returns(GetServerDefaultsResponseProto);
|
|
|
|
rpc create(CreateRequestProto)returns(CreateResponseProto);
|
|
|
|
rpc append(AppendRequestProto) returns(AppendResponseProto);
|
|
|
|
rpc setReplication(SetReplicationRequestProto)
|
|
|
|
returns(SetReplicationResponseProto);
|
|
|
|
rpc setPermission(SetPermissionRequestProto)
|
|
|
|
returns(SetPermissionResponseProto);
|
|
|
|
rpc setOwner(SetOwnerRequestProto) returns(SetOwnerResponseProto);
|
|
|
|
rpc abandonBlock(AbandonBlockRequestProto) returns(AbandonBlockResponseProto);
|
|
|
|
rpc addBlock(AddBlockRequestProto) returns(AddBlockResponseProto);
|
|
|
|
rpc getAdditionalDatanode(GetAdditionalDatanodeRequestProto)
|
|
|
|
returns(GetAdditionalDatanodeResponseProto);
|
|
|
|
rpc complete(CompleteRequestProto) returns(CompleteResponseProto);
|
|
|
|
rpc reportBadBlocks(ReportBadBlocksRequestProto)
|
|
|
|
returns(ReportBadBlocksResponseProto);
|
|
|
|
rpc concat(ConcatRequestProto) returns(ConcatResponseProto);
|
|
|
|
rpc rename(RenameRequestProto) returns(RenameResponseProto);
|
|
|
|
rpc rename2(Rename2RequestProto) returns(Rename2ResponseProto);
|
|
|
|
rpc delete(DeleteRequestProto) returns(DeleteResponseProto);
|
|
|
|
rpc mkdirs(MkdirsRequestProto) returns(MkdirsResponseProto);
|
|
|
|
rpc getListing(GetListingRequestProto) returns(GetListingResponseProto);
|
|
|
|
rpc renewLease(RenewLeaseRequestProto) returns(RenewLeaseResponseProto);
|
|
|
|
rpc recoverLease(RecoverLeaseRequestProto)
|
|
|
|
returns(RecoverLeaseResponseProto);
|
|
|
|
rpc getFsStats(GetFsStatusRequestProto) returns(GetFsStatsResponseProto);
|
|
|
|
rpc getDatanodeReport(GetDatanodeReportRequestProto)
|
|
|
|
returns(GetDatanodeReportResponseProto);
|
|
|
|
rpc getPreferredBlockSize(GetPreferredBlockSizeRequestProto)
|
|
|
|
returns(GetPreferredBlockSizeResponseProto);
|
|
|
|
rpc setSafeMode(SetSafeModeRequestProto)
|
|
|
|
returns(SetSafeModeResponseProto);
|
|
|
|
rpc saveNamespace(SaveNamespaceRequestProto)
|
|
|
|
returns(SaveNamespaceResponseProto);
|
2012-09-05 04:40:23 +00:00
|
|
|
rpc rollEdits(RollEditsRequestProto)
|
|
|
|
returns(RollEditsResponseProto);
|
2011-12-08 06:48:45 +00:00
|
|
|
rpc restoreFailedStorage(RestoreFailedStorageRequestProto)
|
|
|
|
returns(RestoreFailedStorageResponseProto);
|
|
|
|
rpc refreshNodes(RefreshNodesRequestProto) returns(RefreshNodesResponseProto);
|
|
|
|
rpc finalizeUpgrade(FinalizeUpgradeRequestProto)
|
|
|
|
returns(FinalizeUpgradeResponseProto);
|
|
|
|
rpc listCorruptFileBlocks(ListCorruptFileBlocksRequestProto)
|
|
|
|
returns(ListCorruptFileBlocksResponseProto);
|
|
|
|
rpc metaSave(MetaSaveRequestProto) returns(MetaSaveResponseProto);
|
|
|
|
rpc getFileInfo(GetFileInfoRequestProto) returns(GetFileInfoResponseProto);
|
2013-09-21 00:20:36 +00:00
|
|
|
rpc addPathBasedCacheDirective(AddPathBasedCacheDirectiveRequestProto)
|
|
|
|
returns (AddPathBasedCacheDirectiveResponseProto);
|
2013-11-07 22:07:16 +00:00
|
|
|
rpc modifyPathBasedCacheDirective(ModifyPathBasedCacheDirectiveRequestProto)
|
|
|
|
returns (ModifyPathBasedCacheDirectiveResponseProto);
|
|
|
|
rpc removePathBasedCacheDirective(RemovePathBasedCacheDirectiveRequestProto)
|
|
|
|
returns (RemovePathBasedCacheDirectiveResponseProto);
|
|
|
|
rpc listPathBasedCacheDirectives(ListPathBasedCacheDirectivesRequestProto)
|
|
|
|
returns (ListPathBasedCacheDirectivesResponseProto);
|
2013-09-03 20:38:45 +00:00
|
|
|
rpc addCachePool(AddCachePoolRequestProto)
|
|
|
|
returns(AddCachePoolResponseProto);
|
|
|
|
rpc modifyCachePool(ModifyCachePoolRequestProto)
|
|
|
|
returns(ModifyCachePoolResponseProto);
|
|
|
|
rpc removeCachePool(RemoveCachePoolRequestProto)
|
|
|
|
returns(RemoveCachePoolResponseProto);
|
|
|
|
rpc listCachePools(ListCachePoolsRequestProto)
|
|
|
|
returns(ListCachePoolsResponseProto);
|
2011-12-08 06:48:45 +00:00
|
|
|
rpc getFileLinkInfo(GetFileLinkInfoRequestProto)
|
|
|
|
returns(GetFileLinkInfoResponseProto);
|
|
|
|
rpc getContentSummary(GetContentSummaryRequestProto)
|
|
|
|
returns(GetContentSummaryResponseProto);
|
|
|
|
rpc setQuota(SetQuotaRequestProto) returns(SetQuotaResponseProto);
|
|
|
|
rpc fsync(FsyncRequestProto) returns(FsyncResponseProto);
|
|
|
|
rpc setTimes(SetTimesRequestProto) returns(SetTimesResponseProto);
|
|
|
|
rpc createSymlink(CreateSymlinkRequestProto)
|
|
|
|
returns(CreateSymlinkResponseProto);
|
|
|
|
rpc getLinkTarget(GetLinkTargetRequestProto)
|
|
|
|
returns(GetLinkTargetResponseProto);
|
|
|
|
rpc updateBlockForPipeline(UpdateBlockForPipelineRequestProto)
|
|
|
|
returns(UpdateBlockForPipelineResponseProto);
|
|
|
|
rpc updatePipeline(UpdatePipelineRequestProto)
|
|
|
|
returns(UpdatePipelineResponseProto);
|
2013-01-15 00:26:23 +00:00
|
|
|
rpc getDelegationToken(hadoop.common.GetDelegationTokenRequestProto)
|
|
|
|
returns(hadoop.common.GetDelegationTokenResponseProto);
|
|
|
|
rpc renewDelegationToken(hadoop.common.RenewDelegationTokenRequestProto)
|
|
|
|
returns(hadoop.common.RenewDelegationTokenResponseProto);
|
|
|
|
rpc cancelDelegationToken(hadoop.common.CancelDelegationTokenRequestProto)
|
|
|
|
returns(hadoop.common.CancelDelegationTokenResponseProto);
|
2012-08-07 16:40:03 +00:00
|
|
|
rpc setBalancerBandwidth(SetBalancerBandwidthRequestProto)
|
2011-12-08 06:48:45 +00:00
|
|
|
returns(SetBalancerBandwidthResponseProto);
|
2012-08-07 16:40:03 +00:00
|
|
|
rpc getDataEncryptionKey(GetDataEncryptionKeyRequestProto)
|
|
|
|
returns(GetDataEncryptionKeyResponseProto);
|
2012-10-19 22:15:27 +00:00
|
|
|
rpc createSnapshot(CreateSnapshotRequestProto)
|
|
|
|
returns(CreateSnapshotResponseProto);
|
2012-11-18 20:44:10 +00:00
|
|
|
rpc renameSnapshot(RenameSnapshotRequestProto)
|
|
|
|
returns(RenameSnapshotResponseProto);
|
2012-10-23 20:26:08 +00:00
|
|
|
rpc allowSnapshot(AllowSnapshotRequestProto)
|
|
|
|
returns(AllowSnapshotResponseProto);
|
|
|
|
rpc disallowSnapshot(DisallowSnapshotRequestProto)
|
|
|
|
returns(DisallowSnapshotResponseProto);
|
2013-01-07 01:43:21 +00:00
|
|
|
rpc getSnapshottableDirListing(GetSnapshottableDirListingRequestProto)
|
|
|
|
returns(GetSnapshottableDirListingResponseProto);
|
2013-01-09 16:44:05 +00:00
|
|
|
rpc deleteSnapshot(DeleteSnapshotRequestProto)
|
2013-02-02 20:39:01 +00:00
|
|
|
returns(DeleteSnapshotResponseProto);
|
|
|
|
rpc getSnapshotDiffReport(GetSnapshotDiffReportRequestProto)
|
|
|
|
returns(GetSnapshotDiffReportResponseProto);
|
2013-04-07 18:01:17 +00:00
|
|
|
rpc isFileClosed(IsFileClosedRequestProto)
|
|
|
|
returns(IsFileClosedResponseProto);
|
2011-12-08 06:48:45 +00:00
|
|
|
}
|