Re: [VOTE] JanusGraph 0.6.0 release


Oleksandr Porunov
 

Confirming the issue which is found by Florian Hockmann.

I was trying to load `GraphOfTheGodsFactory.load(graph)` and couldn't:
GraphOfTheGodsFactory.load(graph)
The indexing backend with name "search" is not defined. Specify an existing indexing backend or use GraphOfTheGodsFactory.loadWithoutMixedIndex(graph,true) to load without the use of an indexing backend.

So, it looks like `janusgraph-server.sh` is using inmemory option without index backend instead of using Cassandra + ElasticSearch as requested by `janusgraph.sh` script.
Quickly checking `janusgraph.sh` script I see it starts `janusgraph-server.sh` with the following options:
```
"$BIN"/janusgraph-server.sh console conf/gremlin-server/gremlin-server-cql-es.yaml &
```

Checking `janusgraph-server.sh` script I see the following code:
```
if [[ -z "$JANUSGRAPH_YAML" ]]; then
  JANUSGRAPH_YAML="$JANUSGRAPH_CONF/gremlin-server/gremlin-server.yaml"
fi
 
if [[ ! -r "$JANUSGRAPH_YAML" ]]; then
  # try relative to conf
  JANUSGRAPH_YAML="$JANUSGRAPH_CONF/gremlin-server/gremlin-server.yaml"
  if [[ ! -r "$JANUSGRAPH_YAML" ]]; then
    echo WARNING: $JANUSGRAPH_YAML is unreadable
  fi
fi

...

    if [[ -n "$1" ]] ; then
      if [[ -r "$1" ]]; then
        JANUSGRAPH_YAML="$1"
        startForeground
      elif [[ -r "$JANUSGRAPH_HOME/$1" ]] ; then
        JANUSGRAPH_YAML="$JANUSGRAPH_HOME/$1"
        startForeground
      fi
      echo Configuration file not found.
    fi

...
```

So, it looks like this script never expects path to be passed as a second argument. Thus, it looks like a second argument `conf/gremlin-server/gremlin-server-cql-es.yaml` is simply ignored and the default `$JANUSGRAPH_CONF/gremlin-server/gremlin-server.yaml` is used. But `$JANUSGRAPH_CONF/gremlin-server/gremlin-server.yaml` is using inmemory option by default. 
I believe this is the root cause for this problem but didn't had a chance to actually verify that yet. If anyone has time today to fix this issue, please, submit a PR, otherwise I will try to fix it in a day or two.

Join janusgraph-dev@lists.lfaidata.foundation to automatically receive all group messages.