{"id":2791,"date":"2020-09-02T17:42:55","date_gmt":"2020-09-02T09:42:55","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=2791"},"modified":"2020-09-02T17:42:55","modified_gmt":"2020-09-02T09:42:55","slug":"orc-%e6%99%ae%e9%80%9a%e8%a1%a8%e7%9a%84%e5%af%bc%e5%85%a5%e5%af%bc%e5%87%ba%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=2791","title":{"rendered":"ORC \u666e\u901a\u8868\u7684\u5bfc\u5165\u5bfc\u51fa\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<h3>\u6982\u8981\u8bf4\u660e<\/h3>\n<hr \/>\n<p>\u9762\u5bf9\u4e00\u4e9b\u91cd\u8981\u6570\u636e\uff0c\u5f88\u591a\u573a\u666f\u4e0b\u90fd\u9700\u8981\u5c06\u6570\u636e\u4ed3\u5e93\u8fdb\u884c\u590d\u5236\uff0c\u8fd9\u53ef\u4ee5\u662f\u6574\u4e2a\u6570\u636e\u5e93\u7684\u66f4\u5e7f\u6cdb\u7ea7\u522b\uff0c\u4e5f\u53ef\u4ee5\u662f\u8f83\u5c0f\u7684\u7ea7\u522b\uff0c\u4f8b\u5982\u8868\u6216\u5206\u533a\u3002\u672c\u6848\u4f8b\u5c06\u6f14\u793a\u8868\u548c\u5206\u533a\u7684\u5bfc\u5165\u5bfc\u51fa\u3002<\/p>\n<p>1\u3001\u638c\u63e1Inceptor \u8868\u7684\u6570\u636e\u5bfc\u5165\u548c\u5bfc\u51fa\u64cd\u4f5c<\/p>\n<p>2\u3001\u638c\u63e1Inceptor \u7684Export \u548cImport \u7684\u4f7f\u7528<\/p>\n<p>3\u3001\u638c\u63e1 MSCK \u5206\u533a\u4fee\u590d\u547d\u4ee4\u7684\u4f7f\u7528<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<p>Inceptor \u6570\u636e\u5bfc\u5165\u5bfc\u51fa\u6309\u7167\u8868\u7c7b\u578b\u5927\u81f4\u5206\u4e3a\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<ol>\n<li>ORC \u975e\u5206\u533a\u666e\u901a\u8868\uff08\u4e5f\u5305\u62ecCSV\u8868\u3001TEXT\u8868\u7b49\uff09<\/li>\n<li>ORC \u5206\u533a\u666e\u901a\u8868<\/li>\n<li>ORC \u975e\u5206\u533a\u4e8b\u52a1\u8868<\/li>\n<li>ORC \u5206\u533a\u4e8b\u52a1\u8868<\/li>\n<\/ol>\n<h4>\u672c\u6848\u4f8b\u4ecb\u7ecd ORC \u975e\u5206\u533a\u666e\u901a\u8868\u7684\u6570\u636e\u5bfc\u5165\u5bfc\u51fa\uff1a\u5927\u81f4\u5206\u4e3a\u4e09\u79cd\u65b9\u6cd5\uff1a<\/h4>\n<h4>1\u3001\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff0cSQL \u5efa\u5916\u8868\u7684\u65b9\u5f0f\uff0c\u5927\u81f4\u5206\u4e3a4\u6b65\uff1a<\/h4>\n<ol>\n<li>insert \u5230\u6e90\u96c6\u7fa4\u7684 HDFS \uff0c\u5e76get \u5230\u672c\u5730\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>\u5c06\u6e90\u96c6\u7fa4\u7684\u6587\u4ef6 scp \u5230 \u76ee\u6807\u96c6\u7fa4\uff0c\u5e76 put \u5230\u76ee\u6807\u96c6\u7fa4\u7684HDFS<\/li>\n<li>\u5728\u76ee\u6807\u96c6\u7fa4\u521b\u5efa\u5916\u8868\u6307\u5b9alocation\uff0c\u6216\u8005load \u6570\u636e\u5230\u5916\u8868<\/li>\n<li>\u5728\u76ee\u6807\u96c6\u7fa4\u521b\u5efaORC \u975e\u5206\u533a\u666e\u901a\u8868\uff0c\u7136\u540einsert into select<\/li>\n<\/ol>\n<h5>1\u3001insert\u5230\u6e90\u96c6\u7fa4HDFS\uff0c\u5e76get \u5230\u672c\u5730\u6587\u4ef6\u7cfb\u7edf<\/h5>\n<p>a\u3001\u5199\u5165\u6e90 HDFS \u6587\u4ef6\u7cfb\u7edf\uff0c\u8bed\u6cd5\uff1a<\/p>\n<pre><code>INSERT OVERWRITE DIRECTORY '\/crmdev\/orc_unpart\/' ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' SELECT * FROM crmdev.orc_unpart;<\/code><\/pre>\n<p><strong>\u8bf4\u660e\uff1a<\/strong><\/p>\n<ul>\n<li>\u8fd9\u4e2a\u8bed\u53e5\u5c06\u67e5\u8be2\u7ed3\u679c\u5199\u5165\u4e00\u4e2a \u76ee\u5f55\uff0c\u800c\u4e0d\u662f\u6587\u4ef6\uff0c\u5199\u5165\u7684\u7ed3\u679c\u53ef\u80fd\u662f\u591a\u4e2a\u6587\u4ef6\u3002<\/li>\n<li>\u5199\u5165\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u8981\u52a0\u4e0a LOCAL \u5173\u952e\u5b57\uff1b\u5199\u5165\u7684\u662f server \u6240\u5728\u7684pod\u5185\u7684\u8def\u5f84\uff1b<\/li>\n<li>ROW FORMAT\u6307\u5b9a\u6587\u4ef6\u7684\u884c\u683c\u5f0f\uff0c\u4e0d\u6307\u5b9a\u4f7f\u7528\u9ed8\u8ba4\u503c\uff1b<\/li>\n<li>STORED AS\u6307\u5b9a\u6587\u4ef6\u683c\u5f0f\uff0c\u4e0d\u6307\u5b9a\u5219\u4f7f\u7528\u9ed8\u8ba4\u503c\uff1b<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<ul>\n<li>\u5fc5\u987b\u662fHDFS \u6587\u4ef6\u7cfb\u7edf\uff1b<\/li>\n<li>\u5fc5\u987b\u6307\u5b9a\u5206\u9694\u7b26\uff0c\u9ed8\u8ba4\u7684\u5206\u9694\u7b26\u662fSOH\uff0c\u5728\u5bfc\u5165\u7684\u65f6\u5019\u8bc6\u522b\u4e0d\u4e86\uff1b<\/li>\n<\/ul>\n<p>b\u3001get \u5230\u6e90\u96c6\u7fa4\u7684\u672c\u5730\u6587\u4ef6\u7cfb\u7edf<\/p>\n<pre><code>$ hadoop fs -get \/crmdev\/orc_unpart\/\n2020-04-07 11:01:00,360 INFO util.KerberosUtil: Using principal pattern: HTTP\/_HOST\n$ ls -l\n\u603b\u7528\u91cf 4\ndrwxr-xr-x 2 root root 4096 4\u6708   7 11:01 orc_unpart<\/code><\/pre>\n<h5>2\u3001\u5c06\u6e90\u96c6\u7fa4\u7684\u6587\u4ef6 scp \u5230 \u76ee\u6807\u96c6\u7fa4\uff0c\u5e76 put \u5230\u76ee\u6807\u96c6\u7fa4\u7684HDFS<\/h5>\n<pre><code>$ scp -r orc_unpart\/ 172.22.22.24:\/mnt\/disk1\/crmdev\/\nroot@172.22.22.24's password: \n000000_0                            100%   17MB  17.3MB\/s   00:00\n000001_0                            100%   17MB  17.2MB\/s   00:00\n000002_0                            100%   17MB  17.1MB\/s   00:00<\/code><\/pre>\n<p>\u5728\u76ee\u6807\u96c6\u7fa4\u5c06\u6570\u636e\u4e0a\u4f20\u5230\u76ee\u6807\u96c6\u7fa4\u7684HDFS\uff1a<\/p>\n<pre><code>$ hadoop fs -put orc_unpart\/ \/crmdev\/\n2020-04-07 11:34:08,536 INFO util.KerberosUtil: Using principal pattern: HTTP\/_HOST<\/code><\/pre>\n<h5>3\u3001\u5728\u76ee\u6807\u96c6\u7fa4\u521b\u5efa\u5916\u8868\u6307\u5b9alocation\uff0c\u6216\u8005load \u6570\u636e\u5230\u5916\u8868<\/h5>\n<p>\u521b\u5efa\u5916\u8868\u7684\u8bed\u53e5\u4e2dROW FORMAT DELIMITED FIELDS TERMINATED BY &#8216;,&#8217;\u9700\u8981\u4e0eINSERT OVERWRITE DIRECTORY &#8216;\/crmdev\/orc_unpart\/&#8217; ROW FORMAT DELIMITED FIELDS TERMINATED BY &#8216;,&#8217; SELECT * FROM crmdev.orc_unpart;\u4e2d\u7684\u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n<pre><code>CREATE EXTERNAL TABLE crmdev.csv_unpart(\n  group_id int DEFAULT NULL, \n  code string DEFAULT NULL, \n  name string DEFAULT NULL, \n  new_price decimal(8,2) DEFAULT NULL, \n  main_percent decimal(8,2) DEFAULT NULL, \n  today_ranking decimal(8,2) DEFAULT NULL, \n  rise_percent decimal(6,2) DEFAULT NULL, \n  fiveday_percent decimal(8,2) DEFAULT NULL, \n  fiveday_ranking decimal(6,2) DEFAULT NULL, \n  fiveday_rise_percent decimal(5,2) DEFAULT NULL, \n  teneday_percent decimal(8,2) DEFAULT NULL, \n  tenday_ranking decimal(6,2) DEFAULT NULL, \n  tenday_rise_percent decimal(5,2) DEFAULT NULL, \n  guild string DEFAULT NULL, \n  code_id string DEFAULT NULL, \n  data_dt date DEFAULT NULL\n)\nROW FORMAT DELIMITED FIELDS TERMINATED BY ',' \nSTORED AS CSVFILE;<\/code><\/pre>\n<p>\u7136\u540eload \u6570\u636e\u6587\u4ef6\u5230\u5916\u8868\uff08load \u7684\u8fc7\u7a0b\u5c31\u662f\u5c06\/crmdev\/orc_unpart\/ \u4e0b\u7684\u6587\u4ef6\u6570\u636emv \u5230\u8868\u5bf9\u5e94\u7684\u6570\u636e\u8def\u5f84\u4e0b\uff0c\u5e76\u4e0d\u79fb\u52a8\u76ee\u5f55\uff09\uff1a<\/p>\n<pre><code>LOAD DATA INPATH '\/crmdev\/orc_unpart\/' OVERWRITE INTO TABLE crmdev.csv_unpart;<\/code><\/pre>\n<p>\u6216\u8005\u518d\u5efa\u8868\u7684\u65f6\u5019\u76f4\u63a5\u6307\u5b9a location \u5230 HDFS \u6587\u4ef6\u4f4d\u7f6e\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre><code>CREATE EXTERNAL TABLE crmdev.csv_unpart(\n  group_id int DEFAULT NULL, \n  code string DEFAULT NULL, \n  name string DEFAULT NULL, \n  new_price decimal(8,2) DEFAULT NULL, \n  main_percent decimal(8,2) DEFAULT NULL, \n  today_ranking decimal(8,2) DEFAULT NULL, \n  rise_percent decimal(6,2) DEFAULT NULL, \n  fiveday_percent decimal(8,2) DEFAULT NULL, \n  fiveday_ranking decimal(6,2) DEFAULT NULL, \n  fiveday_rise_percent decimal(5,2) DEFAULT NULL, \n  teneday_percent decimal(8,2) DEFAULT NULL, \n  tenday_ranking decimal(6,2) DEFAULT NULL, \n  tenday_rise_percent decimal(5,2) DEFAULT NULL, \n  guild string DEFAULT NULL, \n  code_id string DEFAULT NULL, \n  data_dt date DEFAULT NULL\n)\nROW FORMAT DELIMITED FIELDS TERMINATED BY ',' \nSTORED AS CSVFILE\nLOCATION '\/crmdev\/orc_unpart\/';<\/code><\/pre>\n<p>\u4e25\u7981\u76f4\u63a5\u9488\u5bf9\u8be5HDFS \u6587\u4ef6\u521b\u5efaORC \u8868\uff0c\u540e\u8005load \u5230ORC \u8868\uff0c\u5728 load \u6216\u8005location\u5efa\u8868\u7684\u65f6\u5019\u4e0d\u4f1a\u62a5\u9519\uff0c\u4f46\u662f\u5728\u67e5\u8be2\u7684\u65f6\u5019\u4f1a\u629b\u5f02\u5e38\uff0c\u4f1a\u62a5\u9519format \u9519\u8bef\uff1a<\/p>\n<pre><code>java.io.IOException: Malformed ORC file <\/code><\/pre>\n<h5>4\u3001\u5728\u76ee\u6807\u96c6\u7fa4\u521b\u5efaORC \u975e\u5206\u533a\u666e\u901a\u8868\uff0c\u7136\u540einsert into select<\/h5>\n<p>\u5728\u76ee\u6807\u96c6\u7fa4\u521b\u5efa ORC \u76ee\u6807\u8868\uff1b<\/p>\n<pre><code>CREATE TABLE crmdev.orc_unpart(\n  group_id int DEFAULT NULL, \n  code string DEFAULT NULL, \n  name string DEFAULT NULL, \n  new_price decimal(8,2) DEFAULT NULL, \n  main_percent decimal(8,2) DEFAULT NULL, \n  today_ranking decimal(8,2) DEFAULT NULL, \n  rise_percent decimal(6,2) DEFAULT NULL, \n  fiveday_percent decimal(8,2) DEFAULT NULL, \n  fiveday_ranking decimal(6,2) DEFAULT NULL, \n  fiveday_rise_percent decimal(5,2) DEFAULT NULL, \n  teneday_percent decimal(8,2) DEFAULT NULL, \n  tenday_ranking decimal(6,2) DEFAULT NULL, \n  tenday_rise_percent decimal(5,2) DEFAULT NULL, \n  guild string DEFAULT NULL, \n  code_id string DEFAULT NULL, \n  data_dt date DEFAULT NULL\n)\nSTORED AS ORC;<\/code><\/pre>\n<p>\u7136\u540e INSERT INTO TABLE crmdev.orc_unpart SELECT * FROM crmdev.csv_unpart;\u5c06\u8fc1\u79fb\u8fc7\u6765\u7684\u5916\u8868\u7684\u6570\u636e\u5199\u5165\u5230\u5185\u8868\uff1b<\/p>\n<pre><code>INSERT INTO TABLE crmdev.orc_unpart SELECT * FROM crmdev.csv_unpart;<\/code><\/pre>\n<p>\u81f3\u6b64\uff0csql \u65b9\u5f0f\u8fc1\u79fb ORC \u975e\u5206\u533a\u8868\u5b8c\u6210\uff1b\u7406\u8bba\u4e0a\uff0c\u8fd9\u79cd\u65b9\u5f0f\u652f\u6301\u6240\u6709\u8868\u7684\u8fc1\u79fb\uff1b<\/p>\n<h4>2\u3001\u7b2c\u4e8c\u79cd\uff0cHDFS \u65b9\u5f0f\uff0c\u6b64\u79cd\u65b9\u5f0f\u6700\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e24\u6b65\uff1a<\/h4>\n<ol>\n<li>\u5728\u76ee\u7684\u96c6\u7fa4\u521b\u5efa\u540c\u6837\u7ed3\u6784\u7684\u76ee\u6807\u8868<\/li>\n<li>\n<p>\u5c06\u6e90\u8868\u7684HDFS \u6570\u636e\u6587\u4ef6 copy \u5230\u76ee\u6807\u96c6\u7fa4\u7684\u6570\u636e\u76ee\u5f55\u4e0b<\/p>\n<p>CREATE TABLE crmdev.orc_unpart_hdfs(<br \/>\ngroup_id int DEFAULT NULL,<br \/>\ncode string DEFAULT NULL,<br \/>\nname string DEFAULT NULL,<br \/>\nnew_price decimal(8,2) DEFAULT NULL,<br \/>\nmain_percent decimal(8,2) DEFAULT NULL,<br \/>\ntoday_ranking decimal(8,2) DEFAULT NULL,<br \/>\nrise_percent decimal(6,2) DEFAULT NULL,<br \/>\nfiveday_percent decimal(8,2) DEFAULT NULL,<br \/>\nfiveday_ranking decimal(6,2) DEFAULT NULL,<br \/>\nfiveday_rise_percent decimal(5,2) DEFAULT NULL,<br \/>\nteneday_percent decimal(8,2) DEFAULT NULL,<br \/>\ntenday_ranking decimal(6,2) DEFAULT NULL,<br \/>\ntenday_rise_percent decimal(5,2) DEFAULT NULL,<br \/>\nguild string DEFAULT NULL,<br \/>\ncode_id string DEFAULT NULL,<br \/>\ndata_dt date DEFAULT NULL<br \/>\n)<br \/>\nSTORED AS ORC;<\/p>\n<\/li>\n<\/ol>\n<p>\u5c06\u6e90\u8868\u7684HDFS \u6570\u636e\u6587\u4ef6 get\u4e0b\u6765\uff0c\u5e76scp \u5230\u76ee\u6807\u96c6\u7fa4\u7684\u6570\u636e\u76ee\u5f55\u4e0b<\/p>\n<pre><code>$ hadoop fs -get \/inceptor1\/user\/hive\/warehouse\/crmdev.db\/tableau\/orc_unpart_hdfs\/\n2020-04-07 14:52:40,260 INFO util.KerberosUtil: Using principal pattern: HTTP\/_HOST\n$ scp -r orc_unpart_hdfs\/ 172.22.22.24:\/mnt\/disk1\/crmdev\/<\/code><\/pre>\n<p>\u5728\u76ee\u6807\u96c6\u7fa4\uff0c\u5c06\u6570\u636e\u6587\u4ef6 put \u5230\u76ee\u6807\u96c6\u7fa4\u7684\u8868\u6570\u636e\u76ee\u5f55\u4e0b<\/p>\n<pre><code>$ hadoop fs -put orc_unpart_hdfs\/   hdfs:\/\/nameservice1\/inceptor1\/user\/hive\/warehouse\/crmdev.db\/tableau\/orc_unpart_hdfs\/<\/code><\/pre>\n<p>\u81f3\u6b64\u6570\u636e\u8fc1\u79fb\u5c31\u5b8c\u6210\u4e86\uff1b<\/p>\n<h5>3\u3001\u7b2c\u4e09\u79cd\u65b9\u6cd5\uff0cExport\/Import \u65b9\u5f0f<\/h5>\n<p>Export\/Import \u548c\u7b2c\u4e8c\u79cd\u76f4\u63a5\u64cd\u4f5c HDFS \u6587\u4ef6\u5f88\u50cf\uff0c\u4f46\u662f\u6709\u4e00\u5b9a\u7684\u533a\u522b\uff0cExport\u4f1a\u540c\u6b65\u5bfc\u51fa\u8868\u7684\u5143\u6570\u636e\u4fe1\u606f\uff0c\u6240\u6709\u7684\u8868\u5c5e\u6027\/\u53c2\u6570\u90fd\u5c06\u662f\u7528\u4e8eEXPORT\u751f\u6210\u5b58\u6863\u7684\u8868\u7684\u5c5e\u6027\/\u53c2\u6570\uff1b\u5e76\u4e14\u518dImport \u7684\u65f6\u5019\u4f1a\u6839\u636e\u5143\u6570\u636e\u4fe1\u606f\u91cd\u65b0\u6784\u5efa\u8868\u7ed3\u6784\uff0c\u5982\u679c\u76ee\u6807\u5b58\u5728\uff0c\u5219\u68c0\u67e5\u5b83\u662f\u5426\u5177\u6709\u9002\u5f53\u7684\u67b6\u6784\uff0cInput \/ OutputFormat\u7b49\u3002\u5982\u679c\u76ee\u6807\u8868\u5b58\u5728\u4e14\u672a\u5206\u533a\uff0c\u5219\u5b83\u5fc5\u987b\u4e3a\u7a7a\u3002\u5982\u679c\u76ee\u6807\u8868\u5b58\u5728\u5e76\u4e14\u5df2\u5206\u533a\uff0c\u5219\u8868\u4e2d\u4e0d\u80fd\u5b58\u5728\u8981\u5bfc\u5165\u7684\u5206\u533a\u3002<\/p>\n<pre><code>EXPORT TABLE crmdev.orc_unpart_export TO '\/crmdev\/orc_unpart_export\/';<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\u6709\u4e2a_metadata\uff0cjson \u683c\u5f0f\u7684\uff0c\u4fdd\u5b58\u4e86\u8868\u7684\u5143\u6570\u636e\u4fe1\u606f\uff1a<\/p>\n<pre><code>$ ll orc_unpart_export\/\n\u603b\u7528\u91cf 8\ndrwxr-xr-x 2 root root 4096 4\u6708   7 16:12 data\n-rw-r--r-- 1 root root 3086 4\u6708   7 16:12 _metadata<\/code><\/pre>\n<p>\u5c06\u6570\u636e\u76ee\u5f55\u548c\u6587\u4ef6 scp \u5230\u76ee\u6807\u96c6\u7fa4\uff0c\u5e76\u4e0a\u4f20\u5230 HDFS \u4e0a\uff1b<\/p>\n<pre><code>$ hadoop fs -put orc_unpart_export\/ \/crmdev\/\n2020-04-07 16:18:39,851 INFO util.KerberosUtil: Using principal pattern: HTTP\/_HOST<\/code><\/pre>\n<p>\u5728\u76ee\u6807\u96c6\u7fa4\uff0c\u6267\u884c Import \uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cimport \u8bed\u53e5\u53ea\u80fd\u5199\u5230\u5f53\u524d\u6570\u636e\u5e93\u7684\u8868\u4e2d\uff0c\u4e0d\u652f\u6301database_name.table_name\uff1b<\/p>\n<p>IMPORT\u5982\u679c\u76ee\u6807\u8868\/\u5206\u533a\u4e0d\u5b58\u5728\uff0c\u5b83\u5c06\u521b\u5efa\u76ee\u6807\u8868\/\u5206\u533a\u3002<\/p>\n<pre><code>USE crmdev;\nIMPORT TABLE orc_unpart_export FROM '\/crmdev\/orc_unpart_export\/';<\/code><\/pre>\n<p>\u8de8\u5927\u7248\u672c\u7684Export \/Import \u662f\u4e0d\u652f\u6301\u7684\uff0c\u5b9e\u9645\u6d4b\u8bd5\uff0c5.2 \u52305.2.3\u53ef\u884c\uff0c5.2 \u5230 6.2 \u4e0d\u53ef\u884c<\/p>\n<pre><code>2020-04-07 16:38:39,334 ERROR inceptor.InceptorDriver: (Logging.scala:logError(75)) [HiveServer2-Handler-Pool: Thread-300(SessionHandle=9d8e86f5-f7a6-4dff-a365-97791785a14f)] - COMPILE FAILED: Semantic error: [Error 40000] Exception while processing: Error in serializing metadata\norg.apache.hadoop.hive.ql.parse.SemanticException: Exception while processing: Error in serializing metadata\n        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)\n        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)\n        at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)\n        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n        at java.lang.Thread.run(Thread.java:748)\nCaused by: org.json.JSONException: JSONObject[\"partitions\"] not a string.\n        at org.json.JSONObject.getString(JSONObject.java:722)\n        at org.apache.hadoop.hive.ql.parse.EximUtil.readMetaData(EximUtil.java:222)\n        ... 24 more<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u8bf4\u660e \u9762\u5bf9\u4e00\u4e9b\u91cd\u8981\u6570\u636e\uff0c\u5f88\u591a\u573a\u666f\u4e0b\u90fd\u9700\u8981\u5c06\u6570\u636e\u4ed3\u5e93\u8fdb\u884c\u590d\u5236\uff0c\u8fd9\u53ef\u4ee5\u662f\u6574\u4e2a\u6570\u636e\u5e93\u7684\u66f4\u5e7f\u6cdb\u7ea7\u522b\uff0c\u4e5f\u53ef\u4ee5\u662f\u8f83\u5c0f\u7684 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=2791\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2791","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\/2791","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2791"}],"version-history":[{"count":1,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/2791\/revisions"}],"predecessor-version":[{"id":2807,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/2791\/revisions\/2807"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}