| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
For this tutorial, we set up Feast with Redis.
We use the Feast CLI to register and materialize features, and then retrieving via a Feast Python feature server deployed in Kubernetes
Start minikube (minikube start)
Use helm to install a default Redis cluster
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install my-redis bitnami/redisPort forward Redis so we can materialize features to it
kubectl port-forward --namespace default svc/my-redis-master 6379:6379Get your Redis password using the command (pasted below for convenience). We'll need this to tell Feast how to communicate with the cluster.
export REDIS_PASSWORD=$(kubectl get secret --namespace default my-redis -o jsonpath="{.data.redis-password}" | base64 --decode)
echo $REDIS_PASSWORDregistry: gs://[YOUR GCS BUCKET]/demo-repo/registry.db
project: feast_python_demo
provider: gcp
online_store:
type: redis
# Note: this would normally be using instance URL's to access Redis
connection_string: localhost:6379,password=[YOUR PASSWORD]
offline_store:
type: file
entity_key_serialization_version: 2CURRENT_TIME=$(date -u +"%Y-%m-%dT%H:%M:%S")
feast materialize-incremental $CURRENT_TIMEminikube addons enable gcp-authhelm repo add feast-charts https://feast-helm-charts.storage.googleapis.com
helm repo updatesed -i '' 's/localhost:6379/my-redis-master:6379/g' feature_store.yamlDev instructions: if you're changing the java logic or chart, you can do
kubectl logs svc/feast-feature-serverkubectl port-forward svc/feast-feature-server 6566:80sed -i '' 's/my-redis-master:6379/localhost:6379/g' feature_store.yaml python test_python_fetch.py| Back | FazBrowse Home | New Git URL |