This document discusses building a framework for simultaneous localization and mapping (SLAM) using Apache Spark and IoT sensors. SLAM allows robots and drones to build maps of unknown environments while keeping track of their location. The proposed framework uses Apache Kafka to distribute raw sensor data from simulations, Spark Streaming to perform real-time analytics, and Spark ML with RANSAC for machine learning tasks. Preliminary results show the framework can complete SLAM iterations faster than traditional embedded solutions as it leverages distributed computing. Future work includes expanding the machine learning models, improving accuracy, and further optimizing the system for robot swarms.