Elasticsearch running in local failing

Steps:

  1. ./gradlew assemble
  2. ./gradlew run --debug-jvm

Task :distribution:run
Running elasticsearch in debug mode, node{:distribution:runTask-0} suspending until connected on debugPort 5005
Exec output and error:
| Output for ./bin/elasticsearch-keystore:ERROR: transport error 202: connect failed: Connection refused
| ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
| JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:735]