一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數據庫技術|

服務器之家 - 數據庫 - Redis - Redis 中spark參數executor-cores引起的異常解決辦法

Redis 中spark參數executor-cores引起的異常解決辦法

2019-11-05 12:12DoctorQ Redis

這篇文章主要介紹了Redis 中spark參數executor-cores引起的異常解決辦法的相關資料,需要的朋友可以參考下

Redis 中spark參數executor-cores引起的異常解決辦法

報錯信息

Unexpected end of stream

?
1
2
3
4
5
6
7
8
9
16/10/11 16:35:50 WARN TaskSetManager: Lost task 63.0 in stage 3.0 (TID 212, gzns-arch-spark04.gzns.iwm.name): redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
 at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:199)
 at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40)
 at redis.clients.jedis.Protocol.process(Protocol.java:151)
 at redis.clients.jedis.Protocol.read(Protocol.java:215)
 at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:340)
 at redis.clients.jedis.Connection.getBinaryMultiBulkReply(Connection.java:276)
 at redis.clients.jedis.Connection.getMultiBulkReply(Connection.java:269)
 at redis.clients.jedis.Jedis.hmget(Jedis.java:723)

DENIED Redis is running in protected mode because protected mode is enabled

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
DENIED Redis is running in protected mode because protected mode is enabled,
 no bind address was specified, no authentication password is requested to clients.
 In this mode connections are only accepted from the loopback interface.
If you want to connect from external computers to Redis you may adopt one of
the following solutions: 1) Just disable protected mode sending the command
 'CONFIG SET protected-mode no' from the loopback interface by connecting to
 Redis from the same host the server is running, however MAKE SURE Redis is not
publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change
 permanent.
 2) Alternatively you can just disable the protected mode by editing the
Redis configuration file, and setting the protected mode option to 'no',
and then restarting the server. 3) If you started the server manually just
for testing, restart it with the '--protected-mode no' option. 4) Setup a bind
address or an authentication password. NOTE: You only need to do one of the above
things in order for the server to start accepting connections from the outside.
 at redis.clients.jedis.Protocol.processError(Protocol.java:127)
 at redis.clients.jedis.Protocol.process(Protocol.java:161)
 at redis.clients.jedis.Protocol.read(Protocol.java:215)

解決過程

我嘗試重啟redis,更換redis新jar包,關閉redis保護模式都于事無補,后來找了下錯誤的原因,無意中看到了Unexpected end of stream是說有一個進程占用了redis的鏈接,頭腦一炸,才發現自己把executor-cores設置為了2,然后把該值設置為1后,正常了。

看來只有等接入redis集群后,我才能修改該值了。

感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

延伸 · 閱讀

精彩推薦
  • RedisRedis如何實現數據庫讀寫分離詳解

    Redis如何實現數據庫讀寫分離詳解

    Redis的主從架構,能幫助我們實現讀多,寫少的情況,下面這篇文章主要給大家介紹了關于Redis如何實現數據庫讀寫分離的相關資料,文中通過示例代碼介紹...

    羅兵漂流記6092019-11-11
  • RedisRedis全量復制與部分復制示例詳解

    Redis全量復制與部分復制示例詳解

    這篇文章主要給大家介紹了關于Redis全量復制與部分復制的相關資料,文中通過示例代碼介紹的非常詳細,對大家學習或者使用Redis爬蟲具有一定的參考學習...

    豆子先生5052019-11-27
  • Redis詳解Redis復制原理

    詳解Redis復制原理

    與大多數db一樣,Redis也提供了復制機制,以滿足故障恢復和負載均衡等需求。復制也是Redis高可用的基礎,哨兵和集群都是建立在復制基礎上實現高可用的...

    李留廣10222021-08-09
  • Redisredis實現排行榜功能

    redis實現排行榜功能

    排行榜在很多地方都能使用到,redis的zset可以很方便地用來實現排行榜功能,本文就來簡單的介紹一下如何使用,具有一定的參考價值,感興趣的小伙伴們...

    乘月歸5022021-08-05
  • Redisredis中如何使用lua腳本讓你的靈活性提高5個逼格詳解

    redis中如何使用lua腳本讓你的靈活性提高5個逼格詳解

    這篇文章主要給大家介紹了關于redis中如何使用lua腳本讓你的靈活性提高5個逼格的相關資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具...

    一線碼農5812019-11-18
  • Redisredis 交集、并集、差集的具體使用

    redis 交集、并集、差集的具體使用

    這篇文章主要介紹了redis 交集、并集、差集的具體使用,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友...

    xiaojin21cen10152021-07-27
  • RedisRedis的配置、啟動、操作和關閉方法

    Redis的配置、啟動、操作和關閉方法

    今天小編就為大家分享一篇Redis的配置、啟動、操作和關閉方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧 ...

    大道化簡5312019-11-14
  • RedisRedis 事務知識點相關總結

    Redis 事務知識點相關總結

    這篇文章主要介紹了Redis 事務相關總結,幫助大家更好的理解和學習使用Redis,感興趣的朋友可以了解下...

    AsiaYe8232021-07-28
主站蜘蛛池模板: 国产亚洲欧美日韩综合综合二区 | bedfriend泰剧全集免费观看 | 99视频在线国产 | 处女摘花视频 | 久久久免费观成人影院 | 精品9e精品视频在线观看 | 精品一区二区三区在线视频观看 | 香蕉91视频 | java hd国产高清| 四虎在线精品观看免费 | 成人精品一区二区三区中文字幕 | 国产成人精品系列在线观看 | 美女机机对机机的视频(免费) | 四虎欧美 | 毛片网站大全 | 欧美一区二区三区视视频 | 亚洲精品tv久久久久久久久久 | 久久www免费人成高清 | 午夜视频一区二区 | 国产成人yy精品1024在线 | 无耻之徒第十一季在线观看 | 五月天婷婷网亚洲综合在线 | 亚洲狠狠婷婷综合久久蜜桃 | 好性20岁| 小鸟酱视频在线观看 | 韩国女主播一区二区视频 | 四虎影视在线看 | 99re8在线精品视频免费播放 | 亚洲大片免费看 | 好女孩韩剧免费观看 | 小泽玛丽av无码观看 | 无人在线视频高清免费观看动漫 | 我在厨房摸岳的乳HD在线观看 | 欧美贵妇vs高跟办公室 | 赤坂丽女医bd无删减在线观看 | 俺去俺也在线www色官网 | 加勒比一本大道香蕉在线视频 | 视频网站入口在线看 | 亚洲精品91大神在线观看 | 色综合久久九月婷婷色综合 | 日本精品久久久久中文字幕 1 |