blob: 6201508cef243ff85f21d70f19312ba82bc79064 [file] [log] [blame]
"use strict";(self.webpackChunkrocketmq_docs=self.webpackChunkrocketmq_docs||[]).push([[518],{15680:(e,a,r)=>{r.d(a,{xA:()=>i,yg:()=>u});var p=r(96540);function t(e,a,r){return a in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function n(e,a){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);a&&(p=p.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,p)}return r}function l(e){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?n(Object(r),!0).forEach((function(a){t(e,a,r[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))}))}return e}function g(e,a){if(null==e)return{};var r,p,t=function(e,a){if(null==e)return{};var r,p,t={},n=Object.keys(e);for(p=0;p<n.length;p++)r=n[p],a.indexOf(r)>=0||(t[r]=e[r]);return t}(e,a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(p=0;p<n.length;p++)r=n[p],a.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var m=p.createContext({}),o=function(e){var a=p.useContext(m),r=a;return e&&(r="function"==typeof e?e(a):l(l({},a),e)),r},i=function(e){var a=o(e.components);return p.createElement(m.Provider,{value:a},e.children)},y="mdxType",N={inlineCode:"code",wrapper:function(e){var a=e.children;return p.createElement(p.Fragment,{},a)}},s=p.forwardRef((function(e,a){var r=e.components,t=e.mdxType,n=e.originalType,m=e.parentName,i=g(e,["components","mdxType","originalType","parentName"]),y=o(r),s=t,u=y["".concat(m,".").concat(s)]||y[s]||N[s]||n;return r?p.createElement(u,l(l({ref:a},i),{},{components:r})):p.createElement(u,l({ref:a},i))}));function u(e,a){var r=arguments,t=a&&a.mdxType;if("string"==typeof e||t){var n=r.length,l=new Array(n);l[0]=s;var g={};for(var m in a)hasOwnProperty.call(a,m)&&(g[m]=a[m]);g.originalType=e,g[y]="string"==typeof e?e:t,l[1]=g;for(var o=2;o<n;o++)l[o]=r[o];return p.createElement.apply(null,l)}return p.createElement.apply(null,r)}s.displayName="MDXCreateElement"},66376:(e,a,r)=>{r.r(a),r.d(a,{assets:()=>m,contentTitle:()=>l,default:()=>N,frontMatter:()=>n,metadata:()=>g,toc:()=>o});var p=r(58168),t=(r(96540),r(15680));const n={},l="\u5e38\u89c1\u95ee\u9898\u89e3\u7b54",g={unversionedId:"bestPractice/08FAQ",id:"bestPractice/08FAQ",title:"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54",description:"\u4ee5\u4e0b\u662f\u5173\u4e8eRocketMQ\u9879\u76ee\u7684\u5e38\u89c1\u95ee\u9898",source:"@site/docs/05-bestPractice/08FAQ.md",sourceDirName:"05-bestPractice",slug:"/bestPractice/08FAQ",permalink:"/zh/docs/4.x/bestPractice/08FAQ",draft:!1,editUrl:"https://github.com/apache/rocketmq-site/tree/new-official-website/docs/05-bestPractice/08FAQ.md",tags:[],version:"current",frontMatter:{},sidebar:"myAutogeneratedSidebar",previous:{title:"\u8ba2\u9605\u5173\u7cfb\u4e00\u81f4",permalink:"/zh/docs/4.x/bestPractice/07subscribe"},next:{title:"\u5ba2\u6237\u7aef\u914d\u7f6e",permalink:"/zh/docs/4.x/parameterConfiguration/01local"}},m={},o=[{value:"1 \u57fa\u672c",id:"1-\u57fa\u672c",level:2},{value:"2 \u4f7f\u7528",id:"2-\u4f7f\u7528",level:2},{value:"3 \u914d\u7f6e\u76f8\u5173",id:"3-\u914d\u7f6e\u76f8\u5173",level:2},{value:"4 \u9519\u8bef",id:"4-\u9519\u8bef",level:2},{value:"5 \u5176\u4ed6",id:"5-\u5176\u4ed6",level:2}],i={toc:o},y="wrapper";function N(e){let{components:a,...r}=e;return(0,t.yg)(y,(0,p.A)({},i,r,{components:a,mdxType:"MDXLayout"}),(0,t.yg)("h1",{id:"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54"},"\u5e38\u89c1\u95ee\u9898\u89e3\u7b54"),(0,t.yg)("p",null,"\u4ee5\u4e0b\u662f\u5173\u4e8eRocketMQ\u9879\u76ee\u7684\u5e38\u89c1\u95ee\u9898"),(0,t.yg)("h2",{id:"1-\u57fa\u672c"},"1 \u57fa\u672c"),(0,t.yg)("ol",null,(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u4e3a\u4ec0\u4e48\u6211\u4eec\u8981\u4f7f\u7528 RocketMQ \u800c\u4e0d\u662f\u9009\u62e9\u5176\u4ed6\u7684\u4ea7\u54c1\uff1f")),(0,t.yg)("p",{parentName:"li"},"\u8bf7\u53c2\u8003",(0,t.yg)("a",{parentName:"p",href:"http://rocketmq.apache.org/docs/motivation/"},"\u4e3a\u4ec0\u4e48\u8981\u9009\u62e9RocketMQ"))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u6211\u662f\u5426\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u7684\u8f6f\u4ef6\u624d\u80fd\u4f7f\u7528 RocketMQ \uff0c\u4f8b\u5982 ZooKeeper \uff1f")),(0,t.yg)("p",{parentName:"li"},"\u4e0d\u9700\u8981\uff0cRocketMQ \u80fd\u591f\u72ec\u7acb\u7684\u8fd0\u884c\u3002"))),(0,t.yg)("h2",{id:"2-\u4f7f\u7528"},"2 \u4f7f\u7528"),(0,t.yg)("ol",null,(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u65b0\u521b\u5efa\u7684 Consumer ID \u4ece\u54ea\u91cc\u5f00\u59cb\u6d88\u8d39\u6d88\u606f\uff1f")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u5982\u679c\u53d1\u9001\u7684\u6d88\u606f\u5728\u4e09\u5929\u4e4b\u5185\uff0c\u90a3\u4e48\u6d88\u8d39\u8005\u4f1a\u4ece\u670d\u52a1\u5668\u4e2d\u4fdd\u5b58\u7684\u7b2c\u4e00\u6761\u6d88\u606f\u5f00\u59cb\u6d88\u8d39\u3002"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u5982\u679c\u53d1\u9001\u7684\u6d88\u606f\u5df2\u7ecf\u8d85\u8fc7\u4e09\u5929\uff0c\u5219\u6d88\u8d39\u8005\u4f1a\u4ece\u670d\u52a1\u5668\u4e2d\u7684\u6700\u65b0\u6d88\u606f\u5f00\u59cb\u6d88\u8d39\uff0c\u4e5f\u5c31\u662f\u4ece\u961f\u5217\u7684\u5c3e\u90e8\u5f00\u59cb\u6d88\u8d39\u3002"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u5982\u679c\u6d88\u8d39\u8005\u91cd\u65b0\u542f\u52a8\uff0c\u90a3\u4e48\u5b83\u4f1a\u4ece\u6700\u540e\u4e00\u4e2a\u6d88\u8d39\u4f4d\u7f6e\u5f00\u59cb\u6d88\u8d39\u6d88\u606f\u3002")),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f53\u6d88\u8d39\u5931\u8d25\u7684\u65f6\u5019\u5982\u4f55\u91cd\u65b0\u6d88\u8d39\u6d88\u606f\uff1f")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u5728\u96c6\u7fa4\u6a21\u5f0f\u4e0b\uff0c\u6d88\u8d39\u7684\u4e1a\u52a1\u903b\u8f91\u4ee3\u7801\u4f1a\u8fd4\u56de Action.ReconsumerLater\uff0cNULL\uff0c\u6216\u8005\u629b\u51fa\u5f02\u5e38\uff0c\u5982\u679c\u4e00\u6761\u6d88\u606f\u6d88\u8d39\u5931\u8d25\uff0c\u6700\u591a\u4f1a\u91cd\u8bd5 16 \u6b21\uff0c\u4e4b\u540e\u8be5\u6d88\u606f\u4f1a\u88ab\u4e22\u5f03\u3002"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u5728\u5e7f\u64ad\u6d88\u8d39\u6a21\u5f0f\u4e0b\uff0c\u5e7f\u64ad\u6d88\u8d39\u4ecd\u7136\u4fdd\u8bc1\u6d88\u606f\u81f3\u5c11\u88ab\u6d88\u8d39\u4e00\u6b21\uff0c\u4f46\u4e0d\u63d0\u4f9b\u91cd\u53d1\u7684\u9009\u9879\u3002")),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f53\u6d88\u8d39\u5931\u8d25\u7684\u65f6\u5019\u5982\u4f55\u627e\u5230\u5931\u8d25\u7684\u6d88\u606f\uff1f")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u4f7f\u7528\u6309\u65f6\u95f4\u7684\u4e3b\u9898\u67e5\u8be2\uff0c\u53ef\u4ee5\u67e5\u8be2\u5230\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u6d88\u606f\u3002"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u4f7f\u7528\u4e3b\u9898\u548c\u6d88\u606f ID \u6765\u51c6\u786e\u67e5\u8be2\u6d88\u606f\u3002"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u4f7f\u7528\u4e3b\u9898\u548c\u6d88\u606f\u7684 Key \u6765\u51c6\u786e\u67e5\u8be2\u6240\u6709\u6d88\u606f Key \u76f8\u540c\u7684\u6d88\u606f\u3002")),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u6d88\u606f\u53ea\u4f1a\u88ab\u4f20\u9012\u4e00\u6b21\u5417\uff1f")),(0,t.yg)("p",{parentName:"li"},"RocketMQ \u786e\u4fdd\u6240\u6709\u6d88\u606f\u81f3\u5c11\u4f20\u9012\u4e00\u6b21\u3002 \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6d88\u606f\u4e0d\u4f1a\u91cd\u590d\u3002")),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5982\u4f55\u589e\u52a0\u4e00\u4e2a\u65b0\u7684 Broker \uff1f")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u542f\u52a8\u4e00\u4e2a\u65b0\u7684 Broker \u5e76\u5c06\u5176\u6ce8\u518c\u5230NameServer \u4e2d\u7684 Broker \u5217\u8868\u91cc\u3002"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u9ed8\u8ba4\u53ea\u81ea\u52a8\u521b\u5efa\u5185\u90e8\u7cfb\u7edf Topic \u548c Consumer Group\u3002 \u5982\u679c\u60a8\u5e0c\u671b\u5728\u65b0\u8282\u70b9\u4e0a\u62e5\u6709\u60a8\u7684\u4e1a\u52a1\u4e3b\u9898\u548c\u6d88\u8d39\u8005\u7ec4\uff0c\u8bf7\u4ece\u73b0\u6709\u7684 Broker \u4e2d\u590d\u5236\u5b83\u4eec\u3002 \u6211\u4eec\u63d0\u4f9b\u4e86\u7ba1\u7406\u5de5\u5177\u548c\u547d\u4ee4\u884c\u6765\u5904\u7406\u6b64\u95ee\u9898\u3002"))),(0,t.yg)("h2",{id:"3-\u914d\u7f6e\u76f8\u5173"},"3 \u914d\u7f6e\u76f8\u5173"),(0,t.yg)("p",null,"\u4ee5\u4e0b\u56de\u7b54\u5747\u4e3a\u9ed8\u8ba4\u503c\uff0c\u53ef\u901a\u8fc7\u914d\u7f6e\u4fee\u6539\u3002"),(0,t.yg)("ol",null,(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u6d88\u606f\u5728\u670d\u52a1\u5668\u4e0a\u53ef\u4ee5\u4fdd\u5b58\u591a\u957f\u65f6\u95f4\uff1f")),(0,t.yg)("p",{parentName:"li"},"\u5b58\u50a8\u7684\u6d88\u606f\u5c06\u6700\u591a\u4fdd\u5b58 3 \u5929\uff0c\u8d85\u8fc7 3 \u5929\u672a\u4f7f\u7528\u7684\u6d88\u606f\u5c06\u88ab\u5220\u9664\u3002")),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u6d88\u606f\u4f53\u7684\u5927\u5c0f\u9650\u5236\u662f\u591a\u5c11\uff1f")),(0,t.yg)("p",{parentName:"li"},"\u901a\u5e38\u662f256KB")),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u600e\u4e48\u8bbe\u7f6e\u6d88\u8d39\u8005\u7ebf\u7a0b\u6570\uff1f")),(0,t.yg)("p",{parentName:"li"},"\u5f53\u4f60\u542f\u52a8\u6d88\u8d39\u8005\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u8bbe\u7f6e ConsumeThreadNums \u5c5e\u6027\u7684\u503c\uff0c\u4e3e\u4f8b\u5982\u4e0b\uff1a"),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"consumer.setConsumeThreadMin(20);\nconsumer.setConsumeThreadMax(20);\n")))),(0,t.yg)("h2",{id:"4-\u9519\u8bef"},"4 \u9519\u8bef"),(0,t.yg)("ol",null,(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"APPLY_TOPIC_URL")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"topic[xxx] not exist, apply first please!\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09Producer \u53d1\u9001\u6d88\u606f\u6216 Consumer \u6d88\u8d39\u6d88\u606f\u65f6\uff0c\u6839\u636e Topic \u83b7\u53d6\u8def\u7531\u4fe1\u606f\u5931\u8d25\uff0c\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u5f02\u5e38\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u786e\u4fdd NameServer \u786e\u5b9e\u5305\u542b Topic \u7684\u8def\u7531\u4fe1\u606f\u3002 \u60a8\u53ef\u4ee5\u4f7f\u7528\u7ba1\u7406\u5de5\u5177\u6216 Web \u63a7\u5236\u53f0\u901a\u8fc7 TopicRoute \u4ece NameServer \u67e5\u8be2\u8def\u7531\u4fe1\u606f\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u786e\u4fdd Broker \u548c Consumer \u8fde\u63a5\u7684\u662f\u540c\u4e00 NameServer \u96c6\u7fa4\uff1b"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u786e\u4fdd\u4e3b\u9898\u7684\u961f\u5217\u6743\u9650\uff0c\u5bf9 Producer \u662f6(rw-)\uff0c\u6216\u5bf9 Consumer \u81f3\u5c11\u662f2(-w-)\uff1b"),(0,t.yg)("p",{parentName:"li"},"\u5982\u679c\u627e\u4e0d\u5230\u6b64\u4e3b\u9898\uff0c\u8bf7\u901a\u8fc7\u7ba1\u7406\u5de5\u5177\u547d\u4ee4 updateTopic \u6216 Web \u63a7\u5236\u53f0\u5728 Broker \u4e0a\u521b\u5efa\u5b83\u3002")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"NAME_SERVER_ADDR_NOT_EXIST_URL")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"No name server address, please set it\n")),(0,t.yg)("p",{parentName:"li"}," \u6216"),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"connect to xxx failed, maybe the domain name xxx not bind in /etc/hosts\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09Producer \u6216 Consumer\uff0c\u83b7\u53d6 NameServer \u5730\u5740\u4fe1\u606f\u5f02\u5e38\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u8bf7\u53c2\u8003\uff1a",(0,t.yg)("a",{parentName:"p",href:"https://github.com/apache/rocketmq/blob/develop/docs/cn/best_practice.md"},"5.1 \u5ba2\u6237\u7aef\u5bfb\u5740\u65b9\u5f0f"))))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"GROUP_NAME_DUPLICATE_URL")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"The producer group[xxx] has been created before, specify another name please.\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u76f8\u540c\u540d\u79f0\u7684 Consumer Group \u5df2\u7ecf\u542f\u52a8\uff0c\u6ce8\u518c\u5931\u8d25\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u65b0 Consumer Group \u91cd\u547d\u540d\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u76f8\u540c\u540d\u79f0\u7684 Consumer Group \u6b63\u5e38\u5173\u95ed\u540e\uff0c\u518d\u542f\u52a8\uff1b")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"CLIENT_PARAMETER_CHECK_URL")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"consumerGroup can not equal ...\n")),(0,t.yg)("p",{parentName:"li"},"\u6216"),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"allocateMessageQueueStrategy is null ...\n")),(0,t.yg)("p",{parentName:"li"},"\u6216"),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"Long polling mode, the consumer consumerTimeoutMillisWhenSuspend must greater than brokerSuspendMaxTimeMillis ...\n")),(0,t.yg)("p",{parentName:"li"},"\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u5f02\u5e38\uff0c\u4e0d\u518d\u4e00\u4e00\u5217\u4e3e\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09Consumer \u53c2\u6570\u6821\u9a8c\u5931\u8d25\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u8bf7\u53c2\u8003\uff1a ",(0,t.yg)("a",{parentName:"p",href:"https://github.com/apache/rocketmq/blob/develop/docs/cn/best_practice.md"},"5.2 \u5ba2\u6237\u7aef\u914d\u7f6e"))))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"SUBSCRIPTION_GROUP_NOT_EXIST")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"subscription group not exist\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09Consumer Group \u6216 DleayQueue \u83b7\u53d6\u8ba2\u9605\u4fe1\u606f\u5f02\u5e38\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u786e\u4fdd Consumer \u8ba2\u9605 Topic \u4fe1\u606f\u4e0e NameServer \u4e2d\u5b58\u5728\u7684 Topic \u4fe1\u606f\u4e00\u81f4\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u786e\u4fdd Broker \u548c Consumer \u8fde\u63a5\u7684\u662f\u540c\u4e00 NameServer \u96c6\u7fa4\uff1b"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u786e\u4fdd Topic \u7684\u961f\u5217\u6743\u9650\uff0c\u5bf9 Producer \u662f 6(rw-)\uff0c\u6216\u5bf9 Consumer \u81f3\u5c11\u662f 2(-w-)\uff1b")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"CLIENT_SERVICE_NOT_OK")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"The xxx service state not OK, maybe started once\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u4f7f\u7528\u540c\u4e00\u4e2a Producer/Consumer Group \u5728\u540c\u4e00\u4e2aJVM\u4e2d\u542f\u52a8\u591a\u4e2a Producer/Consumer \u5b9e\u4f8b\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5ba2\u6237\u7aef\u65e0\u6cd5\u542f\u52a8\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u786e\u4fdd\u4e00\u4e2a Producer/Consumer Group \u5bf9\u5e94\u7684 JVM \u53ea\u542f\u52a8\u4e00\u4e2a Producer/Consumer \u5b9e\u4f8b\u3002")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"NO_TOPIC_ROUTE_INFO")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"No route info of this topic:\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u5c06\u6d88\u606f\u53d1\u9001\u5230\u4e00\u4e2a\u8def\u7531\u4fe1\u606f\u5bf9\u751f\u4ea7\u8005\u4e0d\u53ef\u7528\u7684\u4e3b\u9898\u65f6\uff0c\u5c31\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u786e\u4fdd\u751f\u4ea7\u8005\u53ef\u4ee5\u8fde\u63a5\u5230\u540d\u79f0\u670d\u52a1\u5668\u5e76\u4e14\u80fd\u591f\u4ece\u4e2d\u83b7\u53d6\u8def\u7531\u5143\u4fe1\u606f\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u786e\u4fdd\u540d\u79f0\u670d\u52a1\u5668\u786e\u5b9e\u5305\u542b\u4e3b\u9898\u7684\u8def\u7531\u5143\u4fe1\u606f\u3002 \u60a8\u53ef\u4ee5\u4f7f\u7528\u7ba1\u7406\u5de5\u5177\u6216 Web \u63a7\u5236\u53f0\u901a\u8fc7 TopicRoute \u4ece\u540d\u79f0\u670d\u52a1\u5668\u67e5\u8be2\u8def\u7531\u5143\u4fe1\u606f\uff1b"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u786e\u4fdd\u60a8\u7684 Broker \u5c06\u5fc3\u8df3\u53d1\u9001\u5230\u60a8\u7684\u751f\u4ea7\u8005\u6b63\u5728\u8fde\u63a5\u7684\u540c\u4e00 NameServer \u5217\u8868\uff1b"),(0,t.yg)("p",{parentName:"li"},"4\uff09\u786e\u4fdd\u4e3b\u9898\u7684\u6743\u9650\u4e3a6(rw-)\uff0c\u6216\u81f3\u5c11\u4e3a2(-w-)\uff1b"),(0,t.yg)("p",{parentName:"li"},"\u5982\u679c\u627e\u4e0d\u5230\u6b64\u4e3b\u9898\uff0c\u8bf7\u901a\u8fc7\u7ba1\u7406\u5de5\u5177\u547d\u4ee4updateTopic\u6216Web\u63a7\u5236\u53f0\u5728Broker\u4e0a\u521b\u5efa\u5b83\u3002")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"LOAD_JSON_EXCEPTION")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"readLocalOffset Exception\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u6d88\u8d39\u8005\u5728\u5e7f\u64ad\u6a21\u5f0f\u4e0b\uff0c\u52a0\u8f7d\u672c\u5730 offsets.json \u6587\u4ef6\u5f02\u5e38\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u635f\u574f\u7684 fastjson \u6587\u4ef6\u4e5f\u4f1a\u5bfc\u81f4\u540c\u6837\u7684\u95ee\u9898\uff1b")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u68c0\u67e5 fastjson \u7248\u672c\u548c RocketMQ \u4f7f\u7528\u7248\u672c\u662f\u5426\u4e00\u81f4\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u5347\u7ea7 fastjson \u7248\u672c\uff1b")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"SAME_GROUP_DIFFERENT_TOPIC")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"the consumer's group info/subscription not exist\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0"),"\n1\uff09Consumer \u8ba2\u9605 Topic \u4fe1\u606f\u4e0d\u5b58\u5728.")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u68c0\u67e5 Consumer \u6240\u5728\u7684 Consumer Group \u662f\u5426\u5b58\u5728\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u68c0\u67e5 Consumer \u8ba2\u9605 Topic \u662f\u5426\u5b58\u5728\uff1b")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"MQLIST_NOT_EXIST")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"Can not find Message Queue for this topic\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0"),"\n1\uff09\u5bf9\u4e8eProducer\uff0c\u6839\u636e Topic \u672a\u80fd\u83b7\u53d6\u5bf9\u5e94\u7684 Queue \u4fe1\u606f\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u786e\u4fdd Topic \u5df2\u7ecf\u6b63\u786e\u914d\u7f6e Queue \u4fe1\u606f\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u786e\u4fdd Topic \u5bf9\u5e94\u7684 Queue \u81f3\u5c11\u67092(-w-)\u6743\u9650\uff1b")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"SEND_MSG_FAILED")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"Send [xxx] times, still failed, cost [xxx]ms, Topic: xxx, BrokersSent ...\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0"),"\n1\uff09Producer \u6d88\u606f\u53d1\u9001\u5f02\u5e38\u3002\u540c\u6b65\uff08SYNC\uff09\u65b9\u5f0f\u5171\u53d1\u90013\u6b21\uff0c\u5f02\u6b65\uff08ASYNC\uff09\u548c\u5355\u5411\uff08 ONEWAY\uff09\u53d1\u90011\u6b21\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09Producer \u53d1\u9001\u6d88\u606f\uff0c\u8d85\u65f6\u53c2\u6570\u662f\u5426\u8fc7\u5c0f\uff1b"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u786e\u4fdd Broker \u6b63\u5e38\uff1b"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u786e\u4fdd Producer \u548c Broker \u8fde\u63a5\u662f\u5426\u6b63\u5e38")))),(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"UNKNOWN_HOST_EXCEPTION")),(0,t.yg)("ul",{parentName:"li"},(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u5f02\u5e38\u4fe1\u606f")),(0,t.yg)("pre",{parentName:"li"},(0,t.yg)("code",{parentName:"pre",className:"language-java"},"InetAddress java.net.InetAddress.getLocalHost() throws UnknownHostException\n"))),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u539f\u56e0")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u4e3b\u673a\u53ef\u80fd\u6709\u5f88\u591a\u7f51\u7edc\u63a5\u53e3\uff0c\u5e76\u4e14\u4e00\u4e2a\u63a5\u53e3\u53ef\u80fd\u7ed1\u5b9a\u5230\u591a\u4e2aIP\u5730\u5740\u3002")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},"\u89e3\u51b3\u65b9\u6848")),(0,t.yg)("p",{parentName:"li"},"1\uff09\u786e\u4fdd host \u5bf9\u5e94\u7684 IP \u80fd\u591f\u6b63\u5e38\u8bbf\u95ee\uff0c\u4f7f\u7528 Ping \u7b49\u7f51\u7edc\u547d\u4ee4\u68c0\u67e5\u7f51\u7edc\u60c5\u51b5\uff1b"))))),(0,t.yg)("h2",{id:"5-\u5176\u4ed6"},"5 \u5176\u4ed6"),(0,t.yg)("ol",null,(0,t.yg)("li",{parentName:"ol"},(0,t.yg)("p",{parentName:"li"},"Broker\u5d29\u6e83\u4ee5\u540e\u6709\u4ec0\u4e48\u5f71\u54cd\uff1f"),(0,t.yg)("p",{parentName:"li"},"1\uff09Master\u8282\u70b9\u5d29\u6e83"),(0,t.yg)("p",{parentName:"li"},"\u6d88\u606f\u4e0d\u80fd\u518d\u53d1\u9001\u5230\u8be5 Broker \u96c6\u7fa4\uff0c\u4f46\u662f\u5982\u679c\u60a8\u6709\u53e6\u4e00\u4e2a\u53ef\u7528\u7684 Broker \u96c6\u7fa4\uff0c\u90a3\u4e48\u5728\u4e3b\u9898\u5b58\u5728\u7684\u6761\u4ef6\u4e0b\u4ecd\u7136\u53ef\u4ee5\u53d1\u9001\u6d88\u606f\u3002\u6d88\u606f\u4ecd\u7136\u53ef\u4ee5\u4ece Slave \u8282\u70b9\u6d88\u8d39\u3002"),(0,t.yg)("p",{parentName:"li"},"2\uff09\u4e00\u4e9bSlave\u8282\u70b9\u5d29\u6e83"),(0,t.yg)("p",{parentName:"li"},"\u53ea\u8981\u6709\u53e6\u4e00\u4e2a\u5de5\u4f5c\u7684 Slave\uff0c\u5c31\u4e0d\u4f1a\u5f71\u54cd\u53d1\u9001\u6d88\u606f\u3002 \u5bf9\u6d88\u8d39\u6d88\u606f\u4e5f\u4e0d\u4f1a\u4ea7\u751f\u5f71\u54cd\uff0c\u9664\u975e\u6d88\u8d39\u8005\u7ec4\u8bbe\u7f6e\u4e3a\u4f18\u5148\u4ece\u8be5Slave\u6d88\u8d39\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6d88\u8d39\u8005\u7ec4\u4ece Master \u6d88\u8d39\u3002"),(0,t.yg)("p",{parentName:"li"},"3\uff09\u6240\u6709 Slave \u8282\u70b9\u5d29\u6e83"),(0,t.yg)("p",{parentName:"li"},"\u5411 Master \u53d1\u9001\u6d88\u606f\u4e0d\u4f1a\u6709\u4efb\u4f55\u5f71\u54cd\uff0c\u4f46\u662f\uff0c\u5982\u679c Master\u662f SYNC_MASTER\uff0cProducer\u4f1a\u5f97\u5230\u4e00\u4e2a SLAVE_NOT_AVAILABLE \uff0c\u8868\u793a\u6d88\u606f\u6ca1\u6709\u53d1\u9001\u7ed9\u4efb\u4f55 Slave\u3002 \u5bf9\u6d88\u8d39\u6d88\u606f\u4e5f\u6ca1\u6709\u5f71\u54cd\uff0c\u9664\u975e\u6d88\u8d39\u8005\u7ec4\u8bbe\u7f6e\u4e3a\u4f18\u5148\u4ece Slave \u6d88\u8d39\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6d88\u8d39\u8005\u7ec4\u4ece Master \u6d88\u8d39\u3002"))))}N.isMDXComponent=!0}}]);