protoc Missing When Compiling HBase
Symptom
protobuf-2.5.0 has been installed. However, during the HBase compilation, a message is displayed indicating that protoc is missing. The following message is displayed:
1 | [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile(compile-protoc) on project hbase-protocol:Missing: |
Key Process and Cause Analysis
The protoc component is not installed.
Conclusion and Solution
Manually register protoc as a local Maven dependency. Run the following command to specify the path to the protoc executable file and install protoc in the local Maven repository.
1 | mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc |
Parent topic: Troubleshooting