{"id":5223,"date":"2021-03-29T14:49:24","date_gmt":"2021-03-29T06:49:24","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=5223"},"modified":"2021-05-31T15:59:56","modified_gmt":"2021-05-31T07:59:56","slug":"gbase-8a-%e5%af%b9%e6%98%8e%e6%96%87%e5%af%86%e7%a0%81%e7%9a%84%e5%ae%89%e5%85%a8%e4%bf%9d%e6%8a%a4%e6%8e%aa%e6%96%bd","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/5223","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a \u5bf9\u660e\u6587\u5bc6\u7801\u7684\u5b89\u5168\u4fdd\u62a4\u63aa\u65bd"},"content":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u5728GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\u91cc\uff0c\u5728\u6d89\u53ca\u5bc6\u7801\u660e\u6587\u7684\u5b89\u5168\u4fdd\u62a4\u65b9\u9762\u5904\u7406\u63aa\u65bd\uff0c\u786e\u4fdd\u5bc6\u7801\u660e\u6587\u4e0d\u4f1a\u88ab\u83b7\u5f97\u3002\u5305\u62ec\u547d\u4ee4\u884c\u767b\u5f55\u5bc6\u7801\uff0cSQL\u8bed\u53e5\u91cc\u8fde\u63a5\u6570\u636e\u6e90\u7684\u5bc6\u7801\uff0c\u540c\u65f6\u5728\u6570\u636e\u5e93\u65e5\u5fd7\u91cc\u4e5f\u9700\u8981\u5c4f\u853d\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-6a2aaa61ec30f\" 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-6a2aaa61ec30f\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/5223\/#%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7gccli%E8%BF%9B%E7%A8%8B%E7%99%BB%E5%BD%95%E5%AF%86%E7%A0%81\" >\u547d\u4ee4\u884c\u5de5\u5177gccli\u8fdb\u7a0b\u767b\u5f55\u5bc6\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/5223\/#SQL%E8%AF%AD%E5%8F%A5%E5%8C%85%E5%90%AB%E6%95%B0%E6%8D%AE%E6%BA%90%E5%AF%86%E7%A0%81\" >SQL\u8bed\u53e5\u5305\u542b\u6570\u636e\u6e90\u5bc6\u7801<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/5223\/#%E6%97%A5%E5%BF%97\" >Log<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7gccli%E8%BF%9B%E7%A8%8B%E7%99%BB%E5%BD%95%E5%AF%86%E7%A0%81\"><\/span>\u547d\u4ee4\u884c\u5de5\u5177gccli\u8fdb\u7a0b\u767b\u5f55\u5bc6\u7801<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u767b\u5f55\u6570\u636e\u5e93\u8f93\u5165\u4e86\u5bc6\u7801\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 ~]$ gccli -ugbase -pgbase20110531 -e\"select sleep(100)\"\r\n+------------+\r\n| sleep(100) |\r\n+------------+\r\n|          0 |\r\n+------------+\r\n&#91;gbase@gbase_rh7_001 ~]$\r\n<\/code><\/pre>\n\n\n\n<p>ps\u67e5\u770b\u8fdb\u7a0b\u4fe1\u606f\u6ca1\u6709\u660e\u6587<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Last login: Mon Mar 29 13:58:31 2021 from 192.168.56.1\r\n&#91;root@gbase_rh7_001 ~]#\r\n&#91;root@gbase_rh7_001 ~]# ps -ef|grep gccli\r\ngbase     4546  3381  0 14:19 pts\/0    00:00:00 gccli -ugbase -pxxxxxxxxxxxxx -eselect sleep(100)\r\nroot      4900  4726  0 14:19 pts\/1    00:00:00 grep --color=auto gccli\r\n&#91;root@gbase_rh7_001 ~]#\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"SQL%E8%AF%AD%E5%8F%A5%E5%8C%85%E5%90%AB%E6%95%B0%E6%8D%AE%E6%BA%90%E5%AF%86%E7%A0%81\"><\/span>SQL\u8bed\u53e5\u5305\u542b\u6570\u636e\u6e90\u5bc6\u7801<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase_rh7_001 ~]$ gccli -ugbase -pgbase20110531 -e\"load data infile 'sftp:\/\/gbase:gbase1234@10.0.2.202\/home\/1\/txt' into table vc1.testdb.t1 \"\r\n<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u8fdb\u7a0b show processlist\uff0c\u6ca1\u6709\u53d1\u73b0\u660e\u6587<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>+----+-----------------+-----------+------+------+---------+------+-----------------------------+------------------------------------------------------------------------------------------+\r\n| Id | User            | Host      | vc   | db   | Command | Time | State                       | Info                                                                                     |\r\n+----+-----------------+-----------+------+------+---------+------+-----------------------------+------------------------------------------------------------------------------------------+\r\n|  1 | event_scheduler | localhost | NULL | NULL | Daemon  | 1604 | Waiting for next activation | NULL                                                                                     |\r\n| 25 | gbase           | localhost | NULL | NULL | Query   |    3 | checking permissions        | load data infile 'sftp:\/\/gbase:*********@10.0.2.202\/home\/1\/txt' into table vc1.testdb.t1 |\r\n| 29 | root            | localhost | NULL | NULL | Query   |    0 | NULL                        | show processlist                                                                         |\r\n+----+-----------------+-----------+------+------+---------+------+-----------------------------+--------------------------------------------------------------------<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%97%A5%E5%BF%97\"><\/span>Log<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>gcluster\/log\/express.log, \u6ca1\u6709\u770b\u5230\u660e\u6587\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2021-03-29 14:26:20.206 &#91;LOAD]&#91;ERROR]&#91;S:25]&#91;Q:39]&lt;ExecuteLoad|1798>:I\/O operation on sftp:\/\/gbase:*********@10.0.2.202\/home\/1\/txt failed with error - Couldn't connect to server, File name sftp:\/\/gbase:*********@10.0.2.202\/home\/1\/txt\r\n<\/code><\/pre>\n\n\n\n<p>\u5ba1\u8ba1\u65e5\u5fd7\uff0c\u6ca1\u6709\u770b\u5230\u660e\u6587<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Threadid=36;\r\n# Taskid=2228257;\r\n# Time: 210329 14:40:35\r\n# End_time: 210329 14:40:38\r\n# User@Host: gbase&#91;gbase] @ localhost &#91;]\r\n# UID: 2\r\n# Query_time: 3.058889 Rows: 0\r\n# Tables: WRITE: `vc00001`.`testdb`.`t1`; READ: ; OTHER: ; ;\r\n# SET timestamp=1617000035;\r\n# Sql_text: load data infile 'sftp:\/\/gbase:*********@10.0.2.202\/home\/1\/txt' into table vc1.testdb.t1;\r\n# Sql_type: DML;\r\n# Sql_command: LOAD;\r\n# Status: FAILED;\r\n# Connect Type: ODBC;\r\n<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ecb\u7ecd\u5728GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\u91cc\uff0c\u5728\u6d89\u53ca\u5bc6\u7801\u660e\u6587\u7684\u5b89\u5168\u4fdd\u62a4\u65b9\u9762\u5904\u7406\u63aa\u65bd\uff0c\u786e\u4fdd\u5bc6\u7801\u660e\u6587\u4e0d\u4f1a\u88ab\u83b7\u5f97\u3002\u5305\u62ec\u547d\u4ee4\u884c\u767b\u5f55\u5bc6\u7801\uff0cSQL\u8bed\u53e5\u91cc\u8fde\u63a5\u6570\u636e\u6e90\u7684\u5bc6\u7801\uff0c\u540c\u65f6\u5728\u6570\u636e\u5e93\u65e5\u5fd7\u91cc\u4e5f\u9700\u8981\u5c4f\u853d\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[31,76],"class_list":["post-5223","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-31","tag-76"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5223","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=5223"}],"version-history":[{"count":4,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5223\/revisions"}],"predecessor-version":[{"id":5227,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/5223\/revisions\/5227"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=5223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=5223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=5223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}