Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.05 KB

File metadata and controls

37 lines (26 loc) · 1.05 KB

Spark Protobuf - Developer Documentation

Getting Started

Build

./build/mvn -Phive clean package

or

./build/sbt -Phive clean package

Build with user-defined protoc

When the user cannot use the official protoc binary files to build the protobuf module in the compilation environment, for example, compiling protobuf module on CentOS 6 or CentOS 7 which the default glibc version is less than 2.14, we can try to compile and test by specifying the user-defined protoc binary files as follows:

export PROTOBUF_PROTOC_EXEC_PATH=/path-to-protoc-exe
./build/mvn -Phive -Puser-defined-protoc clean package

or

export PROTOBUF_PROTOC_EXEC_PATH=/path-to-protoc-exe
export CONNECT_PLUGIN_EXEC_PATH=/path-to-protoc-gen-grpc-java-exe
./build/sbt -Puser-defined-protoc clean package

The user-defined protoc binary files can be produced in the user's compilation environment by source code compilation, for compilation steps, please refer to protobuf.