{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/15325","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15325/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15325/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15325/events","html_url":"https://github.com/elastic/elasticsearch/issues/15325","id":121138884,"number":15325,"title":"path.home is not configured","user":{"login":"YunchaoGongSC","id":12436977,"avatar_url":"https://avatars.githubusercontent.com/u/12436977?v=3","gravatar_id":"","url":"https://api.github.com/users/YunchaoGongSC","html_url":"https://github.com/YunchaoGongSC","followers_url":"https://api.github.com/users/YunchaoGongSC/followers","following_url":"https://api.github.com/users/YunchaoGongSC/following{/other_user}","gists_url":"https://api.github.com/users/YunchaoGongSC/gists{/gist_id}","starred_url":"https://api.github.com/users/YunchaoGongSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunchaoGongSC/subscriptions","organizations_url":"https://api.github.com/users/YunchaoGongSC/orgs","repos_url":"https://api.github.com/users/YunchaoGongSC/repos","events_url":"https://api.github.com/users/YunchaoGongSC/events{/privacy}","received_events_url":"https://api.github.com/users/YunchaoGongSC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-09T01:16:34Z","updated_at":"2015-12-09T05:31:11Z","closed_at":null,"body":"Hey\r\n\r\nI am trying to do unit tests for ES, and tried to setup a local node using the following code.\r\n\r\n Node server = nodeBuilder()\r\n                .node();\r\n\r\nBut I got the following error when I try to create this\r\n\r\njava.lang.IllegalStateException: path.home is not configured\r\n\tat org.elasticsearch.env.Environment.<init>(Environment.java:99)\r\n\tat org.elasticsearch.node.internal.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:81)\r\n\tat org.elasticsearch.node.Node.<init>(Node.java:135)\r\n\tat org.elasticsearch.node.Node.<init>(Node.java:129)\r\n\tat org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:145)\r\n\tat org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:152)\r\n\r\nThen I tried the following without luck\r\n\r\nSettings settings = Settings.settingsBuilder().put(\"es.path.home\", \"\").build();\r\nNode server = nodeBuilder().settings(settings).node();\r\n\r\nDo you guys have any idea? Thanks!\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/163115629","html_url":"https://github.com/elastic/elasticsearch/issues/15325#issuecomment-163115629","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15325","id":163115629,"user":{"login":"YunchaoGongSC","id":12436977,"avatar_url":"https://avatars.githubusercontent.com/u/12436977?v=3","gravatar_id":"","url":"https://api.github.com/users/YunchaoGongSC","html_url":"https://github.com/YunchaoGongSC","followers_url":"https://api.github.com/users/YunchaoGongSC/followers","following_url":"https://api.github.com/users/YunchaoGongSC/following{/other_user}","gists_url":"https://api.github.com/users/YunchaoGongSC/gists{/gist_id}","starred_url":"https://api.github.com/users/YunchaoGongSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunchaoGongSC/subscriptions","organizations_url":"https://api.github.com/users/YunchaoGongSC/orgs","repos_url":"https://api.github.com/users/YunchaoGongSC/repos","events_url":"https://api.github.com/users/YunchaoGongSC/events{/privacy}","received_events_url":"https://api.github.com/users/YunchaoGongSC/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T05:31:11Z","updated_at":"2015-12-09T05:31:11Z","body":"Another question, it seems by using nodeBuilder, we still need a local copy of ES. If we only want to setup a local in memory test server in our unit tests, when we develop stuff using ES's Java API, what is the best setting for this? Thanks!"}}