我刚刚通过Microsoft Azure设置了DC/OS集群,并使用DC/OS仪表板(通过ssh隧道)在集群上安装了Arango 3.0。我能够SSH到群集和与阿朗戈集群通信:在DC/OS集群上运行Arango Shell
$ curl --dump - http://localhost:8529/_api/gharial
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Server: ArangoDB
Connection: Keep-Alive
Content-Length: 38
{"error":false,"graphs":[],"code":200}
#1问题:即使在我插入使用POST的图表请求的描述here in the docs,将阿朗戈控制板(通过DC访问/操作系统仪表板通过ssh隧道)不显示图形。这是为什么?这里是“证据”,该图social
创建:
$ curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male <<EOF
> {
> "name" : "social",
> "edgeDefinitions" : [
> {
> "collection" : "relation",
> "from" : [
> "female",
> "male"
> ],
> "to" : [
> "female",
> "male"
> ]
> }
> ]
> }
> EOF
HTTP/1.1 202 Accepted
Etag: 129726
Content-Type: application/json; charset=utf-8
Server: ArangoDB
Connection: Keep-Alive
Content-Length: 89
$ curl --dump - http://localhost:8529/_api/gharial
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Server: ArangoDB
Connection: Keep-Alive
Content-Length: 226
{"error":false,"graphs":[{"_key":"social","_id":"_graphs/social","_rev":"125906","edgeDefinitions":[{"collection":"relation","from":["female","male"],"to":["female","male"]}],"orphanCollections":["otherVertices"]}],"code":200}
我也有使用阿朗戈外壳麻烦。即使阿朗戈显然是他的服务器上安装(如图上述卷曲),该阿朗戈壳仍然无法识别:
$ arangosh
arangosh: command not found
问题2:我必须手动安装阿朗戈到本机上即使我已经通过DC/OS仪表板安装了Arango?如果是这样,我应该如何得到Arango? (我尝试使用apt-get
,但有不同版本的问题)。或者还有另一种与我缺失的群集沟通的方式? (基本上,我试图批量导入一个大图到Arango中,我觉得应该有一种直接从文件导入的方式 - 即不通过HTTP - 因为这可能更快/更多有效)。
你能详细说明你是如何准确建立ssh隧道的(即什么是localhost在这里?)。这可能是因为你错误地连接到了DBServer(它可能仍然对_api做出响应,但这只是本地操作而不是已知的集群范围)。您必须连接到协调员。 – mop
我完全按照[此处]的说明(https://dcos.io/docs/1.7/administration/installing/cloud/azure/#step-2-accessing-dc-os)。 ssh命令是'ssh azureuser @ masterfqdn -p 2200 -L 8000:localhost:80',其中'masterfqdn'是我部署输出的URL。 –
啊,我现在看到我没有连接到协调员。为了将来的参考,我可以在协调员与masterfqdn进行通信的同时进行通信,IP列在节点 - >协调员下的ArangoDB仪表板中。我相信如果他们使用类似sshuttle的东西,我们也可以直接与协调者沟通,但我在Windows机器上,所以我必须通过masterfqdn。 –