Hi i am trying the meltano as poc and looking for ...
# getting-started
s
Hi i am trying the meltano as poc and looking for a help on setting up the dev environment on maltano.yml
meltano config --environment list
Error: No such option: --environment
i am running meltano, version 3.1.0
u
I dont think that is a valid command, check out https://docs.meltano.com/reference/command-line-interface/. You can try
meltano --environment=dev config target-bigquery set key value
to set or
meltano environment list
if you wanted to list your envs
s
Thank you Pat
i trying to figure out whats wrong with my config so i dont get this kind of config parameter in my meltano.yml (that i copied previously) specially under "environments: - name: dev"
plugins: extractors: - name: tap-gitlab variant: meltanolabs pip_url: git+https://github.com/MeltanoLabs/tap-gitlab.git environments: - name: dev config: plugins: extractors: - name: tap-gitlab config: projects: meltano/meltano meltano/tap-gitlab start_date: "2022-03-01T000000Z" select: - commits.id - commits.project_id - commits.created_at - commits.author_name - commits.message - tags.* - "!*.*_url"
in place of tab-gitlap i chose to use tap-rest-api-msdk and target-bigquery
Trying to resolve this Error ---.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.11/site-packages/tap_rest_api_msdk/tap.py", line 538, in get_schema raise ValueError(r.text) ValueError: {"message":null}
p
We usually recommend getting a simple example working first before trying to customize to use more advanced plugins, tap-rest-api-msdk is pretty complex since it can be configured to do a lot. I'm not sure I follow the issue youre running into right now, sharing your full meltano.yml might help. Additionally if you run the config command it should print your current json config to stdout https://docs.meltano.com/reference/command-line-interface#config
s
HI Pat, thanks for helping me here, and letting me know "tap-rest-api-msdk" is bit advanced to try first. But our requirement mainly focuses to show how well can we use meltano to get rest api data into BQ, SO i picked up a simple API that we use
the ouput of the api is 2 columns
{ "code": 200, "data": [ { "account_id": 2376, "account_name": "AAA" }, { "account_id": 2354, "account_name": "BBBBBBBB" }, ] }
and here is my full meltano.yml
Copy code
version: 1
default_environment: dev
project_id: f349f92a-9f42-40ff-bb48-434eef411caa
environments:
- name: dev
- name: staging
- name: prod
plugins:
  extractors:
  - name: tap-rest-api-msdk
    variant: widen
    pip_url: tap-rest-api-msdk
    config:
      api_url: <https://api.somesteamname.com/accounts>
      auth_method: basic
  loaders:
  - name: target-bigquery
    variant: z3z1ma
    pip_url: git+<https://github.com/z3z1ma/target-bigquery.git>
    config:
      credentials_json: "{\n  \"      unt\"\n}"
i used the interactive "`meltano config tap-rest-api-msdk set --interactive"`
to answer most of the questions , like api_url, using basic authrization token,
when i do meltano config tap-rest-api-msdk test
i endup getting this error
Copy code
.meltano/extractors/tap-rest-api-msdk/venv/lib/python3.11/site-packages/tap_rest_api_msdk/tap.py", line 538, in get_schema
    raise ValueError(r.text)
ValueError: {"message":null}