1

Microsoft Azure 経由で DC/OS クラスターをセットアップし、DC/OS ダッシュボードを使用して (ssh トンネル経由で) Arango 3.0 をクラスターにインストールしました。クラスターに SSH で接続し、Arango クラスターと通信できます。

$ 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 リクエストを使用してグラフを挿入した後でも、Arango ダッシュボード (ssh トンネル経由で DC/OS ダッシュボードからアクセス) にグラフが表示されません。何故ですか?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}

Arango シェルの使用にも問題があります。サーバーに Arango が明確にインストールされているにもかかわらず (上記の curl で示されているように)、Arango シェルはまだ認識されません。

$ arangosh
arangosh: command not found

質問 #2 : DC/OS ダッシュボードから Arango をインストール済みですが、手動でこのマシンに Arango をインストールする必要がありますか? もしそうなら、どうすればアランゴを手に入れることができますか? (使用してみapt-getましたが、異なるバージョンの問題がありました)。または、私が見逃しているこのクラスターと通信する別の方法はありますか?

(基本的に、私は大きなグラフを Arango に一括インポートしようとしています。HTTP 経由ではなく、ファイルから直接インポートする方法が必要だと思います。その方がおそらく高速/効率的だからです)。

4

1 に答える 1