You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2025/01/06 08:25:00 UTC

[jira] [Assigned] (SPARK-50671) Error compiling spark-protobuf module using user-defined protoc

     [ https://issues.apache.org/jira/browse/SPARK-50671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Jie reassigned SPARK-50671:
--------------------------------

    Assignee: morvenhuang

> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org