ReconfigurationProtocol.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. // This file contains protocol buffers that are used to reconfigure NameNode
  19. // and DataNode by HDFS admin.
  20. option java_package = "org.apache.hadoop.hdfs.protocol.proto";
  21. option java_outer_classname = "ReconfigurationProtocolProtos";
  22. option java_generic_services = true;
  23. option java_generate_equals_and_hash = true;
  24. package hadoop.hdfs;
  25. /** Asks NN/DN to reload configuration file. */
  26. message StartReconfigurationRequestProto {
  27. }
  28. message StartReconfigurationResponseProto {
  29. }
  30. /** Query the running status of reconfiguration process */
  31. message GetReconfigurationStatusRequestProto {
  32. }
  33. message GetReconfigurationStatusConfigChangeProto {
  34. required string name = 1;
  35. required string oldValue = 2;
  36. optional string newValue = 3;
  37. optional string errorMessage = 4; // It is empty if success.
  38. }
  39. message GetReconfigurationStatusResponseProto {
  40. required int64 startTime = 1;
  41. optional int64 endTime = 2;
  42. repeated GetReconfigurationStatusConfigChangeProto changes = 3;
  43. }
  44. /** Query the reconfigurable properties on NN/DN. */
  45. message ListReconfigurablePropertiesRequestProto {
  46. }
  47. message ListReconfigurablePropertiesResponseProto {
  48. repeated string name = 1;
  49. }
  50. /**
  51. * Protocol used from client to the NN/DN.
  52. * See the request and response for details of rpc call.
  53. */
  54. service ReconfigurationProtocolService {
  55. rpc getReconfigurationStatus(GetReconfigurationStatusRequestProto)
  56. returns(GetReconfigurationStatusResponseProto);
  57. rpc startReconfiguration(StartReconfigurationRequestProto)
  58. returns(StartReconfigurationResponseProto);
  59. rpc listReconfigurableProperties(
  60. ListReconfigurablePropertiesRequestProto)
  61. returns(ListReconfigurablePropertiesResponseProto);
  62. }