i don't suppose anyone knows of a flink fork that ...
# random
f
i don't suppose anyone knows of a flink fork that is fixed at version 1.13 with m1 support? πŸ˜…
m
Well Flink currently still doesn't support M1 completely so I don't think it exists for any version 😏
f
😭 i didn't know this
what about with the m1 backwards compatible thing - rosetta i think it's called? has anyone had any success with that?
m
Yes there are users who are using Rosetta for local development
Biggest open item right now is that Flink's RocksDB doesn't support M1 yet
If you skip tests, it will compile at the moment
f
do you know of any documentation around getting things running locally with rosetta?
m
No unfortunately not. Still want to have a look myself but haven't gotten the time yet
f
ah no worries at all, appreciate the heads up, this has saved me probably a few hours to find this out anyhow 🀣
m
j
I just use docker with intel emulation, I'm able to run it locally like that for running unit tests and such.
βœ… 1
r
If your jvm is an x86 jvm on an m1 mac, rocksdb should work
And x86 jvms can only be executed via rosetta
a
@rmetzger do you also run x86 IntelliJ?
r
Nope
But you can select which JVM to use for launching tests / debuggers / apps in IntelliJ, so you can use an ARM IJ to launch x86(rosetta) JVMs
On my new work mac book I got a few months ago, I did intentionally not install Rosetta (because uninstalling is hard / close to impossible), and I wanted to keep my system energy efficient and fast πŸ˜‰
a
Good to know, I was just about to install it πŸ˜…. Do I get it correctly that the limitations that you face with such setup are: β€’ only being able to run Flink jobs with HashMapStateBackend locally β€’ not being able to run any tests that interact with RocksDB ?
@Jimmy Gray would you mind putting together some setup and usage instructions for this dockerized setup?
j
Hey Alexander, it should be as simple as using
-- platform linux/amd64
when building or running the service with your Flink job. For more on that, see here: https://docs.docker.com/desktop/mac/apple-silicon/
Be careful though, as that uses QEMU emulation which can cause things to run slower.
a
Thanks Jimmy. I thought you meant building and testing the Flink project itself, not the Flink jobs.