Consider a scenario where you need to integrate a pre-trained machine learning model into a Spark environment. Describe the steps you would take to ensure the model is compatible with Spark ML and what potential issues might arise during this integration.