[ 
https://issues.apache.org/jira/browse/HBASE-26541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454755#comment-17454755
 ] 

Andrew Kyle Purtell commented on HBASE-26541:
---------------------------------------------

bq. I did a manual install and encountered the any.proto problem. 

My guess is the binary 'protoc' in Maven central is a special version that 
handles any.proto differently. If you do something like this instead
{noformat}
$ git clone https://github.com/google/protobuf
$ cd protobuf
$ git checkout v3.11.4
(Apply the ARM64 atomics patch from a later version)
$ sh autogen.sh
$ ./configure ...
$ make
$ sudo make install
$ mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc 
-Dversion=3.11.4 -Dclassifier=osx-aarch_64 -Dpackaging=exe 
-Dfile=/path/to/protoc
{noformat}
it does not work and the error message is "_[ERROR] PROTOC FAILED: 
google/protobuf/any.proto: File not found._"

> hbase-protocol-shaded not buildable on M1 MacOSX
> ------------------------------------------------
>
>                 Key: HBASE-26541
>                 URL: https://issues.apache.org/jira/browse/HBASE-26541
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.5.0, 2.4.8
>         Environment: Apache Maven 3.8.3 
> (ff8e977a158738155dc465c6a97ffaf31982d739)
> Java version: 1.8.0_312, vendor: Azul Systems, Inc., runtime: 
> /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre
> OS name: "mac os x", version: "12.0.1", arch: "aarch64", family: "mac"
>            Reporter: Andrew Kyle Purtell
>            Assignee: Andrew Kyle Purtell
>            Priority: Major
>             Fix For: 2.5.0, 3.0.0-alpha-2
>
>
> I needed to make some changes to get branch-2's hbase-protocol-shaded 
> building on an M1 mac. 
> - Upgrade internal.protobuf.version to 3.17.3.
> - any.proto include not found. Get it from github.com/google/protobuf and add 
> it. 
> - Warbucks rule fails because of any.proto. Disable warbucks just in 
> hbase-protobuf-shaded. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to