hey, i am new to meltano, and i can write my state...
# troubleshooting
m
hey, i am new to meltano, and i can write my state file to terminal, but i can't figure how to dump it to stdout, so that i can modify it will an earlier date and rerun. can someone post the syntax to get it to stdout? thanks!
this works to see the state meltano elt tap-mysql pipelinewise-target-s3-csv --dump state --job_id sched_mysql_to_s3_210615_002
d
You mean you want to dump it to a file? Add
> filename
at the end of that command!
m
but i need to modify this to stdout.... or to pass an override into a schedule job run to force an earlier incremental date etc
d
Ah, you can pass a modified state file into
meltano elt
using
--state <path>
m
not sure how to write that for dumpint to a file name
d
To dump current state to a file:
meltano elt ... --dump=state > state.json
To use that state in a new pipeline:
meltano elt ... --state state.json
m
thanks douwe. where is the defaul dump location for the file.... i can't see to find it.
d
It will be in your current working directory
That’s usually your Meltano project directory
m
Thank you!