I know Java and C++ but I prefer Java.
It's preferable HTM system run directly on Pi, but I can consider to run it also in a cluster of commodity hardware.
Let me explain my architecture:
I have some wearable sensors that pull data on rapsberry as they are generated.
Pi (maybe) performs real time anomaly detection, then it forward received sensor data to a Kafka broker. On the other side I have a SparkStreaming cluster which consumes data from Kafka.
Now, if run HTM on Pi is not possible can I consider to perform real time anomaly detection on spark's cluster? It would be better?