今天在本地搭建一个测试用的最新版ElasticSearch6.4.3 的环境时,遇到一个报: [Cannot assign requested address: bind]的错误。

错误日志内容如下:

H:\ElasticSearch\6.4.3\elasticsearch-6.4.3-node1\bin>H:\ElasticSearch\6.4.3\elasticsearch-6.4.3-node1\bin\el
asticsearch.bat
[2018-11-12T15:15:40,305][INFO ][o.e.n.Node ] [node-1] initializing ...
[2018-11-12T15:15:40,382][INFO ][o.e.e.NodeEnvironment ] [node-1] using [1] data paths, mounts [[(H:)]],
net usable_space [122.3gb], net total_space [299.9gb], types [NTFS]
[2018-11-12T15:15:40,383][INFO ][o.e.e.NodeEnvironment ] [node-1] heap size [990.7mb], compressed ordinar
y object pointers [true]
[2018-11-12T15:15:40,386][INFO ][o.e.n.Node ] [node-1] node name [node-1], node ID [FLk6CxQlTP
6kJDwVKWX30Q]
[2018-11-12T15:15:40,388][INFO ][o.e.n.Node ] [node-1] version[6.4.3], pid[28436], build[defau
lt/zip/fe40335/2018-10-30T23:17:19.084789Z], OS[Windows 7/6.1/amd64], JVM[Oracle Corporation/Java HotSpot(TM
) 64-Bit Server VM/1.8.0_131/25.131-b11]
[2018-11-12T15:15:40,390][INFO ][o.e.n.Node ] [node-1] JVM arguments [-Xms1g, -Xmx1g, -XX:+Use
ConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTo
uch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThr
ow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread
=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\ADMINI~1\AppData
\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err
_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplica
tionStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSiz
e=64m, -Delasticsearch, -Des.path.home=H:\ElasticSearch\6.4.3\elasticsearch-6.4.3-node1, -Des.path.conf=H:\E
lasticSearch\6.4.3\elasticsearch-6.4.3-node1\config, -Des.distribution.flavor=default, -Des.distribution.typ
e=zip]
[2018-11-12T15:15:42,051][INFO ][o.e.p.PluginsService ] [node-1] loaded module [aggs-matrix-stats]
[2018-11-12T15:15:42,052][INFO ][o.e.p.PluginsService ] [node-1] loaded module [analysis-common]
[2018-11-12T15:15:42,053][INFO ][o.e.p.PluginsService ] [node-1] loaded module [ingest-common]
[2018-11-12T15:15:42,055][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-expression]
[2018-11-12T15:15:42,056][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-mustache]
[2018-11-12T15:15:42,058][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-painless]
[2018-11-12T15:15:42,059][INFO ][o.e.p.PluginsService ] [node-1] loaded module [mapper-extras]
[2018-11-12T15:15:42,061][INFO ][o.e.p.PluginsService ] [node-1] loaded module [parent-join]
[2018-11-12T15:15:42,062][INFO ][o.e.p.PluginsService ] [node-1] loaded module [percolator]
[2018-11-12T15:15:42,066][INFO ][o.e.p.PluginsService ] [node-1] loaded module [rank-eval]
[2018-11-12T15:15:42,067][INFO ][o.e.p.PluginsService ] [node-1] loaded module [reindex]
[2018-11-12T15:15:42,069][INFO ][o.e.p.PluginsService ] [node-1] loaded module [repository-url]
[2018-11-12T15:15:42,070][INFO ][o.e.p.PluginsService ] [node-1] loaded module [transport-netty4]
[2018-11-12T15:15:42,072][INFO ][o.e.p.PluginsService ] [node-1] loaded module [tribe]
[2018-11-12T15:15:42,073][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-core]
[2018-11-12T15:15:42,075][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-deprecation]
[2018-11-12T15:15:42,077][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-graph]
[2018-11-12T15:15:42,078][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-logstash]
[2018-11-12T15:15:42,080][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-ml]
[2018-11-12T15:15:42,082][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-monitoring]
[2018-11-12T15:15:42,083][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-rollup]
[2018-11-12T15:15:42,085][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-security]
[2018-11-12T15:15:42,086][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-sql]
[2018-11-12T15:15:42,087][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-upgrade]
[2018-11-12T15:15:42,089][INFO ][o.e.p.PluginsService ] [node-1] loaded module [x-pack-watcher]
[2018-11-12T15:15:42,091][INFO ][o.e.p.PluginsService ] [node-1] no plugins loaded
[2018-11-12T15:15:45,477][INFO ][o.e.x.s.a.s.FileRolesStore] [node-1] parsed [0] roles from file [H:\Elastic
Search\6.4.3\elasticsearch-6.4.3-node1\config\roles.yml]
[2018-11-12T15:15:45,975][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/26596] [Main.cc@109] contro
ller (64 bit): Version 6.4.3 (Build 7a0781676dd492) Copyright (c) 2018 Elasticsearch BV
[2018-11-12T15:15:46,329][DEBUG][o.e.a.ActionModule ] Using REST wrapper from plugin org.elasticsearch
.xpack.security.Security
[2018-11-12T15:15:46,529][INFO ][o.e.d.DiscoveryModule ] [node-1] using discovery type [zen]
[2018-11-12T15:15:47,232][INFO ][o.e.n.Node ] [node-1] initialized
[2018-11-12T15:15:47,233][INFO ][o.e.n.Node ] [node-1] starting ...
[2018-11-12T15:15:47,739][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in
thread [main]
org.elasticsearch.bootstrap.StartupException: BindTransportException[Failed to bind to [9310]]; nested: Bind
Exception[Cannot assign requested address: bind];
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.4.3.jar:
6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.4.3.j
ar:6.4.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elastics
earch-6.4.3.jar:6.4.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.4.
3.jar:6.4.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.4.3.jar:6
.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.4.3.jar:6
.4.3]
Caused by: org.elasticsearch.transport.BindTransportException: Failed to bind to [9310]
at org.elasticsearch.transport.TcpTransport.bindToPort(TcpTransport.java:821) ~[elasticsearch-6.4.3.
jar:6.4.3]
at org.elasticsearch.transport.TcpTransport.bindServer(TcpTransport.java:786) ~[elasticsearch-6.4.3.
jar:6.4.3]
at org.elasticsearch.transport.netty4.Netty4Transport.doStart(Netty4Transport.java:134) ~[?:?]
at org.elasticsearch.xpack.core.security.transport.netty4.SecurityNetty4Transport.doStart(SecurityNe
tty4Transport.java:87) ~[?:?]
at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4ServerTransport.doStart(SecurityN
etty4ServerTransport.java:41) ~[?:?]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.ja
va:66) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.transport.TransportService.doStart(TransportService.java:217) ~[elasticsearch-6
.4.3.jar:6.4.3]
at org.elasticsearch.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.ja
va:66) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.node.Node.start(Node.java:667) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Bootstrap.start(Bootstrap.java:265) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:335) ~[elasticsearch-6.4.3.jar:6.4.3]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.4.3.jar:
6.4.3]
... 6 more
Caused by: java.net.BindException: Cannot assign requested address: bind
at sun.nio.ch.Net.bind0(Native Method) ~[?:?]
at sun.nio.ch.Net.bind(Net.java:433) ~[?:?]
at sun.nio.ch.Net.bind(Net.java:425) ~[?:?]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) ~[?:?]
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128) ~[?:?] at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[?:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1283) ~[?:?] at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
~[?:?]
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[?:?
]
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:989) ~[?:?]
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[?:?]
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:365) ~[?:?]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[?:?] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403
) ~[?:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) ~[?:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[?:
?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
[2018-11-12T15:15:48,268][INFO ][o.e.n.Node ] [node-1] stopping ...
[2018-11-12T15:15:48,270][INFO ][o.e.n.Node ] [node-1] stopped
[2018-11-12T15:15:48,271][INFO ][o.e.n.Node ] [node-1] closing ...
[2018-11-12T15:15:48,282][INFO ][o.e.n.Node ] [node-1] closed H:\ElasticSearch\6.4.3\elasticsearch-6.4.3-node1\bin>

第一反应是端口冲突了,于是根据elasticsearch.yml配置文件中的http端口以及transport.tcp 端口通过命令查了下,没发现有其它进程占用:



解决:再后来查了下配置中的集群配置discovery.zen.ping.unicast.hosts的ip跟当前本机的network.host不一致,果断把自己给坑了(-_-)(当然这是为了模拟集群而在一台机器上部署多个节点,生产环境不推荐这么搞,为了数据安全以及性能提升,还是一机一节点的好

ElasticSearch 6.4.3 启动报错: [Cannot assign requested address: bind]的更多相关文章

  1. Eclipse中Tomcat Server启动后马上又自动停止报错Address已经使用8005端口 Can't assign requested address (Bind failed)

    Eclipse中Tomcat Server启动后马上又自动停止报错 Can't assign requested address (Bind failed) ,打开Tomcat Server的配置页面 ...

  2. Tomcat启动报错ERROR:transport error 202:bind failed:Address already

    昨天在服务器上拷贝了一个tomcat项目,修改了server.xml之后启动居然报错ERROR:transport error 202:bind failed:Address already,应该是远 ...

  3. IDEA启动报错-java.net.BindException: Address already in use: bind

    启动IDEA报错日志如下: Internal error. Please refer to http://jb.gg/ide/critical-startup-errors java.net.Bind ...

  4. Elasticsearch 6.8.4 启动报错解决方法

    运行环境:centos 7,jdk 1.8 问题一: ERROR: bootstrap checks failed max ] ] 原因:无法创建本地文件问题,用户最大可创建文件数太小 解决方案:切换 ...

  5. apache启动报错:the requested operation has failed解决办法

    原因一:80端口占用 例如IIS,另外就是迅雷.我的apache服务器就是被迅雷害得无法启用! 原因二:软件冲突 装了某些软件会使apache无法启动如Dr.com 你打开网络连接->TcpIp ...

  6. ApacheHttpServer出现启动报错:the requested operation has failed解决办法

    转自:https://www.jb51.net/article/21004.htm 原因一:80端口占用 例如IIS,另外就是迅雷.我的apache服务器就是被迅雷害得无法启用! 原因二:软件冲突 装 ...

  7. Phoenix 无法启动报错: java.net.BindException: Address already in use

    一.问题描述 i. 登录Ambari发现有一个节点的 Phoenix 无法启动 ii. 在Ambari上点击“Start”,监控 Phoenix 日志文件 iii. Phoenix 日志如下: [ro ...

  8. Dubbo广播模式下报错:Can't assign requested address解决办法

    原因: 尝试使用Dubbo的multicast模式,发现一运行就报Can't assign requested address的错误,造成这种原因的主要是系统中开启了IPV6协议(比如window7) ...

  9. 【spring boot】【elasticsearch】spring boot整合elasticsearch,启动报错Caused by: java.lang.IllegalStateException: availableProcessors is already set to [8], rejecting [8

    spring boot整合elasticsearch, 启动报错: Caused by: java.lang.IllegalStateException: availableProcessors ], ...

随机推荐

  1. vue常用手册

    1.搭建vue的开发环境: 1.必须要安装node.js 2.安装vue的脚手架工具 官方命令行工具 npm install --global vue-cli 3.新建项目 vue init webp ...

  2. GWAS条件分析(conditional analysis)

    一.为什么要做GWAS的条件分析(conditional analysis) 我们做GWAS的时候,经常扫出一堆显著的信号,假设rs121是我们扫出来与某表型最显著相关的位点(P=1.351e-36) ...

  3. Python操作文件-20181121

    Python操作文件 Python操作文件和其他语言一样,操作的过程无非是先定位找到文件.打开文件,然后对文件进行操作,操作完成后关闭文件即可. 文件操作方式:对文件进行操作,主要就是读.写的方式,p ...

  4. mongodb3.6集群搭建:分片+副本集

    mongodb是最常用的noSql数据库,在数据库排名中已经上升到了前五.这篇文章介绍如何搭建高可用的mongodb(分片+副本)集群. 在搭建集群之前,需要首先了解几个概念:路由,分片.副本集.配置 ...

  5. jQuery使用(十三):工具方法

    proxy() onConflict() each() map() parseJson() makeArray() proxy() $.proxy()的实现机制与原生javaScript中的bind( ...

  6. Windows Server 在IIS上创建安全网站

    第一步.打开服务器管理器,创建用户,并设置密码,自己记录下来,注意勾选密码永不过期. 第二步.设置用户隶属组:IIS_IUSRS. 第三步.设置建立的网站文件夹权限,添加刚才建立的用户,并添加修改.读 ...

  7. django - 总结 - 中间件

    中间件顾名思义,是介于request与response处理之间的一道处理过程,相对比较轻量级,并且在全局上改变django的输入与输出.因为改变的是全局,所以需要谨慎实用,用不好会影响到性能. MID ...

  8. JGUI源码:解决手机端点击出现半透明阴影(4)

    下面开始进入正题,问题发现与解决 1.According解决手机浏览器点击出现半透明阴影 手机下点击有白色蒙版,原始效果如下,看起来很不协调 2.解决办法:增加 -webkit-tap-highlig ...

  9. [物理学与PDEs]第4章第3节 一维反应流体力学方程组 3.1 一维反应流体力学方程组

    1. 一维粘性热传导反应流体力学方程组 $$\beex \bea \cfrac{\p\rho}{\p t}&+\cfrac{\p}{\p x}(\rho u)=0,\\ \cfrac{\p}{ ...

  10. LOJ #556. 「Antileaf's Round」咱们去烧菜吧

    好久没更博了 咕咕咕 现在多项式板子的常数巨大...周末好好卡波常吧.... LOJ #556 题意 给定$ m$种物品的出现次数$ B_i$以及大小$ A_i$ 求装满大小为$[1..n]$的背包的 ...