Blog

Best Practices For Migrating to Databricks

Migrating on-premises data to Databricks can be complex and slow. With good planning and execution, though, the benefits of moving to the cloud can be significant. This post covers the practices we recommend for the move.

Start by understanding the current state of your on-premises data. This includes identifying the data sources and format, as well as any potential roadblocks or edge cases.

The next step is cataloging the data to be migrated. This should include the following:

· Data sources

· Formats

· Schemas

· Synchronization requirements

The catalog shows the project's scope and lets you break it into phases. Smaller phases help validate the process and identify unknown issues early in the project timeline.

After the catalog of data sources is created, the next step is to set up a timeline for each phase and a strategy for the initial load of data and the ongoing data sync. The requirements for the ongoing sync vary based on the business needs and can go from immediately streamed to hourly, daily, weekly, etc. Confirm with the business how fresh the synchronized data needs to be.

Plan for security and efficiency from the beginning. Encryption and authentication are a must.

There are many ways to get data into Databricks. Exported files (CSV,JSON, etc...), native tools, third-party connector platforms, and custom-developed applications. Each scenario is different, and an experienced partner who knows the best practices is worth having.

Decide early where the integration process runs. The main question is whether it runs on-premise to push data or from a cloud provider that pulls it. This will depend on your network security and how and where your data is currently stored.

Plan for monitoring too. Finding out quickly when something fails, or when data arrives inaccurate or missing, protects the integrity of the warehouse.

When moving data into Databricks, it is simpler to move the data as is without transforming it during this phase. This makes updating and adding new data easier and comparing it with source data for validation. The transformation should happen in the next phase, inside the Databricks environment.

Create an intuitive and organized naming convention for the structure within the Databricks lakehouse. Kept clean, it saves time and reduces errors.

Once the data is in Databricks, check that it is accurate and complete. Then keep monitoring it so it stays accurate and up to date.

We recommend using a Medallion Architecture in Databricks. Learn more here.

Medallion Architecture, Databricks

When the raw data is ingested into the Databricks platform, it is considered in a "Bronze" state. The next step is to clean, transform, join, and possibly aggregate the data into a "Silver" state. From the "Silver" state, the data is typically integrated into a data warehouse-friendly structure, such as a star schema for consumption by end users. This transformation step is a vast topic that is out of the scope of this article.

With a solid plan, you can use several technologies to get on-premises data into Databricks, including data integration platforms, cloud data transfer services, and secure network connections. The specific approach will depend on the characteristics of the data and the infrastructure of the on-premises environment.

Start with the AI Value Map

Find out where AI and agents will pay off in your business. The AI Value Map gives you a roadmap, a business model ready for your first agent, and the order to build in.

Start with a free session of up to a day with your leadership team. You'll leave with a short written readout that names your top three to five AI agent opportunities, says how ready your data, systems and controls are, and shows where to start.