{"id":8117,"date":"2022-04-13T17:26:52","date_gmt":"2022-04-13T09:26:52","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=8117"},"modified":"2024-12-05T15:24:10","modified_gmt":"2024-12-05T07:24:10","slug":"namenode%e5%90%af%e5%8a%a8%e6%8a%a5%e9%94%99%ef%bc%9acurrent-license-does-notcontain-the-serverkey-of-this-node","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=8117","title":{"rendered":"namenode\u542f\u52a8\u62a5\u9519\uff1acurrent license does notcontain the serverkey of this node"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>\u672c\u6587\u6863\u662f\u9488\u5bf9 <code>manager 8.0<\/code> \u53ca\u4ee5\u4e0a\u7248\u672c\u5728\u66ff\u6362\u4e86\u8bb8\u53ef\u8bc1\u4e4b\u540e\uff0c\u91cd\u542fhdfs\u65f6namenode\u62a5\u9519\uff1a<strong>Cannot start namenode because current license does notcontain the serverkey of this node\uff01<\/strong> \u95ee\u9898\u5904\u7406\u5efa\u8bae\u3002<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<ol>\n<li>\n<p>\u5728\u4f7f\u7528\u8be5\u6587\u6863\u6392\u67e5\u524d\u8bf7\u5148\u786e\u8ba4\u8bb8\u53ef\u8bc1\u6240\u5bf9\u5e94\u7684serverkey\u672c\u8eab\u662f\u6ca1\u95ee\u9898\u7684\u3002<\/p>\n<\/li>\n<li>\n<p>\u67e5\u770bnamenode\u65e5\u5fd7\u62a5\u9519\u4fe1\u606f\u4e3a\uff1a<code>Cannot start namenode because current license does notcontain the serverkey of this node\uff01<\/code><\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/04\/image-1649841079453.png\" alt=\"file\" \/><\/p>\n<\/li>\n<li>\n<p>\u67e5\u770bmanager\u7684sk\u5305\u548chdfs\u955c\u50cf\u4e2dsk\u5305\u7248\u672c\u662f\u5426\u4e00\u81f4<\/p>\n<p>1\uff09\u5728manager\u8282\u70b9\u67e5\u770bsk\u5305\u7248\u672c<\/p>\n<pre><code class=\"language-shell\">ll \/usr\/lib\/transwarp-manager\/common\/lib\/sk-*.jar<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/04\/image-1649841509728.png\" alt=\"file\" \/><\/p>\n<p>2\uff09\u8fdb\u5230\u4efb\u610fhdfs journal \u7684pod\u5185\u67e5\u770bsk\u5305\u7248\u672c<\/p>\n<pre><code class=\"language-shell\">ll \/usr\/lib\/hadoop\/lib\/sk*.jar<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/04\/image-1649841400098.png\" alt=\"file\" \/><\/p>\n<p>3\uff09\u6839\u636e\u4e0a\u8ff0\u4e24\u6b65\u53ef\u4ee5\u770b\u5230manager\u4f7f\u7528\u7684\u662f sk-1.0.0jar\uff0chdfs\u955c\u50cf\u4f7f\u7528\u7684\u662fsk-0.0.1.jar\uff0c\u4e24\u4e2a\u7248\u672c\u662f\u4e0d\u4e00\u81f4\u7684\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728manager\u8282\u70b9\u6267\u884c\u5347\u7ea7\u811a\u672c\uff0c\u5c06hdfs \u955c\u50cf\u7684sk\u5305\u7248\u672c\u5347\u7ea7\u4e3a1.0.0<\/p>\n<pre><code class=\"language-shell\">sh \/usr\/lib\/transwarp-manager\/master\/scripts\/serverkey\/update_serverkey_version.sh<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/04\/image-1649841771014.png\" alt=\"file\" \/><\/p>\n<\/li>\n<li>\n<p>\u811a\u672c\u5347\u7ea7\u6210\u529f\u4e4b\u540e\uff0c\u91cd\u542fhdfs\u5373\u53ef\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u8865\u5145\u8bf4\u660e<\/h3>\n<hr \/>\n<p>\u5982\u679c\u96c6\u7fa4\u4e2d\u7684\u670d\u52a1\u5668\u7684\u67b6\u6784\u65e2\u6709x86\u4e5f\u6709arm\uff0c\u90a3\u4e48\u5347\u7ea7sk\u5305\u7248\u672c\u540e\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4arm\u67b6\u6784\u670d\u52a1\u5668\u4e0a\u7684\u89d2\u8272\u65e0\u6cd5\u542f\u52a8\uff0c\u72b6\u6001\u4e3aCrashLoopBackOff\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u90e8\u5206hdfs datanode pod\u7684\u72b6\u6001\u4e3aCrashLoopBackOff\uff0c\u6267\u884ckubectl logs\u547d\u4ee4\u67e5\u770bpod\u65e5\u5fd7\u65f6\u4f1a\u63d0\u793a\uff1astandard_init_linux.go:228: exec user process caused: exec format error\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/04\/image-1733383299384.png\" alt=\"file\" \/><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<br \/>\n\u5728manger\u9875\u9762\u4e0a\u91cd\u65b0\u4e0a\u4f20arm\u7248\u672c\u7684TDH\u4ea7\u54c1\u5305\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u672c\u6587\u6863\u662f\u9488\u5bf9 manager 8.0 \u53ca\u4ee5\u4e0a\u7248\u672c\u5728\u66ff\u6362\u4e86\u8bb8\u53ef\u8bc1\u4e4b\u540e\uff0c\u91cd\u542fhdfs\u65f6namenode\u62a5 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=8117\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-8117","post","type-post","status-publish","format-standard","hentry","category-start_failed"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8117","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\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8117"}],"version-history":[{"count":4,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8117\/revisions"}],"predecessor-version":[{"id":17020,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8117\/revisions\/17020"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}