Ok, having trouble since I’m very new to data engi...
# ask-community-for-troubleshooting
j
Ok, having trouble since I’m very new to data engineering… I tested fivetran and got dbt set up no problem, but that's because it was just enough plug-n-play for my level of development knowledge. Could somebody reeaaally break it down for me as if i were 5 yrs old? HOW can I make my own dbt models to use with airbyte open-sourced? Where can I access the pre-built dbt project to manipulate and connect through github? I have it running on a EC2 instance with an ssh tunnel from my Mac and testing with an Instagram>BigQuery connection up and running. Please don't share the airbyte-dbt help doc, as it doesn't seem to dumb it down enough for me 😂_… or the demo hour youtube video_ 🙏
👀 1
o
loading...
n
you dont have to use dbt as part of the airbyte load process. You can just load with Airbyte and then separately run dbt on the loaded data. I do this and just work off the RAW data from Airbyte. that might be simpler 🙂
j
I appreciate the advice @Noel Gomez! I was thinking that was my next/first step also. I’m still looking for better understanding of running dbt through airbyte as I want to scale up to that for bigger projects coming my way this year, but I’m not sure if I can run dbt Cloud or if I need to get better with CLI in general, ha.
n
I tend to prefer not running dbt as part of ingestion because transformations are not going to be one to one. I mean you will probably load 2+ sources, then transform across them.
a
Hi @Jordan Scott, let us know where you are blocked in our documentation; it'll be valuable feedback to improve it. I suggest that you first locally build your DBT project to make the transformation you want on your raw data. Then, once it's ready, you can add a custom transformation in Airbyte after pushing your dbt code to a Github repo. If you plan to make transformations on different sources, as @Noel Gomezsuggests, you're better off running transformations using an orchestrator such as Airflow.
1
To retrieve the pre-built normalization model you need to execute these commands from your docker machine.
Breaking it down: 1. First run a sync with normalization on. 2. After a first successful sync, export the dbt normalization project from the airbyte server using these instructions. 3. Make the changes you need locally on the exported dbt project 4. Push your dbt project to github repo that your Airbyte instance is able to clone 5. Set a custom transformation on your sync, as described here Let me know which step is difficult for you.
🙏 1
j
That all makes sense in theory 😅 I believe I get stuck with writing CLI in general. So I just need to take a step back to understand what each command means so I can make sure I know WHAT I’m doing instead of blindly typing in commands and hoping for the best.
Ok, so I was able to get the SQL files copy/pasted over to my own personal dbt project - awesome. I’ve changed things in the models and ran dbt in dbt cloud and it works great - perfect. But when I try to connect my dbt project in airbyte, I keep getting an error - bummer. Could someone tell me what may be wrong by looking at this screenshot of the logged error(s)? Or what else would I need to screenshot to identify where the error might be?
I’m running two transformations —
deps
and then
run
. Here’s a screenshot of the
run
transformation setup:
…and my dbt_project.yml file:
a
Hey @Jordan Scott, could you share which version of DBT you are using in DBT cloud? Our image is using 0.19.1, maybe this is why some properties are not supported, triggering your error. Maybe @Chris Duong [Airbyte] has a better insight.
j
Screen Shot 2022-03-22 at 1.27.15 PM.png
a
I rather asking about the dbt project version not the dbt cloud version. I think you can get this from your environment setting
j
ah that’s right - sorry. I’m using v1.0
Should I bring it down to 0.19.1?
a
Yes please
j
ok on it
It worked! Ok so apparently those alternative path options in the dbt_project.yml file weren’t supported yet in 0.19.1. When I downgraded in dbt cloud, it gave me the same warning that Airbyte was throwing at me. Just ran Airbyte with the dbt transformations and it worked perfectly! WOOHOO thank you for the help!
c
you can also upgrade/use a docker image that is using dbt v1.0 with airbyte too. But if you use a version shipped with v.0.19, then yes, your dbt_project.yml should follow that version properties
👍 1