Elixir driver for ScyllaDB

492 views
Skip to first unread message

cristi...@surhive.com

unread,
Jun 9, 2016, 10:33:52 AM6/9/16
to ScyllaDB users
Hello,

  I was wondering if there is an Erlang/Elixir driver for ScyllaDB.
I did some searches but nothing came out.
Is it really binary compatible? Can I use the current erlang driver to connect to Scylla?

Thanks
Cristian

Pekka Enberg

unread,
Jun 9, 2016, 10:39:17 AM6/9/16
to ScyllaDB users, cristi...@surhive.com
Hi Christian,
Yes, Scylla is binary compatible with Cassandra CQL drivers.

I am not an expert on Erlang or Elixir so I have not tested it myself
but the following driver should work:

https://github.com/matehat/cqerl

If you experience problems, please report back and we'll get them fixed for you.

- Pekka

Cristian Rosa

unread,
Jun 9, 2016, 10:52:01 AM6/9/16
to Pekka Enberg, ScyllaDB users
Hi Pekka,


Yes, Scylla is binary compatible with Cassandra CQL drivers.

I am not an expert on Erlang or Elixir so I have not tested it myself
but the following driver should work:

https://github.com/matehat/cqerl

If you experience problems, please report back and we'll get them fixed for you.


I'll try that driver and keep you posted.
Thanks
Cristian

cristi...@surhive.com

unread,
Jun 10, 2016, 1:40:51 PM6/10/16
to ScyllaDB users, pen...@scylladb.com, cristi...@surhive.com
Hello,

  I have been trying to connect to Scylladb from Erlang using the following line:

{:ok, client} = :cqerl.new_client({}, [{:protocol_version, 3}])

but I am getting a timeout.
I know that scylladb is running because I can connect using cqlsh.
  Is there a way to check if there are any incoming connection to the database? I would like to be sure that the erlang program is actually reaching it (although both run locally).

Thanks
Cristian

Pekka Enberg

unread,
Jun 11, 2016, 3:16:02 AM6/11/16
to cristi...@surhive.com, ScyllaDB users
On Fri, Jun 10, 2016 at 8:40 PM, <cristi...@surhive.com> wrote:
> I have been trying to connect to Scylladb from Erlang using the following
> line:
>
> {:ok, client} = :cqerl.new_client({}, [{:protocol_version, 3}])
>
> but I am getting a timeout.
> I know that scylladb is running because I can connect using cqlsh.
> Is there a way to check if there are any incoming connection to the
> database? I would like to be sure that the erlang program is actually
> reaching it (although both run locally).

Three options: (1) use scyllatop and watch for the
transport.connections.* counters, (2) set "--default-log-level" to
"debug" or even "trace", or (3) use wireshark to watch the CQL traffic
to port 9042.

Btw, If you are able to share the example program and instructions how
to run it, I can also have a look at it myself.

- Pekka

Pekka Enberg

unread,
Jul 21, 2016, 8:12:44 AM7/21/16
to cristi...@surhive.com, ScyllaDB users
Ping! Any updates on this Erlang driver issue?

Cristian Rosa

unread,
Jul 21, 2016, 8:57:46 AM7/21/16
to Pekka Enberg, ScyllaDB users
Hi


Ping! Any updates on this Erlang driver issue?

I finally ended up using cassandra because I was a bit tight on time, but I suspect I was using the driver in the wrong way.
I'll try again and post an update on the issue.
Thanks for asking.

Cristian

staple pin

unread,
Oct 30, 2021, 8:12:11 PM10/30/21
to ScyllaDB users
has anyone managed to get this to work ? 😂

Dor Laor

unread,
Oct 31, 2021, 2:34:22 AM10/31/21
to ScyllaDB users
There was a good report on the slack that an  Elixir cpp wrapper works well:

The key plan is to use our Rust driver as a base for several other drivers
and have them wrap it [1]. Volunteers are welcome. We're wrapping a new
cpp driver over Rust now.


--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scylladb-users/b3dbc6f4-514f-4475-ab2e-ab8df63c62c5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages