{"id":13404,"date":"2024-07-04T19:51:44","date_gmt":"2024-07-04T11:51:44","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=13404"},"modified":"2024-07-04T19:51:44","modified_gmt":"2024-07-04T11:51:44","slug":"tds320%e4%bb%a5%e4%b8%8b%e7%89%88%e6%9c%ac%ef%bc%8c%e5%87%8f%e5%b0%91%e8%a1%80%e7%bc%98%e4%b8%b4%e6%97%b6%e8%a1%a8%ef%bc%8c%e5%b9%b6%e6%b8%85%e7%90%86%e8%a1%80%e7%bc%98","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=13404","title":{"rendered":"tds320\u4ee5\u4e0b\u7248\u672c\uff0c\u5982\u4f55\u51cf\u5c11\u8840\u7f18\u4e34\u65f6\u8868\u5e76\u6e05\u7406\u8840\u7f18"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<p>\u5728tds3.2.0\u4ee5\u4e0b\u7248\u672c\uff0c\u5ba2\u6237\u7ecf\u5e38\u4f1a\u9047\u5230\uff0c\u8840\u7f18\u67e5\u8be2\u6162\u3001\u8840\u7f18\u56fe\u4e0a\u4e34\u65f6\u8868\u592a\u591a\u3001\u6216\u8840\u7f18\u6570\u636e\u592a\u591a\u9700\u8981\u6e05\u7406 \u7684\u95ee\u9898\uff0c\u672c\u6587\u63d0\u4f9b\u89e3\u51b3\u65b9\u6848\u4ec5\u4f9b\u53c2\u8003\u3002<\/p>\n<p><strong><font color=red>\u6ce8\u610f\uff01\u4e0b\u9762\u7684\u65b9\u6848\u4f1a\u6e05\u7a7a\u73b0\u6709\u8840\u7f18\uff01<\/font><\/strong><\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<p>\u6d4b\u8bd5\u73af\u5883\uff1atds3.0.1-final<\/p>\n<h4>1. \u505c\u6b62catalog\u670d\u52a1<\/h4>\n<p>\u5728manager\u9875\u9762\uff0c\u505c\u6b62\u6389catalog\u7ec4\u4ef6<\/p>\n<h4>2. \u6e05\u7a7acatalog\u5e93\u7684graph_vertex\uff0cgraph_edge\u8868<\/h4>\n<p>\u68c0\u67e5catalog\u7ec4\u4ef6\u4f9d\u8d56\u7684\u5143\u6570\u636e\u5e93\uff0c\u767b\u5f55\u5230\u5143\u6570\u636e\u5e93\uff0ctrucate\u6389\u8fd92\u5f20\u8868<\/p>\n<blockquote>\n<p>\u5177\u4f53\u7684jdbc\u8fde\u63a5\u4e32\uff0c\u53ef\u4ee5\u5230\u90e8\u7f72catalog\u7684\u8282\u70b9\u6267\u884c <code>grep jdbc \/etc\/catalog1\/conf\/*<\/code> \u67e5\u770b\uff0c\u4e00\u822cdatabase\u9ed8\u8ba4\u662fcatalog_catalog1<\/p>\n<\/blockquote>\n<pre><code class=\"language-sql\">truncate table catalog_catalog1.graph_vertex;\ntruncate table catalog_catalog1.graph_edge;<\/code><\/pre>\n<h4>3.\u4fee\u6539catalog\u7684catalog.properties\u6587\u4ef6\uff0c\u4fee\u6539graph.storage.hbase.table\u7684\u503c\uff08\u540e\u7f00\u52a0v1,v2\u2026\u7b49\uff09<\/h4>\n<p>a)  Manager\u9875\u9762\uff0c\u5728Catalog\u7ec4\u4ef6 \u914d\u7f6e\u53c2\u6570\u91cc\u9762\u627e\u5230 \u53c2\u6570 <code>catalog.graph.table.v1<\/code>\uff0c\u5c06\u503c \u4ece<code>catalog_graph_v1<\/code>\u4fee\u6539\u4e3a<code>catalog_graph_v2<\/code>\uff0c\u5982\u679c\u540e\u7f00\u5df2\u7ecf\u662fv2\uff0c\u53ef\u4ee5\u4fee\u6539\u6210v3\uff0c\u4ee5\u6b64\u7c7b\u63a8&#8230;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2024\/06\/image-1718762353333.png\" alt=\"file\" \/><\/p>\n<p>b)  Catalog\u7ec4\u4ef6\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u914d\u7f6e\u670d\u52a11. <\/p>\n<h4>4. \u4fee\u6539\u5f00\u542f\u8840\u7f18\u7684argodbcomputing\u7684catalog.properties\u6587\u4ef6\uff0c\u6839\u636e\u7528\u6237\u9700\u8981\u8df3\u8fc7\u7684\u4e34\u65f6\u8868\u8840\u7f18\u683c\u5f0f<\/h4>\n<p>\u4fee\u6539\u4e0b\u97622\u4e2a\u503c<\/p>\n<blockquote>\n<p>hook.skip.tables.views.prefix\uff1a\u9700\u8981\u8df3\u8fc7\u7684\u4e34\u65f6\u8868\u7684\u8868\u540d<font color=red>\u524d\u7f00<\/font><br \/>\nhook.skip.schema.names\uff1a\u9700\u8981\u8df3\u8fc7\u7684\u5e93\u540d<font color=red>\u5168\u79f0<\/font><\/p>\n<\/blockquote>\n<p><strong>\u8fd9\u91cc\u6211\u4eec\u5bf9\u8df3\u8fc7pt_tmp\u5e93\u7684\u573a\u666f\u8fdb\u884c\u6d4b\u8bd5\uff1a<\/strong><\/p>\n<p><strong>\u4e34\u65f6\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<p>\u8fd9\u91cc\uff0c\u6211\u4eec\u53ea\u9700\u8981\u8df3\u8fc7pt_tmp\u5e93\u4e0b\u7684\u8868\uff0c\u6240\u4ee5\u53ea\u914d\u7f6ehook.skip.schema.names\u5373\u53ef\u3002<\/p>\n<p>a)  \u5728argodbcomputing server\u8282\u70b9\uff0c\u4fee\u6539<code>\/etc\/argodbcomputing1\/conf\/catalog.properties<\/code>\uff0c\u5728\u6700\u540e\u4e00\u884c\uff0chook.skip.schema.names \u4e2d\u6dfb\u52a0 pt_tmp \u8fd9\u4e2a\u5e93<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2024\/06\/image-1718762624105.png\" alt=\"file\" \/><\/p>\n<p><strong><font color=red>\u6ce8\u610f\uff01\u4e0a\u9762\u7684\u65b9\u6848\uff0c\u5982\u679c\u70b9\u51fb argodbcomputing1 \u7684\u5237\u65b0catalog\u63d2\u4ef6\u6309\u94ae\uff0ccatalog.properties\u6587\u4ef6\u5c31\u4f1a\u88ab\u91cd\u7f6e\uff0c\u6240\u4ee5\u5efa\u8bae \u53c2\u8003\u4e0b\u9762\u7684\u65b9\u5f0f\uff0c\u91cd\u505aplugin\u63d2\u4ef6\u5305<\/font><\/strong><\/p>\n<p><strong>\u6700\u7ec8\u89e3\u51b3\u65b9\u6848\uff1a<\/strong><\/p>\n<p>\u53ef\u4ee5\u53c2\u8003\u5185\u90e8\u6587\u6863\u300aStudio 3.0.X on Manager\u5b89\u88c5\u6307\u5bfc\u300b-&quot;Catalog\u8840\u7f18\u5206\u6790\u63d2\u4ef6&quot;\u7ae0\u8282\u8fdb\u884c\u64cd\u4f5c\uff0c\u4e0b\u9762\u7684\u4ec5\u4f9b\u53c2\u8003\uff1a<\/p>\n<p>a)  \u5230manager\u8282\u70b9\u7684\/var\/lib\/transwarp-manager\/master\/content\/meta\/plugins\u76ee\u5f55\u4e0b<br \/>\nb)  tar -zxvf catalog-inceptor-1.0.tar.gz    # \u89e3\u538btar\u5305<br \/>\nc)  \u4fee\u6539 catalog\/argodb_computing\/templates\/catalog.properties.ftl\u6587\u4ef6\uff0c<code>hook.skip.schema.names<\/code> \u4e2d\u6dfb\u52a0 pt_tmp \u8fd9\u4e2a\u5e93<br \/>\nd)  mv catalog-inceptor-1.0.tar.gz \/root\/ # \u5c06\u539f\u6765\u7684\u63d2\u4ef6\u5305\u632a\u8d70\u5907\u4efd<br \/>\ne)  tar -zcvf catalog-argodb_computing-1.0.tar.gz catalog # \u91cd\u65b0\u6253\u5305<br \/>\nf)  rm -rf catalog    # \u5220\u9664\u89e3\u538b\u51fa\u6765\u7684catalog\u76ee\u5f55<br \/>\ng)  argodbcomputing1\u7ec4\u4ef6\uff0c\u5237\u65b0catalog\u63d2\u4ef6\uff0c\u68c0\u67e5\/etc\/argodbcomputing1\/conf\/catalog.properties \u6587\u4ef6\u4e2d\u662f\u5426\u66f4\u65b0<\/p>\n<h4>5. \u542f\u52a8catalog<\/h4>\n<p>step4\u5237\u65b0argodbcomputing1\u7684catalog\u63d2\u4ef6\uff0c\u5305\u542b\u91cd\u542fargodbcomputing1\u7684\u52a8\u4f5c\uff0c\u6240\u4ee5argodbcomputing1\u65e0\u9700\u91cd\u542f\uff0c\u53ea\u542f\u52a8catalog\u670d\u52a1\u5373\u53ef\u3002<\/p>\n<p>\u91cd\u65b0\u89e6\u53d1\u8840\u7f18\uff0c\u89c2\u5bdfpt_tmp\u5e93\u662f\u5426\u6210\u529f\u8df3\u8fc7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u5728tds3.2.0\u4ee5\u4e0b\u7248\u672c\uff0c\u5ba2\u6237\u7ecf\u5e38\u4f1a\u9047\u5230\uff0c\u8840\u7f18\u67e5\u8be2\u6162\u3001\u8840\u7f18\u56fe\u4e0a\u4e34\u65f6\u8868\u592a\u591a\u3001\u6216\u8840\u7f18\u6570\u636e\u592a\u591a\u9700\u8981\u6e05\u7406  ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=13404\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13404","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/13404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13404"}],"version-history":[{"count":3,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/13404\/revisions"}],"predecessor-version":[{"id":13409,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/13404\/revisions\/13409"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}