国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > Redis > 正文

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

2020-10-28 21:37:21
字體:
供稿:網(wǎng)友

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

報(bào)錯(cuò)信息

Unexpected end of stream

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

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包,關(guān)閉redis保護(hù)模式都于事無補(bǔ),后來找了下錯(cuò)誤的原因,無意中看到了Unexpected end of stream是說有一個(gè)進(jìn)程占用了redis的鏈接,頭腦一炸,才發(fā)現(xiàn)自己把executor-cores設(shè)置為了2,然后把該值設(shè)置為1后,正常了。

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

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

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 崇阳县| 新化县| 加查县| 彰化市| 天祝| 克拉玛依市| 个旧市| 湘潭市| 宜君县| 曲麻莱县| 吉林省| 万山特区| 望城县| 兴安盟| 田阳县| 融水| 都昌县| 休宁县| 通道| 子长县| 湄潭县| 临沭县| 酒泉市| 平果县| 油尖旺区| 平乐县| 荔浦县| 邵阳市| 石屏县| 江川县| 合水县| 新巴尔虎左旗| 应用必备| 班戈县| 湟源县| 邛崃市| 萨嘎县| 馆陶县| 大洼县| 漳州市| 浦北县|