日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

Storm 疑难杂症。

發(fā)布時(shí)間:2023/12/13 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Storm 疑难杂症。 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
疑難解答: 這個(gè)頁(yè)面列出了一些人們?cè)谑褂胹torm時(shí)遇到的問(wèn)題和他們的解決方案。 worker 進(jìn)程 啟動(dòng)時(shí)沒(méi)有堆棧信息。 可能的情形: Topology 只在一臺(tái)機(jī)器的不同worker中運(yùn)行,但是在多節(jié)點(diǎn)上運(yùn)行會(huì)遇到問(wèn)題或崩潰。 解決方法: 你可能配置錯(cuò)了子網(wǎng),在其中節(jié)點(diǎn)不能通過(guò)hostname(機(jī)器名)定位其他的節(jié)點(diǎn)。ZeroMQ ?有時(shí)不能解析主機(jī)的時(shí)候不能處理數(shù)據(jù)。有兩種解決辦法。 1.在/etc/hosts 中做hostname 和 ip 的映射 2.假設(shè)內(nèi)部DNS服務(wù)器,這樣節(jié)點(diǎn)都能通過(guò)hostname定位其他節(jié)點(diǎn)。 節(jié)點(diǎn)之間不能夠通信 可能的現(xiàn)象: 每一個(gè)spout tuple 都失敗 進(jìn)程不工作 解決方法: storm 不能使用ipv6 工作。你需要強(qiáng)制使用ipv4 添加?-Djava.net.preferIPv4Stack=true 到 supervisor 子選項(xiàng)上,然后 重啟supervisor。 你可能配置錯(cuò)了子網(wǎng) 具體請(qǐng)看上一條:worker 進(jìn)程 啟動(dòng)時(shí)沒(méi)有堆棧信息。 topology 不久之后就停止處理tuple 現(xiàn)象: 處理工作一段時(shí)間內(nèi)是正常的,然后突然停止了。spout tuple 開(kāi)始全部失敗。 解決辦法: 這是使用了ZeroMQ 2.1.10的問(wèn)題。回退到版本ZeroMQ 2.1.7。 不是所有的supervisor都出現(xiàn)在Storm UI 上 現(xiàn)象: 有些supervisor進(jìn)程在Storm UI 上看不到 刷先后很多supervisor 改變 解決辦法: 確定 supervisor的本地文件夾是獨(dú)立的 (例如,,不是一個(gè)通過(guò)NFS分享的本地文件夾) 試著刪除本地文件夾,然后重啟。Supervisor 創(chuàng)建一個(gè)獨(dú)有的id,然后把它存儲(chǔ)在本地。 當(dāng)這個(gè)id被復(fù)制到其他節(jié)點(diǎn)上,storm就會(huì)變得茫然了。

“Multiple defaults.yaml found” error

現(xiàn)象: 當(dāng)你用“storm jar”部署 topology是,你會(huì)得到這個(gè)錯(cuò)誤 解決辦法: 極有可能是你把 Strom的jar包也打包到你的topology jar包中了。 當(dāng)打包你的topology jar 時(shí),不要包含 storm 的jars ,storm 將會(huì)通過(guò)classpath 把他們放到里面。

“NoSuchMethodError” when running storm jar

現(xiàn)象: 當(dāng)運(yùn)行storm jar 時(shí) 你得到一個(gè)模糊的”NoSuchMethodError” 解決辦法: 你這在部署的topology的運(yùn)行環(huán)境與你打包topology時(shí)用的storm不是一個(gè)版本。確定你編譯topology用的storm的版本與你用的storm的客戶(hù)端是同一個(gè)版本。 附英文原文: https://github.com/nathanmarz/storm/wiki/Troubleshooting

Troubleshooting

  • Page History

Troubleshooting

This page lists issues people have run into when using Storm along with their solutions.

Worker processes are crashing on startup with no stack trace

Possible symptoms:

  • Topologies work with one node, but workers crash with multiple nodes

Solutions:

  • You may have a misconfigured subnet, where nodes can’t locate other nodes based on their hostname. ZeroMQ sometimes crashes the process when it can’t resolve a host. There are two solutions:
    • Make a mapping from hostname to IP address in /etc/hosts
    • Set up an internal DNS so that nodes can locate each other based on hostname.

Nodes are unable to communicate with each other

Possible symptoms:

  • Every spout tuple is failing
  • Processing is not working

Solutions:

  • Storm doesn’t work with ipv6. You can force ipv4 by adding?-Djava.net.preferIPv4Stack=true?to the supervisor child options and restarting the supervisor.
  • You may have a misconfigured subnet. See the solutions for?Worker processes are crashing on startup with no stack trace

Topology stops processing tuples after awhile

Symptoms:

  • Processing works fine for awhile, and then suddenly stops and spout tuples start failing en masse.

Solutions:

  • This is a known issue with ZeroMQ 2.1.10. Downgrade to ZeroMQ 2.1.7.

Not all supervisors appear in Storm UI

Symptoms:

  • Some supervisor processes are missing from the Storm UI
  • List of supervisors in Storm UI changes on refreshes

Solutions:

  • Make sure the supervisor local dirs are independent (e.g., not sharing a local dir over NFS)
  • Try deleting the local dirs for the supervisors and restarting the daemons. Supervisors create a unique id for themselves and store it locally. When that id is copied to other nodes, Storm gets confused.

“Multiple defaults.yaml found” error

Symptoms:

  • When deploying a topology with “storm jar”, you get this error

Solution:

  • You’re most likely including the Storm jars inside your topology jar. When packaging your topology jar, don’t include the Storm jars as Storm will put those on the classpath for you.

“NoSuchMethodError” when running storm jar

Symptoms:

  • When running storm jar, you get a cryptic “NoSuchMethodError”

Solution:

  • You’re deploying your topology with a different version of Storm than you built your topology against. Make sure the storm client you use comes from the same version as the version you compiled your topology against.

轉(zhuǎn)載于:https://www.cnblogs.com/qgxiaoguang/archive/2013/02/17/2914462.html

總結(jié)

以上是生活随笔為你收集整理的Storm 疑难杂症。的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。