今天在本地搭建一个测试用的最新版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. Numpy系列(三)- 基本运算操作

    Numpy 中数组上的算术运算符使用元素级别.最后的结果使用新的一个数组来返回. import numpy as np a = np.array( [20,30,40,50] ) b = np.ara ...

  2. 第九节:从源码的角度分析MVC中的一些特性及其用法

    一. 前世今生 乍眼一看,该标题写的有点煽情,最近也是在不断反思,怎么能把博客写好,让人能读下去,通俗易懂,深入浅出. 接下来几个章节都是围绕框架本身提供特性展开,有MVC程序集提供的,也有其它程序集 ...

  3. Contest2158 - 2019-3-14 高一noip基础知识点 测试3 题解版

    传送门 预计得分:0 实际得分:90 还行 T1 数学卡精 二分double卡精 反正就是卡精 怎么办?卡回去!! 将double*=1e4,变成一个long long 注意四舍五入的奇技淫巧 代码 ...

  4. Codeblock代码提示自动补全(包括结构体成员)

    转:https://blog.csdn.net/haibin8473/article/details/79113650

  5. Windows 下安装Git工具及基础使用

    Git简介 git是很好一个工具使用,可以执行liunx命令,有git环境后windows系统就可以进行shell命令操作,就可以添加其他liunx辅助软件进行执行,git也代码库管理工具,无论是上传 ...

  6. 【原创】大叔经验分享(27)linux服务器升级glibc故障恢复

    redhat6系统默认安装的glibc-2.12,有的软件依赖的是glibc-2.14,这时需要升级glibc,下载安装 http://ftp.gnu.org/gnu/glibc/glibc-2.14 ...

  7. python使用stomp连接activemq

    一.安装ActiveMQ服务 1. 当使用windows时,安装参考:https://blog.csdn.net/WuLex/article/details/78323811 启动:运行activem ...

  8. 20 常用模块 hashlib hmac:加密 xml xlrd xlwt:excel读|写 configparser subprocess

    hashlib模块:加密 加密: 1.有解密的加密方式 2.无解密的加密方式:碰撞检查 hashlib -- 1)不同数据加密后的结果一定不一致 -- 2)相同数据的加密结果一定是一致的 import ...

  9. sklearn.linear_model.LinearRegresion学习

    sklearn线性模型之线性回归 查看官网 https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearR ...

  10. ECMAScript 6中数组新方法

    数组的方法 数组的的大部分方法都可以实现数组的遍历. foreach方法 实现数组的遍历 const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; arr.forEach(fu ...