diff --git a/hbase-endpoint/src/main/protobuf/Aggregate.proto b/hbase-endpoint/src/main/protobuf/Aggregate.proto index 4d32e709dc77..bf1adcb45cd4 100644 --- a/hbase-endpoint/src/main/protobuf/Aggregate.proto +++ b/hbase-endpoint/src/main/protobuf/Aggregate.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-endpoint/src/main/protobuf/BulkDelete.proto b/hbase-endpoint/src/main/protobuf/BulkDelete.proto index c2ec8ca3d1df..bd85f9cfa6cf 100644 --- a/hbase-endpoint/src/main/protobuf/BulkDelete.proto +++ b/hbase-endpoint/src/main/protobuf/BulkDelete.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated"; @@ -48,4 +48,4 @@ message BulkDeleteResponse { service BulkDeleteService { rpc delete(BulkDeleteRequest) returns (BulkDeleteResponse); -} \ No newline at end of file +} diff --git a/hbase-endpoint/src/main/protobuf/ColumnAggregationNullResponseProtocol.proto b/hbase-endpoint/src/main/protobuf/ColumnAggregationNullResponseProtocol.proto index b4dc01e68e3d..36c03ee10554 100644 --- a/hbase-endpoint/src/main/protobuf/ColumnAggregationNullResponseProtocol.proto +++ b/hbase-endpoint/src/main/protobuf/ColumnAggregationNullResponseProtocol.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + // Coprocessor test option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_outer_classname = "ColumnAggregationWithNullResponseProtos"; diff --git a/hbase-endpoint/src/main/protobuf/ColumnAggregationProtocol.proto b/hbase-endpoint/src/main/protobuf/ColumnAggregationProtocol.proto index ad1acdadd214..e7b301de2d44 100644 --- a/hbase-endpoint/src/main/protobuf/ColumnAggregationProtocol.proto +++ b/hbase-endpoint/src/main/protobuf/ColumnAggregationProtocol.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + // Coprocessor test option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_outer_classname = "ColumnAggregationProtos"; diff --git a/hbase-endpoint/src/main/protobuf/ColumnAggregationWithErrorsProtocol.proto b/hbase-endpoint/src/main/protobuf/ColumnAggregationWithErrorsProtocol.proto index 78089497557a..04f07413736d 100644 --- a/hbase-endpoint/src/main/protobuf/ColumnAggregationWithErrorsProtocol.proto +++ b/hbase-endpoint/src/main/protobuf/ColumnAggregationWithErrorsProtocol.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + // Coprocessor test option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_outer_classname = "ColumnAggregationWithErrorsProtos"; diff --git a/hbase-endpoint/src/main/protobuf/DummyRegionServerEndpoint.proto b/hbase-endpoint/src/main/protobuf/DummyRegionServerEndpoint.proto index 88947180781b..4225ba418b0e 100644 --- a/hbase-endpoint/src/main/protobuf/DummyRegionServerEndpoint.proto +++ b/hbase-endpoint/src/main/protobuf/DummyRegionServerEndpoint.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.test.pb; // Coprocessor test diff --git a/hbase-endpoint/src/main/protobuf/Export.proto b/hbase-endpoint/src/main/protobuf/Export.proto index 5e6c262e8eed..e33a2c000cd4 100644 --- a/hbase-endpoint/src/main/protobuf/Export.proto +++ b/hbase-endpoint/src/main/protobuf/Export.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-endpoint/src/main/protobuf/IncrementCounterProcessor.proto b/hbase-endpoint/src/main/protobuf/IncrementCounterProcessor.proto index b8c77caa6283..aefdc9d0fa30 100644 --- a/hbase-endpoint/src/main/protobuf/IncrementCounterProcessor.proto +++ b/hbase-endpoint/src/main/protobuf/IncrementCounterProcessor.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_outer_classname = "IncrementCounterProcessorTestProtos"; @@ -52,4 +53,4 @@ message TimeoutProcessorRequest { } message TimeoutProcessorResponse { -} \ No newline at end of file +} diff --git a/hbase-examples/src/main/protobuf/Examples.proto b/hbase-examples/src/main/protobuf/Examples.proto index ed9ed079c9e6..cfcaa911b653 100644 --- a/hbase-examples/src/main/protobuf/Examples.proto +++ b/hbase-examples/src/main/protobuf/Examples.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated"; @@ -35,4 +36,4 @@ service RowCountService { returns (CountResponse); rpc getKeyValueCount(CountRequest) returns (CountResponse); -} \ No newline at end of file +} diff --git a/hbase-examples/src/main/protobuf/RefreshHFiles.proto b/hbase-examples/src/main/protobuf/RefreshHFiles.proto index 11cbab048bc4..3cdc3f9941cc 100644 --- a/hbase-examples/src/main/protobuf/RefreshHFiles.proto +++ b/hbase-examples/src/main/protobuf/RefreshHFiles.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol-shaded/src/main/protobuf/RSGroup.proto b/hbase-protocol-shaded/src/main/protobuf/RSGroup.proto index ede2b13cb5cc..bfa54c110033 100644 --- a/hbase-protocol-shaded/src/main/protobuf/RSGroup.proto +++ b/hbase-protocol-shaded/src/main/protobuf/RSGroup.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated"; diff --git a/hbase-protocol-shaded/src/main/protobuf/RSGroupAdmin.proto b/hbase-protocol-shaded/src/main/protobuf/RSGroupAdmin.proto index 895f50ee381f..6c522c6891a5 100644 --- a/hbase-protocol-shaded/src/main/protobuf/RSGroupAdmin.proto +++ b/hbase-protocol-shaded/src/main/protobuf/RSGroupAdmin.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/AccessControl.proto b/hbase-protocol/src/main/protobuf/AccessControl.proto index e175e6a797ac..c35bb5bfbaee 100644 --- a/hbase-protocol/src/main/protobuf/AccessControl.proto +++ b/hbase-protocol/src/main/protobuf/AccessControl.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/Admin.proto b/hbase-protocol/src/main/protobuf/Admin.proto index 2c1d1749cf68..68194d63b1b7 100644 --- a/hbase-protocol/src/main/protobuf/Admin.proto +++ b/hbase-protocol/src/main/protobuf/Admin.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are used for Admin service. package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/Authentication.proto b/hbase-protocol/src/main/protobuf/Authentication.proto index 2f64799f2837..aa0211f7b48e 100644 --- a/hbase-protocol/src/main/protobuf/Authentication.proto +++ b/hbase-protocol/src/main/protobuf/Authentication.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/Cell.proto b/hbase-protocol/src/main/protobuf/Cell.proto index e518e658f63b..f9628081897e 100644 --- a/hbase-protocol/src/main/protobuf/Cell.proto +++ b/hbase-protocol/src/main/protobuf/Cell.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // Cell and KeyValue protos package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/Client.proto b/hbase-protocol/src/main/protobuf/Client.proto index 59cb0e25995c..a8454f922d22 100644 --- a/hbase-protocol/src/main/protobuf/Client.proto +++ b/hbase-protocol/src/main/protobuf/Client.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are used for Client service. package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/ClusterId.proto b/hbase-protocol/src/main/protobuf/ClusterId.proto index aed8cfcab275..8d916a690fdc 100644 --- a/hbase-protocol/src/main/protobuf/ClusterId.proto +++ b/hbase-protocol/src/main/protobuf/ClusterId.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are shared throughout HBase package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/ClusterStatus.proto b/hbase-protocol/src/main/protobuf/ClusterStatus.proto index 0b364142c769..a41ac7113c42 100644 --- a/hbase-protocol/src/main/protobuf/ClusterStatus.proto +++ b/hbase-protocol/src/main/protobuf/ClusterStatus.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are used for ClustStatus package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/Comparator.proto b/hbase-protocol/src/main/protobuf/Comparator.proto index 802021f7ccdc..0a59cf3874ba 100644 --- a/hbase-protocol/src/main/protobuf/Comparator.proto +++ b/hbase-protocol/src/main/protobuf/Comparator.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are used for filters package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/Encryption.proto b/hbase-protocol/src/main/protobuf/Encryption.proto index 97ab5b249399..e08ca2b04816 100644 --- a/hbase-protocol/src/main/protobuf/Encryption.proto +++ b/hbase-protocol/src/main/protobuf/Encryption.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers used for encryption package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/ErrorHandling.proto b/hbase-protocol/src/main/protobuf/ErrorHandling.proto index be9a7437d444..c57a6d252503 100644 --- a/hbase-protocol/src/main/protobuf/ErrorHandling.proto +++ b/hbase-protocol/src/main/protobuf/ErrorHandling.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are used for error handling package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/FS.proto b/hbase-protocol/src/main/protobuf/FS.proto index 9e931205cd6a..090617972fa7 100644 --- a/hbase-protocol/src/main/protobuf/FS.proto +++ b/hbase-protocol/src/main/protobuf/FS.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are written into the filesystem package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/Filter.proto b/hbase-protocol/src/main/protobuf/Filter.proto index 8a0a9bf50299..0b4c2013f4c2 100644 --- a/hbase-protocol/src/main/protobuf/Filter.proto +++ b/hbase-protocol/src/main/protobuf/Filter.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are used for filters package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/HBase.proto b/hbase-protocol/src/main/protobuf/HBase.proto index a824f5eabf2b..f324aae7bb0a 100644 --- a/hbase-protocol/src/main/protobuf/HBase.proto +++ b/hbase-protocol/src/main/protobuf/HBase.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers that are shared throughout HBase package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/HFile.proto b/hbase-protocol/src/main/protobuf/HFile.proto index 5c5e4f38f5bc..df8f57ee2381 100644 --- a/hbase-protocol/src/main/protobuf/HFile.proto +++ b/hbase-protocol/src/main/protobuf/HFile.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/LoadBalancer.proto b/hbase-protocol/src/main/protobuf/LoadBalancer.proto index f9c5d0d73cf3..0c0882170c75 100644 --- a/hbase-protocol/src/main/protobuf/LoadBalancer.proto +++ b/hbase-protocol/src/main/protobuf/LoadBalancer.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // This file contains protocol buffers to represent the state of the load balancer. package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/MapReduce.proto b/hbase-protocol/src/main/protobuf/MapReduce.proto index f96ffdffff20..7fb6850539fb 100644 --- a/hbase-protocol/src/main/protobuf/MapReduce.proto +++ b/hbase-protocol/src/main/protobuf/MapReduce.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; //This file includes protocol buffers used in MapReduce only. package hbase.pb; diff --git a/hbase-protocol/src/main/protobuf/MultiRowMutation.proto b/hbase-protocol/src/main/protobuf/MultiRowMutation.proto index f55739fee013..d3140e9b2e09 100644 --- a/hbase-protocol/src/main/protobuf/MultiRowMutation.proto +++ b/hbase-protocol/src/main/protobuf/MultiRowMutation.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; import "Client.proto"; diff --git a/hbase-protocol/src/main/protobuf/PingProtocol.proto b/hbase-protocol/src/main/protobuf/PingProtocol.proto index ef63ee0d4770..9a6459948860 100644 --- a/hbase-protocol/src/main/protobuf/PingProtocol.proto +++ b/hbase-protocol/src/main/protobuf/PingProtocol.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + // Coprocessor test option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_outer_classname = "PingProtos"; diff --git a/hbase-protocol/src/main/protobuf/Quota.proto b/hbase-protocol/src/main/protobuf/Quota.proto index 8e5c17ccf8d0..fa5462c5f1b3 100644 --- a/hbase-protocol/src/main/protobuf/Quota.proto +++ b/hbase-protocol/src/main/protobuf/Quota.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/RPC.proto b/hbase-protocol/src/main/protobuf/RPC.proto index 8413d2590f33..25e051430e23 100644 --- a/hbase-protocol/src/main/protobuf/RPC.proto +++ b/hbase-protocol/src/main/protobuf/RPC.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; import "Tracing.proto"; diff --git a/hbase-protocol/src/main/protobuf/RSGroup.proto b/hbase-protocol/src/main/protobuf/RSGroup.proto index 735894107fde..31a7716dfd7b 100644 --- a/hbase-protocol/src/main/protobuf/RSGroup.proto +++ b/hbase-protocol/src/main/protobuf/RSGroup.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/RSGroupAdmin.proto b/hbase-protocol/src/main/protobuf/RSGroupAdmin.proto index 416097b2f0fc..b73e370fb2f0 100644 --- a/hbase-protocol/src/main/protobuf/RSGroupAdmin.proto +++ b/hbase-protocol/src/main/protobuf/RSGroupAdmin.proto @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/RowProcessor.proto b/hbase-protocol/src/main/protobuf/RowProcessor.proto index cf2f30f35293..b2ed362df740 100644 --- a/hbase-protocol/src/main/protobuf/RowProcessor.proto +++ b/hbase-protocol/src/main/protobuf/RowProcessor.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + /** * Defines a protocol to perform multi row transactions. * See BaseRowProcessorEndpoint for the implementation. diff --git a/hbase-protocol/src/main/protobuf/Snapshot.proto b/hbase-protocol/src/main/protobuf/Snapshot.proto index ae1a1e680ac7..59a65a9a6624 100644 --- a/hbase-protocol/src/main/protobuf/Snapshot.proto +++ b/hbase-protocol/src/main/protobuf/Snapshot.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/TestProcedure.proto b/hbase-protocol/src/main/protobuf/TestProcedure.proto index de74f367c612..982ea674b405 100644 --- a/hbase-protocol/src/main/protobuf/TestProcedure.proto +++ b/hbase-protocol/src/main/protobuf/TestProcedure.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated"; option java_outer_classname = "TestProcedureProtos"; option java_generic_services = true; diff --git a/hbase-protocol/src/main/protobuf/Tracing.proto b/hbase-protocol/src/main/protobuf/Tracing.proto index 5a64cfce7e38..4fa1ab8c12d0 100644 --- a/hbase-protocol/src/main/protobuf/Tracing.proto +++ b/hbase-protocol/src/main/protobuf/Tracing.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/VisibilityLabels.proto b/hbase-protocol/src/main/protobuf/VisibilityLabels.proto index d2dc44d30cf2..44d0dfc49449 100644 --- a/hbase-protocol/src/main/protobuf/VisibilityLabels.proto +++ b/hbase-protocol/src/main/protobuf/VisibilityLabels.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; @@ -80,4 +81,4 @@ service VisibilityLabelsService { returns (GetAuthsResponse); rpc listLabels(ListLabelsRequest) returns (ListLabelsResponse); -} \ No newline at end of file +} diff --git a/hbase-protocol/src/main/protobuf/WAL.proto b/hbase-protocol/src/main/protobuf/WAL.proto index 7272fa9cfca0..f24ea0fc5053 100644 --- a/hbase-protocol/src/main/protobuf/WAL.proto +++ b/hbase-protocol/src/main/protobuf/WAL.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; package hbase.pb; option java_package = "org.apache.hadoop.hbase.protobuf.generated"; diff --git a/hbase-protocol/src/main/protobuf/ZooKeeper.proto b/hbase-protocol/src/main/protobuf/ZooKeeper.proto index 418f817d6242..e06f4a03a009 100644 --- a/hbase-protocol/src/main/protobuf/ZooKeeper.proto +++ b/hbase-protocol/src/main/protobuf/ZooKeeper.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; // ZNode data in hbase are serialized protobufs with a four byte // 'magic' 'PBUF' prefix. diff --git a/hbase-protocol/src/main/protobuf/test.proto b/hbase-protocol/src/main/protobuf/test.proto index 72b68e9aae67..89d47865c394 100644 --- a/hbase-protocol/src/main/protobuf/test.proto +++ b/hbase-protocol/src/main/protobuf/test.proto @@ -15,6 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated"; option java_outer_classname = "TestProtos"; diff --git a/hbase-protocol/src/main/protobuf/test_rpc_service.proto b/hbase-protocol/src/main/protobuf/test_rpc_service.proto index 5f91dc4df4c5..7c67ef2dd430 100644 --- a/hbase-protocol/src/main/protobuf/test_rpc_service.proto +++ b/hbase-protocol/src/main/protobuf/test_rpc_service.proto @@ -15,6 +15,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +syntax = "proto2"; + option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated"; option java_outer_classname = "TestRpcServiceProtos"; option java_generic_services = true; diff --git a/hbase-rest/src/main/protobuf/CellMessage.proto b/hbase-rest/src/main/protobuf/CellMessage.proto index 8d4515417f08..0170be8fe23e 100644 --- a/hbase-rest/src/main/protobuf/CellMessage.proto +++ b/hbase-rest/src/main/protobuf/CellMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message Cell { diff --git a/hbase-rest/src/main/protobuf/CellSetMessage.proto b/hbase-rest/src/main/protobuf/CellSetMessage.proto index 4774a8d0e8f7..b43482c3ce5a 100644 --- a/hbase-rest/src/main/protobuf/CellSetMessage.proto +++ b/hbase-rest/src/main/protobuf/CellSetMessage.proto @@ -1,24 +1,25 @@ -// -// 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. +/** + * 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. + */ +syntax = "proto2"; +package org.apache.hadoop.hbase.rest.protobuf.generated; import "CellMessage.proto"; -package org.apache.hadoop.hbase.rest.protobuf.generated; - message CellSet { message Row { required bytes key = 1; diff --git a/hbase-rest/src/main/protobuf/ColumnSchemaMessage.proto b/hbase-rest/src/main/protobuf/ColumnSchemaMessage.proto index 05e33b648329..c6c957d82b20 100644 --- a/hbase-rest/src/main/protobuf/ColumnSchemaMessage.proto +++ b/hbase-rest/src/main/protobuf/ColumnSchemaMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message ColumnSchema { diff --git a/hbase-rest/src/main/protobuf/NamespacePropertiesMessage.proto b/hbase-rest/src/main/protobuf/NamespacePropertiesMessage.proto index 3e000753f817..5858aefc39d8 100644 --- a/hbase-rest/src/main/protobuf/NamespacePropertiesMessage.proto +++ b/hbase-rest/src/main/protobuf/NamespacePropertiesMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message NamespaceProperties { diff --git a/hbase-rest/src/main/protobuf/NamespacesMessage.proto b/hbase-rest/src/main/protobuf/NamespacesMessage.proto index 2c5cbb33c0de..0d1c85772339 100644 --- a/hbase-rest/src/main/protobuf/NamespacesMessage.proto +++ b/hbase-rest/src/main/protobuf/NamespacesMessage.proto @@ -1,22 +1,23 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message Namespaces { repeated string namespace = 1; -} \ No newline at end of file +} diff --git a/hbase-rest/src/main/protobuf/ScannerMessage.proto b/hbase-rest/src/main/protobuf/ScannerMessage.proto index 185eac684218..08e34081ca4e 100644 --- a/hbase-rest/src/main/protobuf/ScannerMessage.proto +++ b/hbase-rest/src/main/protobuf/ScannerMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message Scanner { diff --git a/hbase-rest/src/main/protobuf/StorageClusterStatusMessage.proto b/hbase-rest/src/main/protobuf/StorageClusterStatusMessage.proto index e073110d752f..7b9c40cb47d6 100644 --- a/hbase-rest/src/main/protobuf/StorageClusterStatusMessage.proto +++ b/hbase-rest/src/main/protobuf/StorageClusterStatusMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message StorageClusterStatus { diff --git a/hbase-rest/src/main/protobuf/TableInfoMessage.proto b/hbase-rest/src/main/protobuf/TableInfoMessage.proto index 674499c26874..d0b1121d5e08 100644 --- a/hbase-rest/src/main/protobuf/TableInfoMessage.proto +++ b/hbase-rest/src/main/protobuf/TableInfoMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message TableInfo { diff --git a/hbase-rest/src/main/protobuf/TableListMessage.proto b/hbase-rest/src/main/protobuf/TableListMessage.proto index fbd76ea029af..643994811b09 100644 --- a/hbase-rest/src/main/protobuf/TableListMessage.proto +++ b/hbase-rest/src/main/protobuf/TableListMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message TableList { diff --git a/hbase-rest/src/main/protobuf/TableSchemaMessage.proto b/hbase-rest/src/main/protobuf/TableSchemaMessage.proto index 47a4da589b95..5ee2e96c8460 100644 --- a/hbase-rest/src/main/protobuf/TableSchemaMessage.proto +++ b/hbase-rest/src/main/protobuf/TableSchemaMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; import "ColumnSchemaMessage.proto"; package org.apache.hadoop.hbase.rest.protobuf.generated; diff --git a/hbase-rest/src/main/protobuf/VersionMessage.proto b/hbase-rest/src/main/protobuf/VersionMessage.proto index cc107b3d9a61..8f5ddeb9c4c4 100644 --- a/hbase-rest/src/main/protobuf/VersionMessage.proto +++ b/hbase-rest/src/main/protobuf/VersionMessage.proto @@ -1,20 +1,21 @@ -// -// 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. - +/** + * 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. + */ +syntax = "proto2"; package org.apache.hadoop.hbase.rest.protobuf.generated; message Version { diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java index d240f91786b1..807dd501ca1d 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestUsersOperationsWithSecureHadoop.java @@ -29,6 +29,7 @@ import java.io.File; import java.io.IOException; +import java.util.concurrent.TimeUnit; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.AuthUtil; @@ -64,7 +65,11 @@ public class TestUsersOperationsWithSecureHadoop { private static String CLIENT_NAME; @BeforeClass - public static void setUp() throws Exception { + public static void destroyAndSetup() throws Exception { + //destroy localhost kerberos users + Process process = Runtime.getRuntime().exec(new String[]{"bash", "-c", "kdestroy"}); + process.waitFor(2, TimeUnit.SECONDS); + // setup mini kdc KDC = TEST_UTIL.setupMiniKdc(KEYTAB_FILE); PRINCIPAL = "hbase/" + HOST; CLIENT_NAME = "foo";