I have just set up a DC/OS cluster via Microsoft Azure, and installed Arango 3.0 on the cluster using the DC/OS dashboard (via the ssh tunnel). I am able to SSH into the cluster and communicate with the Arango cluster:
$ 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}
Question #1: Even after I insert a graph using the POST requested described here in the docs, the Arango Dashboard (accessed through the DC/OS Dashboard via the ssh tunnel) doesn't show the graph. Why is that? Here is "evidence" that the graph social
was created:
$ 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}
I'm also having trouble using the Arango shell. Even though Arango is clearly installed on he server (as shown by the above curl), the Arango shell still isn't recognized:
$ arangosh
arangosh: command not found
Question #2: Do I have to manually install Arango onto this machine even though I already installed Arango it through the DC/OS dashboard? If so, how should I get Arango? (I tried using apt-get
but there were differing-version issue). Or is there another way of communicated with this cluster that I'm missing?
(Basically, I'm trying to bulk-import a large graph into Arango. I feel like there should be a way of importing directly from a file -- i.e. not over HTTP -- since that is probably faster / more efficient).