Skip to content

Commit

Permalink
Merge pull request #173 from rpalcolea/add-pathHome-info
Browse files Browse the repository at this point in the history
Update configuration.adoc to include path.home in VM options
  • Loading branch information
puneetbehl committed Sep 4, 2016
2 parents dd960cb + c513821 commit bc98d2c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/docs/configuration.adoc
Expand Up @@ -75,6 +75,32 @@ elasticSearch:

If no host is defined, `localhost:9300` will be used by the transport client.

==== Using node or dataNode during development

If you configure your dev environment to use `node` or `dataNode` you might see the following exception:

[source, groovy]
----
'elasticSearchClient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: path.home is not configured
----

In order to make this work you need to define `es.path.home` in VM options.

[source, groovy]
.Grails 2.x
----
grails run-app -Des.path.home=<PATH_TO_ELASTICSEARCH_HOME_DIR>
----

[source, groovy]
.Grails 3.x (build.gradle)
----
bootRun {
jvmArgs = ['-Des.path.home=<PATH_TO_ELASTICSEARCH_HOME_DIR>']
}
----


=== Mapping Migration properties

Define the application's behaviour when a conflict is found while installing Elasticsearch mappings on startup. For a detailed explanation, see <<Mapping Migrations>>.
Expand Down

0 comments on commit bc98d2c

Please sign in to comment.