{"id":5899,"date":"2021-06-17T10:29:45","date_gmt":"2021-06-17T02:29:45","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=5899"},"modified":"2021-06-17T10:29:44","modified_gmt":"2021-06-17T02:29:44","slug":"yarn%e4%b8%8acompact%e5%a4%b1%e8%b4%a5%e6%8a%a5%e9%94%99failed-to-create_file-path-on-ip-because-this-file-lease-is-currently-owned-by-dfsclient_xx","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=5899","title":{"rendered":"compact \u5931\u8d25\u62a5\u9519 this file lease is currently owned by DFSClient_xx"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<p>\u672c\u6587\u63cf\u8ff0\u51fa\u73b0 orc \u4e8b\u52a1\u8868\u5728 yarn \u4e0a\u5408\u5e76\u5931\u8d25\u51fa\u73b0\u7c7b\u4f3c\u62a5\u9519\u201cFailed to CREATE_FILE [path] on [ip] because this file lease is currently owned by DFSClient_xx\u201d \u7684\u5904\u7406\u65b9\u6cd5<\/p>\n<hr \/>\n<h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<p>\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u4e00\u822c\u662f\u56e0\u4e3a hadoop \u6709 lease \u673a\u5236\uff0c\u907f\u514d\u540c\u65f6\u5199\u5165\u540c\u4e00\u4e2a\u6587\u4ef6\uff1b<\/p>\n<hr \/>\n<h4>\u95ee\u9898\u63cf\u8ff0<\/h4>\n<p>orc\u4e8b\u52a1\u8868\u7684compact\u4efb\u52a1\u63d0\u4ea4\u5230YARN\u4e0a\u51fa\u73b0\u5982\u4e0b\u7c7b\u4f3c\u62a5\u9519\uff1a\u5177\u4f53\u7684\u62a5\u9519\u4fe1\u606f\u5728\u5176\u4ed6\u573a\u666f\u7c7b\u4f3c\uff1a<\/p>\n<pre><code class=\"language-shell\">2019-10-23 14:55:37,680 FATAL [IPC Server handler 20 on 45299] org.apache.hadoop.mapred.TaskAttemptListenerImpl: Task: attempt_1571800374156_0269_m_000000_1 - exited : org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException): Failed to CREATE_FILE \/inceptor1\/user\/hive\/warehouse\/myjob.db\/my170502266\/ddcr_zhibiao04\/tmp_aaa5b75e-af4c-4c56-83bc-b2fc6e24ae60\/base_3773807\/bucket_00004 for DFSClient_attempt_1571800374156_0269_m_000000_1-245523098_1 on 10.106.20.25 because this file lease is currently owned by DFSClient_attempt_1571800374156_0269_m_000000_0_-1328809537_1 on 10.106.20.15<\/code><\/pre>\n<h4>\u95ee\u9898\u539f\u56e0<\/h4>\n<p>\u4e00\u822c\u8fd9\u4e2a\u60c5\u51b5\u591a\u51fa\u73b0\u5728\u8868\u6570\u636e\u503e\u659c\u65f6\uff0c\u4e14\u9700\u8981 compact \u65f6\u5bfc\u81f4\u7684\u3002orc \u4e8b\u52a1\u8868\uff0c\u53ef\u4ee5\u5728 hdfs \u7684\u5bf9\u5e94 location \u4e0a\u89c2\u5bdf\u4e00\u4e0b\u662f\u5426\u51fa\u73b0\u4e86\u6570\u636e\u503e\u659c\u3002<br \/>\n\u5f53\u51fa\u73b0\u6570\u636e\u503e\u659c\u65f6\uff0cmapreduce \u9636\u6bb5\u4f1a\u51fa\u73b0\u6389\u961f\u8005\uff0c\u6389\u961f\u8005\u662f\u6307\u90a3\u4e9b\u8dd1\u7684\u5f88\u6162\u4f46\u662f\u6700\u7ec8\u53ef\u4ee5\u6267\u884c\u6210\u529f\u7684\u4efb\u52a1\u3002\u6b64\u65f6 mapreduce \u7684\u63a8\u6d4b\u673a\u5236\u4f1a\u751f\u6548\uff0c\u53ef\u4ee5\u8bc6\u522b\u90a3\u4e9b\u8dd1\u7684\u4efb\u52a1\u6bd4\u8f83\u6162\u7684\u4efb\u52a1\uff0c\u4f46\u662f\u4e0d\u4f1a\u6e05\u7406\u6389\u961f\u8005\u7684\u4efb\u52a1\uff0c\u800c\u662f\u4f1a\u4ea7\u751f\u53e6\u4e00\u4e2a\u7b49\u6548\u7684\u4efb\u52a1\u4f5c\u4e3a\u5907\u4efd\uff0c\u5e76\u4f7f\u7528\u9996\u5148\u5b8c\u6210\u7684\u90a3\u4e2a\u4efb\u52a1\u7684\u7ed3\u679c\uff0c\u8fd9\u79cd\u6280\u672f\u79f0\u4e3a\u63a8\u6d4b\u6267\u884c\uff08speculative execution\uff09\u3002<br \/>\n\u8fd9\u79cd\u673a\u5236\u662f\u4e3a\u4e86\u4fdd\u8bc1 mapreduce \u7684\u6267\u884c\u6548\u7387\uff0c\u4f46\u662f\u5f53\u64cd\u4f5c hdfs \u6587\u4ef6\u65f6\uff0c\u5982\u679c\u51fa\u73b0\u540c\u65f6\u5199\u64cd\u4f5c\uff0chdfs \u7684 lease \u7ba1\u7406\u5458\u662f\u4e0d\u5141\u8bb8\u540c\u65f6\u88ab\u4e24\u4e2a\u5199\u5165\u7a0b\u5e8f\u5360\u7528\u7684\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>\u5173\u95ed yarn \u4e0a\u7684 mapreduce \u7684\u63a8\u6d4b\u6267\u884c\uff08speculative execution\uff09\uff1b<br \/>\nyarn \u914d\u7f6e\u9875\u9762\uff0c\u6dfb\u52a0\u81ea\u5b9a\u4e49\u53c2\u6570 mapreduce.map.speculative \uff0c\u503c\u8bbe\u7f6e\u4e3a false\uff0c\u7136\u540e\u914d\u7f6e\u670d\u52a1\u91cd\u542f\u4e00\u4e0b yarn \u548c inceptor\uff0c\u91cd\u65b0\u6267\u884c compact \u5373\u53ef\uff1b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u672c\u6587\u63cf\u8ff0\u51fa\u73b0 orc \u4e8b\u52a1\u8868\u5728 yarn \u4e0a\u5408\u5e76\u5931\u8d25\u51fa\u73b0\u7c7b\u4f3c\u62a5\u9519\u201cFailed to CREATE_ ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=5899\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5899","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\/5899","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\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5899"}],"version-history":[{"count":1,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/5899\/revisions"}],"predecessor-version":[{"id":6053,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/5899\/revisions\/6053"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}