我正在使用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 :ddbIf 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-dbWhat 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
更多推荐
发布评论