[
https://issues.apache.org/jira/browse/SPARK-50671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yang Jie resolved SPARK-50671.
------------------------------
Resolution: Fixed
Issue resolved by pull request 49296
[https://github.com/apache/spark/pull/49296]
> Error compiling spark-protobuf module using user-defined protoc
> ---------------------------------------------------------------
>
> Key: SPARK-50671
> URL: https://issues.apache.org/jira/browse/SPARK-50671
> Project: Spark
> Issue Type: Bug
> Components: Build
> Affects Versions: 4.0.0
> Reporter: morvenhuang
> Assignee: morvenhuang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> I'm using user-defined protoc since default version of protoc and
> protoc-gen-grpc-java do not work well on my macOS 11.
>
> Unfortunately, this results in below error when compiling spark-protobuf
> module:
>
> {code:java}
> $ export SPARK_PROTOC_EXEC_PATH=/Users/foobar/dev/protoc-4.29.1/protoc
> $ export
> CONNECT_PLUGIN_EXEC_PATH=/Users/foobar/dev/protoc-gen-grpc-java-1.59.1/protoc-gen-grpc-java
> $ ./build/mvn -DskipTests clean package -Puser-defined-protoc
> -DskipDefaultProtoc
> ...
> [ERROR] Failed to execute goal
> com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project
> spark-protobuf_2.13: Execution default of goal
> com.github.os72:protoc-jar-maven-plugin:3.11.4:run failed: Cannot read the
> array length because "<local6>" is null{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]