diff --git a/src/test/java/org/elasticsearch/index/analysis/KuromojiAnalysisTests.java b/src/test/java/org/elasticsearch/index/analysis/KuromojiAnalysisTests.java index e7be9276970..73fd78047bf 100644 --- a/src/test/java/org/elasticsearch/index/analysis/KuromojiAnalysisTests.java +++ b/src/test/java/org/elasticsearch/index/analysis/KuromojiAnalysisTests.java @@ -193,6 +193,7 @@ public class KuromojiAnalysisTests extends ElasticsearchTestCase { public AnalysisService createAnalysisService() { Settings settings = ImmutableSettings.settingsBuilder() + .put("path.home", createTempDir()) .loadFromClasspath("org/elasticsearch/index/analysis/kuromoji_analysis.json") .put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT) .build(); diff --git a/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java b/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java index a24acdf6b37..1ab0fe59d81 100644 --- a/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java +++ b/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java @@ -42,6 +42,7 @@ public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest { protected Settings nodeSettings(int nodeOrdinal) { return ImmutableSettings.builder() .put(super.nodeSettings(nodeOrdinal)) + .put("path.home", createTempDir()) .put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true) .build(); }