{"id":1229,"date":"2020-09-12T15:59:11","date_gmt":"2020-09-12T07:59:11","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=1229"},"modified":"2021-04-30T16:58:30","modified_gmt":"2021-04-30T08:58:30","slug":"gbase-8a-%e5%bd%93event%e5%be%88%e5%a4%9a%e6%97%b6%ef%bc%8c%e7%ad%9b%e9%80%89%e8%bf%87%e6%bb%a4%e6%8c%87%e5%ae%9a%e8%a1%a8%e6%88%96%e6%8c%87%e5%ae%9aip%e7%9a%84event","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/1229","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a \u5f53event\u5f88\u591a\u65f6\uff0c\u7b5b\u9009\u8fc7\u6ee4\u6307\u5b9a\u8868\u6216\u6307\u5b9aIP\u7684event"},"content":{"rendered":"<p>GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\u901a\u8fc7gcadmin\u547d\u4ee4\u5bf9\u96c6\u7fa4\u72b6\u6001\u8fdb\u884c\u7ef4\u62a4\uff0c\u5f53\u96c6\u7fa4\u51fa\u73b0event\u65f6\uff0c\u901a\u8fc7show\u547d\u4ee4\u67e5\u770b\u3002\u4f46\u5982\u679cevent\u5df2\u7ecf\u79ef\u538b\u5f88\u591a\uff0c\u6216\u8005\u53ea\u5173\u5fc3\u67d0\u4e2a\u8868\u7684event,\u53ef\u4ee5\u901a\u8fc7\u65b0\u7248\u672c\u96c6\u7fa4\u7684\u53c2\u6570\u6765\u5b9e\u73b0\u7b5b\u9009\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b4c89eef44\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b4c89eef44\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/1229\/#%E7%A1%AE%E8%AE%A4%E7%89%88%E6%9C%AC%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81\" >\u786e\u8ba4\u7248\u672c\u662f\u5426\u652f\u6301<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/1229\/#%E5%91%BD%E4%BB%A4%E6%A0%B7%E4%BE%8B\" >\u547d\u4ee4\u6837\u4f8b<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%A1%AE%E8%AE%A4%E7%89%88%E6%9C%AC%E6%98%AF%E5%90%A6%E6%94%AF%E6%8C%81\"><\/span>\u786e\u8ba4\u7248\u672c\u662f\u5426\u652f\u6301<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6267\u884cgcadmin ,\u770b\u662f\u5426\u5728showdmlevent\u7b49\u540e\u9762\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u53c2\u6570\u3002\u5982\u4e0b\u97628.6.2Build43\u7248\u672c\u662f\u652f\u6301\u7684\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[gbase@localhost ~]$ gcadmin --help\n\n        Usage: gcadmin &lt;command&gt; [arg1[, arg2...]]\n\n        1.  gcadmin distribution &lt;gcChangeInfo.xml&gt; &lt;p num&gt; [d num] [pattern 1|2] [db_root_pwd password]  : generate distribution, db_root_pwd shall input\n                                                                                                            if changed and new distribution data nodes more\n                                                                                                            than old distribution\n        2.  gcadmin rmdistribution [ID]                                                                   : remove distribution\n        3.  gcadmin addnodes gcChangeInfo.xml                                                             : add nodes to cluster\n        4.  gcadmin rmnodes gcChangeInfo.xml                                                              : remove nodes from cluster\n        5.  gcadmin showdistribution [node | f]                                                           : show cluster distribution, or segments on nodes when\n                                                                                                            use parameter [node]\n        6.  gcadmin switchmode &lt;mode&gt;                                                                     : switch cluster mode, mode take value in\n                                                                                                            [ normal | readonly | recovery ]\n        7.  gcadmin showlock [f]                                                                          : show current cluster lock information,\n                                                                                                            include lock name, lock owner ip address, etc\n        8.  gcadmin showddlevent [&lt;tablename segname nodeip&gt; | &lt;tablename nodeip&gt; | &lt;max_fevent_num&gt;] [f] : show cluster ddl fail event,\n                                                                                                            replicated table segname is [n0]\n        9.  gcadmin showdmlevent [&lt;tablename segname nodeip&gt; | &lt;max_fevent_num&gt;] [f]                      : show current cluster dml fail event,                                                                                                                                        replicated table segname is [n0]\n        10. gcadmin showdmlstorageevent [table ID segname nodeip] | &lt;max_fevent_num&gt;] [f]                 : show current cluster dml storage fail event,\n                                                                                                            replicated table segname is [n0]\n        11. gcadmin showcluster [c | d | f]                                                               : show current cluster information, include all nodes,\n                                                                                                            cluster state and cluster node information\n        12. gcadmin getdistribution &lt;id&gt; &lt;distribution_info.xml&gt;                                          : get distribution information\n        13. gcadmin setnodestate ip &lt;state&gt;                                                               : set one node state,state take value in: failure unavailable normal\n        14. gcadmin showfailover [f]                                                                      : show failover information\n        15. gcadmin showfailoverdetail &lt;commitid&gt; [xml_file_name]                                         : write failover information to file xml_file_name\n        16. gcadmin --help                                                                                : show help info\n        17. gcadmin -V,--version                                                                          : show version info\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%91%BD%E4%BB%A4%E6%A0%B7%E4%BE%8B\"><\/span>\u547d\u4ee4\u6837\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p> \u547d\u4ee4\u63d0\u4f9b\u4e86\u51e0\u79cd\u5199\u6cd5\u548c\u53c2\u6570\uff0c\u4e2d\u95f4\u7528\u7ad6\u7ebf\u5206\u5272\u7684\u3002\u6bd4\u5982<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DMLEVENT\n&#91;gbase@localhost ~]$ gcadmin showdmlevent testdb.t1 n1 10.0.2.107\nEvent count:0\n\nDDLEVENT\n&#91;gbase@localhost ~]$ gcadmin showddlevent testdb.t1 10.0.2.107\nEvent count:0\n<\/code><\/pre>\n\n\n\n<p>testdb.t1 \u5e93\u540d.\u8868\u540d<br>n1 \u5206\u7247\uff0c\u5bf9\u5e94segname<br>10.0.2.107 \u5bf9\u5e94nodeip<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\u901a\u8fc7gcadmin\u547d\u4ee4\u5bf9\u96c6\u7fa4\u72b6\u6001\u8fdb\u884c\u7ef4\u62a4\uff0c\u5f53\u96c6\u7fa4\u51fa\u73b0event\u65f6\uff0c\u901a\u8fc7show\u547d\u4ee4\u67e5\u770b\u3002\u4f46\u5982\u679cevent\u5df2\u7ecf\u79ef\u538b\u5f88\u591a\uff0c\u6216\u8005\u53ea\u5173\u5fc3\u67d0\u4e2a\u8868\u7684event,\u53ef\u4ee5\u901a\u8fc7\u65b0\u7248\u672c\u96c6\u7fa4\u7684\u53c2\u6570\u6765\u5b9e\u73b0\u7b5b\u9009\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,54],"tags":[95],"class_list":{"0":"post-1229","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-gbase8a","8":"tag-event"},"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=1229"}],"version-history":[{"count":1,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1229\/revisions"}],"predecessor-version":[{"id":1230,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1229\/revisions\/1230"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=1229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=1229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=1229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}