{"id":21994516,"url":"https://github.com/codelibs/elasticsearch-cluster-runner","last_synced_at":"2026-03-09T16:36:48.495Z","repository":{"id":17758418,"uuid":"20613654","full_name":"codelibs/elasticsearch-cluster-runner","owner":"codelibs","description":" Elasticsearch Cluster Launcher on One JVM Instance","archived":false,"fork":false,"pushed_at":"2024-06-15T06:53:44.000Z","size":476,"stargazers_count":67,"open_issues_count":16,"forks_count":18,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-09-06T00:43:18.685Z","etag":null,"topics":["elasticsearch","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Apollia/npp-task-list","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codelibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-06-08T09:28:23.000Z","updated_at":"2025-08-21T08:03:11.000Z","dependencies_parsed_at":"2023-11-13T00:20:40.670Z","dependency_job_id":"2953f038-b575-4581-a67a-22ce2139582b","html_url":"https://github.com/codelibs/elasticsearch-cluster-runner","commit_stats":null,"previous_names":[],"tags_count":203,"template":false,"template_full_name":null,"purl":"pkg:github/codelibs/elasticsearch-cluster-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-cluster-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-cluster-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-cluster-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-cluster-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelibs","download_url":"https://codeload.github.com/codelibs/elasticsearch-cluster-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelibs%2Felasticsearch-cluster-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30302651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","java"],"created_at":"2024-11-29T21:09:32.938Z","updated_at":"2026-03-09T16:36:48.475Z","avatar_url":"https://github.com/codelibs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Elasticsearch Cluster Runner\n[![Java CI with Maven](https://github.com/codelibs/elasticsearch-cluster-runner/actions/workflows/maven.yml/badge.svg)](https://github.com/codelibs/elasticsearch-cluster-runner/actions/workflows/maven.yml)\n============================\n\nThis project runs Elasticsearch cluster on one JVM instance for your development/testing easily.\nYou can use Elasticsearch Cluster Runner as Embedded Elasticsearch in your application.\n\n## Version\n\n- [Versions in Maven Repository (7.11-)](https://maven.codelibs.org/org/codelibs/elasticsearch-cluster-runner/)\n- [Versions in Maven Repository (-7.10)](https://repo1.maven.org/maven2/org/codelibs/elasticsearch-cluster-runner/)\n\n## Run on Your Application\n\nPut elasticsearch-cluster-runner if using Maven:\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.codelibs\u003c/groupId\u003e\n        \u003cartifactId\u003eelasticsearch-cluster-runner\u003c/artifactId\u003e\n        \u003cversion\u003ex.x.x.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\nand add Maven repository to pom.xml:\n\n\t\u003crepositories\u003e\n\t\t\u003crepository\u003e\n\t\t\t\u003cid\u003ecentral\u003c/id\u003e\n\t\t\t\u003curl\u003ehttps://repo1.maven.org/maven2\u003c/url\u003e\n\t\t\t\u003creleases\u003e\n\t\t\t\t\u003cenabled\u003etrue\u003c/enabled\u003e\n\t\t\t\u003c/releases\u003e\n\t\t\t\u003csnapshots\u003e\n\t\t\t\t\u003cenabled\u003etrue\u003c/enabled\u003e\n\t\t\t\u003c/snapshots\u003e\n\t\t\u003c/repository\u003e\n\t\t\u003crepository\u003e\n\t\t\t\u003cid\u003ecodelibs.org\u003c/id\u003e\n\t\t\t\u003cname\u003eCodeLibs Repository\u003c/name\u003e\n\t\t\t\u003curl\u003ehttps://maven.codelibs.org/\u003c/url\u003e\n\t\t\u003c/repository\u003e\n\t\u003c/repositories\u003e\n\n### Start Cluster Runner\n\n    import static org.codelibs.elasticsearch.runner.ElasticsearchClusterRunner.newConfigs;\n    ...\n    // create runner instance\n    ElasticsearchClusterRunner runner = new ElasticsearchClusterRunner();\n    // create ES nodes\n    runner.onBuild(new ElasticsearchClusterRunner.Builder() {\n        @Override\n        public void build(final int number, final Builder settingsBuilder) {\n            // put elasticsearch settings\n            // settingsBuilder.put(\"index.number_of_replicas\", 0);\n        }\n    }).build(newConfigs());\n\nbuild(Configs) method configures/starts Clsuter Runner.\n\n### Stop Cluster Runner\n\n    // close runner\n    runner.close();\n\n### Clean up \n\n    // delete all files(config and index)\n    runner.clean();\n\n## Run on JUnit\n\nPut elasticsearch-cluster-runner as test scope:\n\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.codelibs\u003c/groupId\u003e\n        \u003cartifactId\u003eelasticsearch-cluster-runner\u003c/artifactId\u003e\n        \u003cversion\u003ex.x.x.0\u003c/version\u003e\n        \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n\nand see [ElasticsearchClusterRunnerTest](https://github.com/codelibs/elasticsearch-cluster-runner/blob/master/src/test/java/org/codelibs/elasticsearch/runner/ElasticsearchClusterRunnerTest.java \"ElasticsearchClusterRunnerTest\").\n\n## Run as Standalone\n\n### Install Maven\n\nDownload and install Maven 3 from https://maven.apache.org/.\n\n### Clone This Project\n\n    git clone https://github.com/codelibs/elasticsearch-cluster-runner.git\n\n### Build This Project\n\n    mvn compile\n\n## Run/Stop Elasticsearch Cluster\n\n### Run Cluster\n\nRun:\n\n    mvn exec:java \n\nThe default cluster has 3 nodes and the root directory for Elasticsearch is es\\_home.\nNodes use 9201-9203 port for HTTP and 9301-9303 port for Transport.\nIf you want to change the number of node, Run:\n\n    mvn exec:java -Dexec.args=\"-basePath es_home -numOfNode 4\"\n\n### Stop Cluster\n\nType Ctrl-c or kill the process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Felasticsearch-cluster-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelibs%2Felasticsearch-cluster-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelibs%2Felasticsearch-cluster-runner/lists"}