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

Osama Neiroukh commented on FLINK-23230:
----------------------------------------

Thank you [~trohrmann].

Let me provide update on what I did, and I'll let you decide what to do with 
this issue as I'm able to make forward progress. I didn't want to block on 
these. 

For node, I installed the expected version 10.9.0 manually on my machine. 
Performance with Rosetta 2 (MacOS's x86/aarch64 emulation) is very good. So 
that's good enough for now.

For protobuf within format/Parquet, I installed an x86 version in my local 
maven repository, registered it with Maven, and again Rosetta 2 is able to run 
it with no issues.

The final issue, fyi,  was in flink-python. This uses protoc-jar, which only 
supports very limited versions of protoc. I installed protoc x86 locally, 
modified flink-python/pom.xml to include
<properties>
<protocCommand>protoc</protocCommand>
</properties>
and now it is using my locally installed protoc and working fine.

With all this, I was able to compile Flink all the way, run an example locally, 
and verify that the web dashboard is also working well.

Thanks

Osama

> Cannot compile Flink on MacOS with M1 chip
> ------------------------------------------
>
>                 Key: FLINK-23230
>                 URL: https://issues.apache.org/jira/browse/FLINK-23230
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 1.13.1
>            Reporter: Osama Neiroukh
>            Priority: Minor
>
> Flink doesn't currently compile on MacOS with M1 silicon.
> This is true for all recent versions (1.13.X) as well as master.
> Some of the problems have potentially easy fixes, such as installing node 
> separately or updating the relevant pom.xml to use a newer version of node. I 
> am getting some errors about deprecated features being used which are not 
> supported by newer node, but on the surface they seem easy to resolve. 
> I've had less success with complex dependencies such as protobuf.
> My long term objective is to use and contribute to Flink. If I can get some 
> help with the above issues, I am willing to make the modifications, submit 
> the changes as a pull request, and shepherd them to release. If compilation 
> on MacOS/M1 is not a priority, I can look for a virtual machine solution 
> instead. Feedback appreciated. 
>  
> Thanks
>  
> Osama



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to