无法从jRuby(Diametric)连接到在Amazon EC

编程入门 行业动态 更新时间:2024-10-27 18:33:36
无法从jRuby(Diametric)连接到在Amazon EC-2上远程部署的生产Datomic交易器(cannot connect from jRuby (Diametric) to production Datomic transactor deployed remotely on Amazon EC-2)

我正在使用Peer Service连接到Datomic。 我通过以下https://www.youtube.com/watch?v=wG5grJP3jKY教程在亚马逊上创建了基于DynamoDB的存储服务(使用CloudFormation服务,这里也引用了http://docs.datomic.com/aws.html ) 。 URI后面的教程ouptus:uri =“datomic:ddb:// us-east-1 / your-system-name / test-db?aws_access_key_id =&aws_secret_key =”; 不幸的是,我没办法把它放到连接数据库的URI中:

Diametric::Persistence.establish_base_connection({:uri=>"datomic:ddb://us-east-1/your-system-name/test-db?aws_access_key_id=<MY_ACCESS_KEY>&aws_secret_key=<MY_SECRET_KEY>"})

我被给了

RuntimeError: :db.error/unsupported-protocol Unsupported protocol :ddb

如果我将“ddb”改为“free”,我就会被给予

RuntimeError: :db.error/invalid-db-uri Invalid database URI datomic:free://us-east-1/your-system-name/test-db

从Diametric直接连接到通过Amazon Cloudformation服务设置Datomic所暴露的远程交易者的方法是什么? 我在哪里可以找到该URI?

我需要补充一点,我可以通过datomic shell连接到远程Datomic实例

Peer.connect(uri)

问候!

[编辑:已解决,请参阅下面的评论]

I'm using Peer Service to connect to the Datomic. I created Storage Service based on DynamoDB on Amazon by following https://www.youtube.com/watch?v=wG5grJP3jKY tutorial (using CloudFormation service, it's also referenced here http://docs.datomic.com/aws.html). The tutorial ouptus following URI: uri = "datomic:ddb://us-east-1/your-system-name/test-db?aws_access_key_id=&aws_secret_key="; Unfortunately, there's no way for me to put that into URI that connects to the database:

Diametric::Persistence.establish_base_connection({:uri=>"datomic:ddb://us-east-1/your-system-name/test-db?aws_access_key_id=<MY_ACCESS_KEY>&aws_secret_key=<MY_SECRET_KEY>"})

I'm being given

RuntimeError: :db.error/unsupported-protocol Unsupported protocol :ddb

If I change "ddb" into "free" I'm being given

RuntimeError: :db.error/invalid-db-uri Invalid database URI datomic:free://us-east-1/your-system-name/test-db

What would an approach to connect from Diametric directly to remote transactor that's exposed through setting up Datomic by Amazon Cloudformation service? Where do I find that URI?

I need to add, that I can connect to the remote Datomic instance through datomic shell, with

Peer.connect(uri)

Regards!

[EDIT: it was resolved, see my comment below]

最满意答案

好的,它已经解决了。 原来我依赖于Datomic的免费版本的JAR文件。 诀窍是重新创建基于gem目录的Jarfile.lock文件。 diametric lab的制造商之一更新了图书馆的Wiki页面,所以现在很容易理解:

http://github.com/relevance/diametric/wiki/Datomic-Pro-Version-Support

OK, it's resolved. Turned out that I was relying on the JAR file of free verions of the Datomic. The trick was to recreate Jarfile.lock file based in gem's directory. One of the makers of diametric lab updated the Wiki page of the library, so now it's easy to follow:

http://github.com/relevance/diametric/wiki/Datomic-Pro-Version-Support

更多推荐

本文发布于:2023-07-09 14:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1087127.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   Diametric   jRuby   Amazon   EC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!