Comments (4)
Here is a short getting started guide: https://medium.com/building-the-open-data-stack/datastax-presents-snowflake-sink-connector-for-apache-pulsar-53629b196064
It is a bit late to help you but it I hope it will help someone else
from snowflake-connector.
Thank you!
The connector needs Apache Pulsar 2.9+ or Datastax Luna Streaming 2.8 (relevant changes cherry-picked there).
I'll work on a better documentation; if you have a fix for apache/pulsar#12880 I'll be happy to review the PR (or I'll get to fixing it a little bit later).
regarding the schema, I used the following CLI commands:
Set retention for the namespace:
$ bin/pulsar-admin namespaces set-retention public/default -t -1 -s 100M
Set topic schema:
$ cat ~/schema_sf_js.json
{
"type": "JSON",
"schema": "{\"type\":\"record\",\"name\":\"SnowflakeTestSchema\",\"namespace\":\"com.foo\",\"fields\":[{\"name\":\"col1\",\"type\":[\"null\",\"string\"]},{\"name\":\"col2\",\"type\":[\"null\",\"string\"]}]}",
"properties": {}
}
$ bin/pulsar-admin schemas upload --filename ~/schema_sf_js.json snowflake-test
and to send the messages:
$ cat ~/a.json
{"col1": "val1", "col2": "val2"}
$ bin/pulsar-client produce snowflake-test -f ~/a.json -n 200 -vs json:"{\"type\":\"record\",\"name\":\"SnowflakeTestSchema\",\"namespace\":\"com.foo\",\"fields\":[{\"name\":\"col1\",\"type\":[\"null\",\"string\"]},{\"name\":\"col2\",\"type\":[\"null\",\"string\"]}]}"
from snowflake-connector.
@dig99 Thanks, I was not aware about the -vs option in pulsar client...
I created the PR: apache/pulsar#12893
from snowflake-connector.
Added link to the blog post into the readme.
from snowflake-connector.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowflake-connector.