Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions 7-feature_store/5-data_pipeline_with_materialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
)
from kfp import kubernetes

USER = ""
# 🚨🚨🚨 STOP! SET YOUR USERNAME BEFORE RUNNING! 🚨🚨🚨
# ✏️ Fill in your username below, then save the file!
USER = "" # 👈 PUT YOUR USERNAME HERE (e.g. USER = "user1")
DATASET = ""
CLUSTER_DOMAIN = ""

Expand Down Expand Up @@ -110,7 +112,7 @@ def materialize_changes(
import os
from datetime import datetime

user_name = os.environ.get("namespace", "default-toolings").split('-')[0]
user_name = USER
fs_config_json = {
'project': f'{user_name}_music',
'provider': 'local',
Expand All @@ -137,6 +139,7 @@ def materialize_changes(
'auth': {'type': 'kubernetes'}
}

print(fs_config_json)
fs_config = feast.repo_config.RepoConfig(**fs_config_json)
fs = feast.FeatureStore(config=fs_config)

Expand Down