Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working for snowflake but works for mysql #132

Open
RAJMODI038 opened this issue Feb 20, 2023 · 0 comments
Open

Plugin not working for snowflake but works for mysql #132

RAJMODI038 opened this issue Feb 20, 2023 · 0 comments

Comments

@RAJMODI038
Copy link

Does this plugin support Snowflake? I tried with MySQL and it's working perfectly. But with snowflake, it's giving error:
[error]: #0 Could not load the 'snowflake' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile.
It seems there's something wrong with the adapter/adapter name.
I'm using docker for fluentd.
Dockerfile:

FROM fluent/fluentd:v1.15.3-debian-1.0
USER root
RUN ["fluent-gem", "install", "fluent-plugin-sql"]
RUN apt-get update && \
    apt-get -y install make && \
    apt-get -y install unixodbc-dev
RUN ["fluent-gem", "install", "sequel-snowflake"]
USER fluent

Conf:

  <match>
    @type sql
    adapter snowflake
    host my_org.snowflakecomputing.com
    port 443
    database PROD
    username <username>
    password <password>
    <table>
      table <schema>.EVENTS_TEST
      column_mapping 'name:name,value:value,labels:labels,type:type'
    </table>
  </match>

I've also tried adapter :snowflake as mentioned in https://github.com/Yesware/sequel-snowflake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant