hi all, i'm a first time user, tried tap-mssql and...
# troubleshooting
j
hi all, i'm a first time user, tried tap-mssql and tap-snowflake, but because of my lack of knowledge on python etc. i cannot get this to work:
a
Hi @jochem_zwienenberg your not alone. I find the python setup a pain from time to time, and then again the next time I have to do it! Windows with meltano might still have issues too I recall. At the risk of sounding like a vendor (sorry), you could create your project with docker and our community edition, then take your meltano project wherever you like https://www.matatika.com/docs/getting-started/community-edition Happy to experiment with this on a call if you wanted to take a further look. DM me.
You might also have some joy running meltano docker container to pass all your meltano project commands to it - https://docs.meltano.com/guide/containerization
j
thnx @aaron_phethean, i will try the Docker
a
To give you some confidence we’ve used tap-mssql without issues. Not tap-snowflake (only the target).
j
but from within a docker?
or linux, not Windows?
a
A docker container yes, not usually the meltano one. Should only take a few minutes to send you and example if that’s useful. Which target do you want?
Linux, yes.
j
snowflake would be nice, but just want to test, so csv is also ok
a
👍 I’ll send you an example when I get to the office
j
no hurries! today i won't have time to test, so will be next week i think! But thnx very Much! and have a nice weekend 👍
a
Hi @jochem_zwienenberg Here are the commands to create your project with the meltano image https://hub.docker.com/r/meltano/meltano
Copy code
docker pull meltano/meltano
docker run --volume $(pwd):/project meltano/meltano init myproject
cd myproject
docker run --volume $(pwd):/project meltano/meltano add extractor tap-mssql
Here is the source code: https://github.com/aphethean1/mssql-example Here is a little video showing you what I did: https://www.loom.com/share/ade55258c80f4a509b8b339412609620
Also, you have quite a few options for running the extract e.g. create a .env or export the following
Copy code
TAP_MSSQL_USER=user
TAP_MSSQL_PASSWORD=password
TAP_MSSQL_HOST=host
TAP_MSSQL_DATABASE=database
TARGET_SNOWFLAKE_ACCOUNT=ACCOUNT
TARGET_SNOWFLAKE_USERNAME=USERNAME
TARGET_SNOWFLAKE_PASSWORD=PASSWORD
TARGET_SNOWFLAKE_ROLE=ROLE
TARGET_SNOWFLAKE_DATABASE=DATABASE
TARGET_SNOWFLAKE_WAREHOUSE=WAREHOUSE
LOADER=target-snowflake
EXTRACTOR=tap-mssql
DBT_TARGET=snowflake
DBT_SOURCE_SCHEMA=analytics
DBT_TARGET_SCHEMA=analytics
MELTANO_DATABASE_URI=<postgresql://dxyuwns:36WdJjNf_E6Lp42aR_02OsmqPv@db:5432/dxyuwns?options=-csearch_path%3Dpublic>
MELTANO_ENVIRONMENT=dev
Run
Copy code
docker run --volume $(pwd):/project meltano/meltano run tap-mssql target-snowflake
j
ok think i got some work / learning to do
will try it ASAP! also will have a look at Matatika as a product
thnx, for now have a nice weekend, like i said today i don't have time to test further!