BK
05/08/2023, 4:38 PMsean
05/08/2023, 5:01 PMBK
05/08/2023, 5:06 PMdbt_pipelines:
secrets:
dagsterRedshiftPw: ""
DBT_GITHUB_TOKEN: ""
SLACK_TOKEN: ""
PAGERDUTY_TOKEN: ""
hudi_pipelines:
secrets:
EMR_SSH_KEY: ""
MSK_PASSWORD: ""
AWS_ACCESS_KEY_ID: ""
AWS_SECRET_ACCESS_KEY: ""
dagster-user-deployments:
deployments:
- name: dbt-pipelines
image:
repository: localhost:5000/dbt_pipelines
tag: "dev"
pullPolicy: Always
dagsterApiGrpcArgs:
- "--package-name"
- "dbt_pipelines"
port: 3031
env:
dagsterRedshiftHost: ""
dagsterRedshiftUser: ""
dagsterRedshiftDb: ""
DBT_GITHUB_USER: ""
DAGIT_BASE_URL: "<http://localhost:8080>"
envSecrets:
- name: dagster-redshift-pw
- name: dagster-github-token
- name: dagster-slack-token
- name: dagster-pagerduty-token
- name: hudi-pipelines
image:
repository: localhost:5000/hudi_pipelines
tag: dev
pullPolicy: Always
dagsterApiGrpcArgs:
- "--package-name"
- "hudi_pipelines"
port: 3031
envSecrets:
- name: dagster-emr-ssh-key
- name: dagster-msk-password
sean
05/08/2023, 5:14 PM$ dagster dev -m dbt_pipelines
BK
05/09/2023, 4:05 PMFROM python:3.7.8-slim
RUN apt-get update -yqq \
&& apt-get install -yqq cron \
&& rm -rf /var \
&& rm -rf /root/.cache \
&& rm -rf /usr/lib/python2.7 \
&& rm -rf /usr/lib/x86_64-linux-gnu/guile
WORKDIR /dbt_pipelines
COPY ./repositories/dbt_pipelines/requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
COPY ./repositories/dbt_pipelines/ .
RUN pip install .
sean
05/09/2023, 4:12 PM$ dagster dev -m dbt_pipelines
BK
05/09/2023, 4:33 PMNo such command 'dev'.
Could be because dbt_pipelines
is a folder not a file.sean
05/09/2023, 4:42 PMsean
05/09/2023, 4:49 PMdagster --version
)BK
05/09/2023, 4:50 PMdagster, version 0.14.19
sean
05/09/2023, 4:51 PMdagster
version and it doesn’t have the dev
command. I’m guessing this is where your problem is coming from. You should try matching whatever you’re using in production locally. You could start out by just trying the most recent version though, which is 1.3.3
BK
05/09/2023, 4:53 PMdagster==0.14.19
dagster-dbt==0.14.19
dagster_k8s==0.14.19
dagster-postgres==0.14.19
dbt-redshift==1.2.0
pandas==0.25.3
pygit2==1.7.0
dagster_slack==0.14.19
markupsafe==2.0.1
pdpyras==4.5.0
protobuf<3.21.0
sean
05/09/2023, 4:55 PMdagster dev -m dbt_pipelines
, do dagit -m dbt_pipelines
BK
05/09/2023, 4:58 PMfrom dagster._core.libraries import DagsterLibraryRegistry
ModuleNotFoundError: No module named 'dagster._core'
sean
05/09/2023, 6:04 PMdagster._core
does not exist 0.14.xBK
05/09/2023, 6:12 PMsean
05/09/2023, 6:29 PMpip install dagit==0.14.19
and then tryBK
05/09/2023, 7:05 PMsean
05/09/2023, 7:11 PMpip install dagster==0.14.19 dagit==0.14.19
.BK
05/09/2023, 7:20 PMsean
05/09/2023, 7:23 PMI’m also trying to make sense of of it as it quite different from the docs i’ve seen.One reason for this is that your version is over a year old. The old docs are available here: https://docs.dagster.io/0.14.19 If you just look at the main docs site without this you’ll probably get confused with 0.14.19 code, Dagster has changed a lot.
What does the docker image then play if we still have to install libraries locally.The docker image is typically used in a deployment context. I wouldn’t recommend working with it during local development.
BK
05/09/2023, 7:31 PMOne reason for this is that your version is over a year old. The old docs are available here: https://docs.dagster.io/0.14.19Oh i see. This page returns a 404 error.
sean
05/09/2023, 7:31 PMsean
05/09/2023, 7:32 PMBK
05/11/2023, 6:25 PM