HBASE-23971 protoc warns: "no protobuf syntax specified" (#1278)

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
WenFeiYi 2020-03-12 23:32:22 +08:00 committed by GitHub
parent 26f3702735
commit abf0a22259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
55 changed files with 260 additions and 203 deletions

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ColumnAggregationWithNullResponseProtos"; option java_outer_classname = "ColumnAggregationWithNullResponseProtos";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ColumnAggregationProtos"; option java_outer_classname = "ColumnAggregationProtos";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "ColumnAggregationWithErrorsProtos"; option java_outer_classname = "ColumnAggregationWithErrorsProtos";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.test.pb; package hbase.test.pb;
// Coprocessor test // Coprocessor test

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "IncrementCounterProcessorTestProtos"; option java_outer_classname = "IncrementCounterProcessorTestProtos";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.example.generated";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.shaded.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are used for Admin service. // This file contains protocol buffers that are used for Admin service.
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// Cell and KeyValue protos // Cell and KeyValue protos
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are used for Client service. // This file contains protocol buffers that are used for Client service.
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are shared throughout HBase // This file contains protocol buffers that are shared throughout HBase
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are used for ClustStatus // This file contains protocol buffers that are used for ClustStatus
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are used for filters // This file contains protocol buffers that are used for filters
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers used for encryption // This file contains protocol buffers used for encryption
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are used for error handling // This file contains protocol buffers that are used for error handling
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are written into the filesystem // This file contains protocol buffers that are written into the filesystem
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are used for filters // This file contains protocol buffers that are used for filters
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers that are shared throughout HBase // This file contains protocol buffers that are shared throughout HBase
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// This file contains protocol buffers to represent the state of the load balancer. // This file contains protocol buffers to represent the state of the load balancer.
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
//This file includes protocol buffers used in MapReduce only. //This file includes protocol buffers used in MapReduce only.
package hbase.pb; package hbase.pb;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
import "Client.proto"; import "Client.proto";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// Coprocessor test // Coprocessor test
option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.coprocessor.protobuf.generated";
option java_outer_classname = "PingProtos"; option java_outer_classname = "PingProtos";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
import "Tracing.proto"; import "Tracing.proto";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
/** /**
* Defines a protocol to perform multi row transactions. * Defines a protocol to perform multi row transactions.
* See BaseRowProcessorEndpoint for the implementation. * See BaseRowProcessorEndpoint for the implementation.

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated";
option java_outer_classname = "TestProcedureProtos"; option java_outer_classname = "TestProcedureProtos";
option java_generic_services = true; option java_generic_services = true;

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
package hbase.pb; package hbase.pb;
option java_package = "org.apache.hadoop.hbase.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.protobuf.generated";

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
// ZNode data in hbase are serialized protobufs with a four byte // ZNode data in hbase are serialized protobufs with a four byte
// 'magic' 'PBUF' prefix. // 'magic' 'PBUF' prefix.

View File

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated";
option java_outer_classname = "TestProtos"; option java_outer_classname = "TestProtos";

View File

@ -15,6 +15,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
syntax = "proto2";
option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated"; option java_package = "org.apache.hadoop.hbase.ipc.protobuf.generated";
option java_outer_classname = "TestRpcServiceProtos"; option java_outer_classname = "TestRpcServiceProtos";
option java_generic_services = true; option java_generic_services = true;

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message Cell { message Cell {

View File

@ -1,24 +1,25 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated;
import "CellMessage.proto"; import "CellMessage.proto";
package org.apache.hadoop.hbase.rest.protobuf.generated;
message CellSet { message CellSet {
message Row { message Row {
required bytes key = 1; required bytes key = 1;

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message ColumnSchema { message ColumnSchema {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message NamespaceProperties { message NamespaceProperties {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message Namespaces { message Namespaces {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message Scanner { message Scanner {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message StorageClusterStatus { message StorageClusterStatus {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message TableInfo { message TableInfo {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message TableList { message TableList {

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
import "ColumnSchemaMessage.proto"; import "ColumnSchemaMessage.proto";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;

View File

@ -1,20 +1,21 @@
// /**
// Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information * distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file * regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the * to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance * "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at * with the License. You may obtain a copy of the License at
// *
// http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
// *
// Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
// limitations under the License. * limitations under the License.
*/
syntax = "proto2";
package org.apache.hadoop.hbase.rest.protobuf.generated; package org.apache.hadoop.hbase.rest.protobuf.generated;
message Version { message Version {

View File

@ -29,6 +29,7 @@ import static org.junit.Assert.assertTrue;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.AuthUtil; import org.apache.hadoop.hbase.AuthUtil;
@ -64,7 +65,11 @@ public class TestUsersOperationsWithSecureHadoop {
private static String CLIENT_NAME; private static String CLIENT_NAME;
@BeforeClass @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); KDC = TEST_UTIL.setupMiniKdc(KEYTAB_FILE);
PRINCIPAL = "hbase/" + HOST; PRINCIPAL = "hbase/" + HOST;
CLIENT_NAME = "foo"; CLIENT_NAME = "foo";