I was trying to run Apache Flink within an Android App. I just want to run a minimum working example, like this:
These are my two .gradle files: build.gradle (Module)
build.gradle (Project)
The first problem is, that I get the following Error:
In cases there this error doesn't appear, I get Akka-Actor errors, because I must exclude 'reference.conf', otherwise the code wouldn't compile. However, this leads to more exceptions, e.g. missing akka-version. So my general question is: Is it possible to run Flink within an Android-App? Or is this not possible (recommended)? Perhaps someone knows how to modfiy my gradle files (or something else) to run my example. Or perhaps someone already has successfully used Flink in Android. |
Hi, The question would be, why do you want to do it? I think it might be possible, but probably nobody has ever tested it. Flink is a distributed system, so running it on an Android phone doesn't make much sense. I would suggest you first make your app/example work outside of Android. To make sure that dependencies and project setup is correct. Keep in mind that you also need to start somehow a Flink cluster. I would expect that starting a minicluster with a local execution environment (StreamExecutionEnvironment.createLocalEnvironment(...) instead of StreamExecutionEnvironment.getExecutionEnvironment()) would be the way to go. Unless you want to run a distributed cluster across multiple Android phones, but in that case I really don't know why you would like to do it :) Also, Android has its own JDK, which we have never tested. It might cause some problems. Piotrek wt., 2 mar 2021 o 16:23 Alexander Borgschulze <[hidden email]> napisał(a):
|
Hey, Thanks for your answer :) For my Master's thesis,I want to test and evaluate the use of CEP technologies for detecting Complex Patterns in Android sensor data (Floating Phone Data). Apache Flink offers a CEP library, so I thought it would be an interesting option. The data sources would be the sensors (Gyroscope and Accelerometer). Then I want to find patterns in this sensor data stream. This would be my usecase. But I am struggling with runnning a minimum working example. The execution outside of Android is not the problem. But I thought, that there might be a way to run Flink (CEP) on Android >>> Piotr Nowojski <[hidden email]> 03.03.21 21.22 Uhr >>> Hi, The question would be, why do you want to do it? I think it might be possible, but probably nobody has ever tested it. Flink is a distributed system, so running it on an Android phone doesn't make much sense. I would suggest you first make your app/example work outside of Android. To make sure that dependencies and project setup is correct. Keep in mind that you also need to start somehow a Flink cluster. I would expect that starting a minicluster with a local execution environment (StreamExecutionEnvironment.createLocalEnvironment(...) instead of StreamExecutionEnvironment.getExecutionEnvironment()) would be the way to go. Unless you want to run a distributed cluster across multiple Android phones, but in that case I really don't know why you would like to do it :) Also, Android has its own JDK, which we have never tested. It might cause some problems. Piotrek wt., 2 mar 2021 o 16:23 Alexander Borgschulze <[hidden email]> napisał(a):
|
Free forum by Nabble | Edit this page |