hops-spark

Automate PySpark code execution in Hopsworks with Delta Lake integration.

15|32|Updated Nov 13, 2021
One-click install
npx skills add https://github.com/logicalclocks/hopsworks-api --skill hops-spark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hops-spark
Source: https://github.com/logicalclocks/hopsworks-api/tree/main/skills/data/hops-spark
Command: npx skills add https://github.com/logicalclocks/hopsworks-api --skill hops-spark

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill unit simplifies the execution of PySpark code within the Hopsworks environment, addressing the need for distributed data processing that exceeds the capabilities of a single machine.

Core Features & Use Cases

  • PySpark Execution: Facilitates the execution of PySpark code in Hopsworks for large-scale data processing.
  • Spark Connect Mode: Automatically invokes Spark Connect mode for seamless integration with Hopsworks.
  • Delta Lake Integration: Ensures seamless interaction with Delta Lake for offline feature groups and data storage.
  • Use Case: Ideal for data scientists and engineers who need to process large datasets using PySpark within the Hopsworks platform.

Quick Start

To execute a PySpark script in Hopsworks, use the hopsworks SDK with the build_spark function, like so: spark = build_spark("my_pipeline").

Frequently Asked Questions about hops-spark

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run PySpark code in Hopsworks for distributed data processing?

To run PySpark code in Hopsworks, you use the hopsworks SDK to initialize the session. Calling the build_spark function, such as build_spark("my_pipeline"), automates the environment setup and invokes Spark Connect mode for seamless execution.

What is the best way to integrate Delta Lake with PySpark for batch feature pipelines?

Integrating Delta Lake with PySpark is best handled within the Hopsworks environment, which ensures seamless interaction for offline feature groups and data storage. This setup is ideal for building large-scale batch feature pipelines.

Can I use this PySpark Hopsworks setup for data processing that exceeds a single machine?

Yes, you can use this PySpark Hopsworks setup for large-scale data processing that exceeds a single machine. It simplifies distributed processing by automating Spark Connect mode, making it suitable for big data tasks.

Does Hopsworks support Spark Connect mode for seamless PySpark execution?

Yes, Hopsworks supports Spark Connect mode for seamless PySpark execution. The environment automatically invokes this mode when you initialize your session using the build_spark function from the hopsworks SDK.

When do I need Delta Lake for offline feature groups in Hopsworks?

You need Delta Lake for offline feature groups in Hopsworks when executing large-scale batch feature pipelines. It provides the underlying data storage and ensures seamless interaction with your distributed PySpark processing tasks.