{"id":371174,"date":"2024-05-21T04:42:04","date_gmt":"2024-05-21T04:42:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=371174"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=371174","title":{"rendered":"<span>\u0418\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Cockroach DB \u0434\u043e Enterprise \u0438\u043b\u0438 \u043d\u0435 \u0441\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0445\u0430\u0440\u0434-\u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0411\u043e\u0433\u0434\u0430\u043d \u043c\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c &#8212; java-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430, \u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0431\u0443\u0434\u043d\u044f\u0445 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u043e\u043a\u043b\u043e\u0434\u0436\u0430\u0432\u043e\u0432\u044b\u0445 \u0448\u0442\u0443\u043a\u0430\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0432 \u0441\u0432\u043e\u0435\u043c <a href=\"https:\/\/t.me\/umenyarabotaet\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u043a\u0430\u043d\u0430\u043b\u0435<\/a>, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0435 \u043e java, \u043d\u0443 \u0432\u0435\u0440\u043d\u0435\u0435 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u043e \u043d\u0435\u0439 \ud83d\ude42<\/p>\n<p><em>\u0414\u0418\u0421\u041a\u041b\u0415\u0419\u041c\u0415\u0420: \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0441 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0438 \u043d\u0435 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u043e\u0442\u0438\u0432\u043e\u0432, \u0430\u043d\u0430\u043b\u0438\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u043e\u0432, \u0432\u0441\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0432\u044b\u043c\u044b\u0448\u043b\u0435\u043d\u044b, \u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b.<\/em><\/p>\n<p><strong>\u041f\u0440\u043e\u043b\u043e\u0433. <\/strong><\/p>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e java \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0431\u0430\u0439\u0442-\u043a\u043e\u0434, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u043e\u0433\u0430\u0442\u044b \u043c\u0435\u0442\u0430-\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 \u0447\u0442\u043e \u0432 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c java-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 java-\u043a\u043e\u0434. \u0421\u043c\u043e\u0442\u0440\u044f \u0432 \u043e\u043a\u043e\u0448\u043a\u043e \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0433\u043e java-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u0442\u0440\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438, \u043d\u0435\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0445\u043c\u044b\u043b\u044f\u0435\u0448\u044c\u0441\u044f: \u0437\u043d\u0430\u044e \u044f, \u0435\u0441\u0442\u044c \u0437\u0430\u0432\u0435\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0442\u0432\u043e\u0435\u043c \u043a\u043e\u0434\u0435, \u0434\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0434\u043e\u043b\u0433\u043e, \u0434\u0430, \u0435\u0441\u0442\u044c \u043e\u0431\u0444\u0443\u0441\u043a\u0430\u0446\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0441 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0442.\u0434., \u043d\u043e&#8230; \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u0435\u0442 \u0430\u0433\u043e\u043d\u0438\u044e \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u044b \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u043d\u0430 \u043d\u0435 \u0431\u0438\u0437\u043d\u0435\u0441\u043e\u0432\u044b\u0439 \u043a\u043e\u0434, \u0441\u043b\u043e\u0432\u043e\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442, \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0432\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e. \u041d\u043e \u043a\u0430\u043a \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u0434\u0435\u043b\u0430 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0430\u0445 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0445\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u044c? \u0421\u043f\u043e\u0439\u043b\u0435\u0440.. \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0442\u0430\u043a \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0435 \u0443\u0437\u043d\u0430\u0435\u043c =).<\/p>\n<p><strong>\u0413\u0440\u044f\u0437\u043d\u044b\u0435 \u0442\u0430\u043d\u0446\u044b.<\/strong><\/p>\n<p>\u041d\u0443 \u0447\u0442\u043e \u0436, \u0432\u043e\u043b\u0435\u044e \u0441\u0443\u0434\u0435\u0431 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u043c \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d Cockroach DB, \u0430 \u0432\u0435\u0440\u043d\u0435\u0435 \u0435\u0433\u043e <a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/enterprise-licensing\" rel=\"noopener noreferrer nofollow\">Enterprise \u0447\u0430\u0441\u0442\u044c<\/a>, \u0435\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0418\u0437 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0444\u0444 \u0441\u0430\u0439\u0442\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u0440\u0430\u043a\u0430\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Go \u0438<a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/get-started-with-enterprise-trial\" rel=\"noopener noreferrer nofollow\"> \u043a\u043b\u044e\u0447 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0434\u043b\u044f Cockroach DB \u0432\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f SQL \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/a>:<\/p>\n<pre><code>SET CLUSTER SETTING enterprise.license = 'xxxxxxxxxxxx';<\/code><\/pre>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c <a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/start-a-local-cluster-in-docker-windows\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0411\u0414<\/a> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043b\u0438 Enterprise \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f Cockroach DB \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043e\u0442 \u0432\u0435\u043d\u0434\u043e\u0440\u0430, \u0441\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0411\u0414 \u043e\u043f\u0443\u0441\u043a\u0430\u044e. \u041e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2af\/699\/c5a\/2af699c5a4b2d063e02cd19d2de14713.png\" width=\"1294\" height=\"602\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2af\/699\/c5a\/2af699c5a4b2d063e02cd19d2de14713.png\"\/><\/figure>\n<p>\u041d\u0443 \u0438 \u043b\u0430\u0434\u043d\u043e, \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e, \u0437\u0430\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0442\u0430\u043a\u0438 \u0435\u0441\u0442\u044c \u0438 \u0443\u0441\u043f\u0435\u0445 &#8212; \u0442\u043e\u0447\u043d\u043e \u0443\u0441\u043f\u0435\u0445 :D. <\/p>\n<p>\u041e\u043a\u0435\u0439, \u0435\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435, \u043d\u0430 \u043e\u0444\u0444 \u0441\u0430\u0439\u0442\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0433\u0438\u0442<\/a>, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0438\u0449\u0435\u043c \u043f\u043e \u0444\u0440\u0430\u0437\u0435 <em>&#171;invalid license string&#187;<\/em>, \u043d\u0443 \u0430 \u0432\u0434\u0440\u0443\u0433&#8230; \u0418 \u0434\u0430, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b\u0438\u043a \u0441 \u0432\u043e\u043e\u0434\u0443\u0448\u0435\u0432\u043b\u044f\u044e\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/blob\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/license_check.go#L66\" rel=\"noopener noreferrer nofollow\">license_check.go<\/a>, \u0445\u043c\u0445\u043c\u0445\u043c, \u043d\u0443 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0432\u0441\u0435 \u0431\u044b\u0442\u044c \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e? \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432 Go \u043f\u043e\u0441\u043b\u0435 6 \u043b\u0435\u0442 \u043e\u043d\u043b\u0438\u0434\u0436\u0430\u0432\u0430 \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u043a\u0432\u043e\u0437\u044c \u0442\u0440\u0438 \u0441\u043b\u043e\u044f \u043c\u0443\u0442\u043d\u043e\u0433\u043e \u0446\u0435\u043b\u043e\u0444\u0430\u043d\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u043c\u043d\u043e\u0442\u0443, \u043d\u0443 \u0434\u0430 \u043b\u0430\u0434\u043d\u043e, \u0437\u0430\u0432\u0430\u0440\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u0439 \u0438 \u043a\u043e\u0432\u044b\u0440\u044f\u0435\u043c, \u0432 \u043a\u043e\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0447\u0442\u043e \u0441\u044e\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043b\u044e\u0447 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 base64, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u0434\u0435\u043a\u043e\u0434\u0438\u043d\u0433\u0430 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442, \u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 licenseccl.License:<\/p>\n<pre><code>\/\/ decode attempts to read a base64 encoded License. func decode(s string) (*licenseccl.License, error) { ... ... } \/\/ getLicense fetches the license from the given settings, using Settings.Cache \/\/ to cache the decoded license (if any). The returned license must not be \/\/ modified by the caller. func getLicense(st *cluster.Settings) (*licenseccl.License, error) { str := enterpriseLicense.Get(&amp;st.SV) if str == \"\" { return nil, nil } cacheKey := licenseCacheKey(str) if cachedLicense, ok := st.Cache.Load(cacheKey); ok { return cachedLicense.(*licenseccl.License), nil } license, err := decode(str) if err != nil { return nil, err } st.Cache.Store(cacheKey, license) return license, nil } <\/code><\/pre>\n<p>\u0412\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043a\u043b\u0430\u0441\u0441 <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/blob\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/licenseccl\/license.go\" rel=\"noopener noreferrer nofollow\">licenseccl.License<\/a>, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u0434:<\/p>\n<pre><code>\/\/ Decode attempts to read a base64 encoded License. func Decode(s string) (*License, error) { if s == \"\" { return nil, nil } if !strings.HasPrefix(s, LicensePrefix) { return nil, errors.New(\"invalid license string\") } s = strings.TrimPrefix(s, LicensePrefix) data, err := base64.RawStdEncoding.DecodeString(s) if err != nil { return nil, errors.Wrapf(err, \"invalid license string\") } var lic License if err := protoutil.Unmarshal(data, &amp;lic); err != nil { return nil, errors.Wrap(err, \"invalid license string\") } return &amp;lic, nil }<\/code><\/pre>\n<p>\u0418\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0432 base64 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0431\u0430\u0439\u0442\u044b \u043d\u0435\u043a\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e protobuf, <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/tree\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/licenseccl\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 proto \u0444\u0430\u0439\u043b\u0430<\/a> \u043b\u0435\u0436\u0438\u0442 \u0440\u044f\u0434\u043e\u043c, \u0432 \u043d\u0435\u043c \u0432\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439, etc., \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0443 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e?! <\/p>\n<pre><code>message License {     reserved 1;     int64 valid_until_unix_sec = 2;      enum Type {       NonCommercial = 0;       Enterprise = 1;       Evaluation = 2;     }      Type type = 3;      string organization_name = 4;      enum Usage {       option (gogoproto.goproto_enum_prefix) = false;       option (gogoproto.goproto_enum_stringer) = false;        Unspecified = 0;       Production = 1;       PreProduction = 2;       Development = 3;     }      Usage usage = 5; }<\/code><\/pre>\n<p>\u041d\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0433\u0434\u0435-\u0442\u043e \u0442\u0430\u043c, \u0432\u044b\u0448\u0435 \u043f\u043e \u0441\u0442\u0435\u043a\u0443 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0432\u0432\u043e\u0434\u0438\u043c\u0430\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\/\u0438\u043b\u0438 \u0432\u0435\u0440\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0435\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u044d\u0442\u043e\u0442 base64 \u043f\u0440\u0438\u0435\u0437\u0436\u0430\u0435\u0442 \u0441\u044e\u0434\u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435? \u041d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e?!! \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043f\u0438\u0448\u0435\u043c \u043d\u0430 java \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442 proto \u0441\u0445\u0435\u043c\u0443 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0437\u0430\u0432\u0435\u0440\u043d\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u0431\u0440\u043e \u0432 base64, \u043d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441 \u043f\u043e\u0441\u043b\u0430\u043b \u0440\u0430\u043d\u0435\u0435 \u043d\u043e \u0443\u0436\u0435 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0435\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/958\/613\/85e\/95861385e1710d6c09774f35e038b5eb.png\" width=\"2556\" height=\"654\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/958\/613\/85e\/95861385e1710d6c09774f35e038b5eb.png\"\/><\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043b\u044e\u0447 \u0442\u0430\u0440\u0430\u043a\u0430\u043d \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u043b, \u043d\u043e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/blob\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/licenseccl\/license.go\" rel=\"noopener noreferrer nofollow\">licenseccl.License<\/a> \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0434\u0435\u043a\u043e\u0434\u0438\u043d\u0433\u043e\u043c base64, \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 &#171;crl-0-&#171;, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u043a \u0441\u0433\u0435\u043d\u0435\u0440\u0435\u043d\u043d\u043e\u043c\u0443 base64 \u0442\u0430\u0440\u0430\u043a\u0430\u043d \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0436\u0435\u0432\u0430\u043b \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u043e\u043f\u0435\u0440\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c.<\/p>\n<p><strong>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435.<\/strong><\/p>\n<p>\u041c\u043e\u0440\u0430\u043b\u044c \u0441\u0435\u0439 \u0431\u0430\u0441\u043d\u0438 \u0442\u0430\u043a\u043e\u0432\u0430, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u043f\u043d\u0443\u0442\u044c \u043d\u0435 \u0432 \u0433\u043b\u0443\u0431\u044c, \u0430 \u0447\u0443\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u0435\u0448\u044c\u0441\u044f \u0432 \u043a\u0440\u044b\u0448\u043a\u0443 \u0441\u0443\u043d\u0434\u0443\u043a\u0430, \u043d\u0443 \u0438\u043b\u0438 \u0432\u043f\u0440\u044b\u0433\u043d\u0435\u0448\u044c \u043e\u0431\u0435\u0438\u043c\u0438 \u043d\u043e\u0433\u0430\u043c\u0438 \u0432 \u0436\u0438\u0440, \u0442\u0443\u0442 \u0443\u0436 \u043a\u0430\u043a \u043f\u043e\u0432\u0435\u0437\u0435\u0442 =)<\/p>\n<p>\u041a\u043e\u0434 \u043a\u0435\u0439\u0433\u0435\u043d\u0430 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0443\u0442 \u043d\u0435 \u0431\u0443\u0434\u0443, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0432 \u0442\u0435\u043b\u0435\u0433\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u0442\u043e-\u0442\u043e \u0435\u0433\u043e \u0437\u0430\u043d\u043e\u0432\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438 \u0443\u0436\u0435 \u0432\u044b\u043b\u043e\u0436\u0438\u043b.<\/p>\n<p>P.S. \u044d\u0442\u043e\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 \u043c\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0438 \u0441 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u043c \u041d\u0438\u043a\u0438\u0442\u043e\u0439, \u041d\u0438\u043a\u0438\u0442\u0430 \u0442\u0435\u0431\u0435 \u0440\u0435\u0441\u043f\u0435\u043a\u0442, \u0441\u043b\u0430\u0432\u043d\u0430\u044f \u0431\u044b\u043b\u0430 \u043e\u0445\u043e\u0442\u0430, \u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u0440\u0430\u0441\u043a\u043e\u0432\u044b\u0440\u044f\u043b \u0431\u044b \u0442\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/801185\/\"> https:\/\/habr.com\/ru\/articles\/801185\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0411\u043e\u0433\u0434\u0430\u043d \u043c\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c &#8212; java-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430, \u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0431\u0443\u0434\u043d\u044f\u0445 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u043e\u043a\u043b\u043e\u0434\u0436\u0430\u0432\u043e\u0432\u044b\u0445 \u0448\u0442\u0443\u043a\u0430\u0445 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0432 \u0441\u0432\u043e\u0435\u043c <a href=\"https:\/\/t.me\/umenyarabotaet\" rel=\"noopener noreferrer nofollow\">\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u043a\u0430\u043d\u0430\u043b\u0435<\/a>, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043d\u0435 \u043e java, \u043d\u0443 \u0432\u0435\u0440\u043d\u0435\u0435 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u043e \u043d\u0435\u0439 \ud83d\ude42<\/p>\n<p><em>\u0414\u0418\u0421\u041a\u041b\u0415\u0419\u041c\u0415\u0420: \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0441 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0438 \u043d\u0435 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u043e\u0442\u0438\u0432\u043e\u0432, \u0430\u043d\u0430\u043b\u0438\u0437 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u043e\u0432, \u0432\u0441\u0435 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0438 \u0432\u044b\u043c\u044b\u0448\u043b\u0435\u043d\u044b, \u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b.<\/em><\/p>\n<p><strong>\u041f\u0440\u043e\u043b\u043e\u0433. <\/strong><\/p>\n<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e java \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0431\u0430\u0439\u0442-\u043a\u043e\u0434, \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u043e\u0433\u0430\u0442\u044b \u043c\u0435\u0442\u0430-\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u0438 \u0447\u0442\u043e \u0432 \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c java-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 java-\u043a\u043e\u0434. \u0421\u043c\u043e\u0442\u0440\u044f \u0432 \u043e\u043a\u043e\u0448\u043a\u043e \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0433\u043e java-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u0442\u0440\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438, \u043d\u0435\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0445\u043c\u044b\u043b\u044f\u0435\u0448\u044c\u0441\u044f: \u0437\u043d\u0430\u044e \u044f, \u0435\u0441\u0442\u044c \u0437\u0430\u0432\u0435\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0442\u0432\u043e\u0435\u043c \u043a\u043e\u0434\u0435, \u0434\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0434\u043e\u043b\u0433\u043e, \u0434\u0430, \u0435\u0441\u0442\u044c \u043e\u0431\u0444\u0443\u0441\u043a\u0430\u0446\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0441 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0442.\u0434., \u043d\u043e&#8230; \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u043b\u0435\u0432\u0430\u0435\u0442 \u0430\u0433\u043e\u043d\u0438\u044e \u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u044b \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u043d\u0430 \u043d\u0435 \u0431\u0438\u0437\u043d\u0435\u0441\u043e\u0432\u044b\u0439 \u043a\u043e\u0434, \u0441\u043b\u043e\u0432\u043e\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442, \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0432\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e. \u041d\u043e \u043a\u0430\u043a \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u0434\u0435\u043b\u0430 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0430\u0445 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0445\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u044c? \u0421\u043f\u043e\u0439\u043b\u0435\u0440.. \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0442\u0430\u043a \u044d\u0442\u043e\u0433\u043e \u0438 \u043d\u0435 \u0443\u0437\u043d\u0430\u0435\u043c =).<\/p>\n<p><strong>\u0413\u0440\u044f\u0437\u043d\u044b\u0435 \u0442\u0430\u043d\u0446\u044b.<\/strong><\/p>\n<p>\u041d\u0443 \u0447\u0442\u043e \u0436, \u0432\u043e\u043b\u0435\u044e \u0441\u0443\u0434\u0435\u0431 \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u043e\u043c \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d Cockroach DB, \u0430 \u0432\u0435\u0440\u043d\u0435\u0435 \u0435\u0433\u043e <a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/enterprise-licensing\" rel=\"noopener noreferrer nofollow\">Enterprise \u0447\u0430\u0441\u0442\u044c<\/a>, \u0435\u0433\u043e \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435. \u0418\u0437 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0444\u0444 \u0441\u0430\u0439\u0442\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u0440\u0430\u043a\u0430\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Go \u0438<a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/get-started-with-enterprise-trial\" rel=\"noopener noreferrer nofollow\"> \u043a\u043b\u044e\u0447 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0434\u043b\u044f Cockroach DB \u0432\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f SQL \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/a>:<\/p>\n<pre><code>SET CLUSTER SETTING enterprise.license = 'xxxxxxxxxxxx';<\/code><\/pre>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c <a href=\"https:\/\/www.cockroachlabs.com\/docs\/v23.2\/start-a-local-cluster-in-docker-windows\" rel=\"noopener noreferrer nofollow\">\u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0411\u0414<\/a> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043b\u0438 Enterprise \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f Cockroach DB \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043e\u0442 \u0432\u0435\u043d\u0434\u043e\u0440\u0430, \u0441\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0411\u0414 \u043e\u043f\u0443\u0441\u043a\u0430\u044e. \u041e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0443 \u0438 \u043b\u0430\u0434\u043d\u043e, \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e, \u0437\u0430\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0442\u0430\u043a\u0438 \u0435\u0441\u0442\u044c \u0438 \u0443\u0441\u043f\u0435\u0445 &#8212; \u0442\u043e\u0447\u043d\u043e \u0443\u0441\u043f\u0435\u0445 :D. <\/p>\n<p>\u041e\u043a\u0435\u0439, \u0435\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435, \u043d\u0430 \u043e\u0444\u0444 \u0441\u0430\u0439\u0442\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0433\u0438\u0442<\/a>, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0438\u0449\u0435\u043c \u043f\u043e \u0444\u0440\u0430\u0437\u0435 <em>&#171;invalid license string&#187;<\/em>, \u043d\u0443 \u0430 \u0432\u0434\u0440\u0443\u0433&#8230; \u0418 \u0434\u0430, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b\u0438\u043a \u0441 \u0432\u043e\u043e\u0434\u0443\u0448\u0435\u0432\u043b\u044f\u044e\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/blob\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/license_check.go#L66\" rel=\"noopener noreferrer nofollow\">license_check.go<\/a>, \u0445\u043c\u0445\u043c\u0445\u043c, \u043d\u0443 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0432\u0441\u0435 \u0431\u044b\u0442\u044c \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e? \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432 Go \u043f\u043e\u0441\u043b\u0435 6 \u043b\u0435\u0442 \u043e\u043d\u043b\u0438\u0434\u0436\u0430\u0432\u0430 \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u043a\u0432\u043e\u0437\u044c \u0442\u0440\u0438 \u0441\u043b\u043e\u044f \u043c\u0443\u0442\u043d\u043e\u0433\u043e \u0446\u0435\u043b\u043e\u0444\u0430\u043d\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u043c\u043d\u043e\u0442\u0443, \u043d\u0443 \u0434\u0430 \u043b\u0430\u0434\u043d\u043e, \u0437\u0430\u0432\u0430\u0440\u0438\u0432\u0430\u0435\u043c \u0447\u0430\u0439 \u0438 \u043a\u043e\u0432\u044b\u0440\u044f\u0435\u043c, \u0432 \u043a\u043e\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0447\u0442\u043e \u0441\u044e\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043a\u043b\u044e\u0447 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 base64, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u0434\u0435\u043a\u043e\u0434\u0438\u043d\u0433\u0430 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u0430\u0439\u0442, \u0434\u0435\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 licenseccl.License:<\/p>\n<pre><code>\/\/ decode attempts to read a base64 encoded License. func decode(s string) (*licenseccl.License, error) { ... ... } \/\/ getLicense fetches the license from the given settings, using Settings.Cache \/\/ to cache the decoded license (if any). The returned license must not be \/\/ modified by the caller. func getLicense(st *cluster.Settings) (*licenseccl.License, error) { str := enterpriseLicense.Get(&amp;st.SV) if str == \"\" { return nil, nil } cacheKey := licenseCacheKey(str) if cachedLicense, ok := st.Cache.Load(cacheKey); ok { return cachedLicense.(*licenseccl.License), nil } license, err := decode(str) if err != nil { return nil, err } st.Cache.Store(cacheKey, license) return license, nil } <\/code><\/pre>\n<p>\u0412\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u043a\u043b\u0430\u0441\u0441 <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/blob\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/licenseccl\/license.go\" rel=\"noopener noreferrer nofollow\">licenseccl.License<\/a>, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u0434:<\/p>\n<pre><code>\/\/ Decode attempts to read a base64 encoded License. func Decode(s string) (*License, error) { if s == \"\" { return nil, nil } if !strings.HasPrefix(s, LicensePrefix) { return nil, errors.New(\"invalid license string\") } s = strings.TrimPrefix(s, LicensePrefix) data, err := base64.RawStdEncoding.DecodeString(s) if err != nil { return nil, errors.Wrapf(err, \"invalid license string\") } var lic License if err := protoutil.Unmarshal(data, &amp;lic); err != nil { return nil, errors.Wrap(err, \"invalid license string\") } return &amp;lic, nil }<\/code><\/pre>\n<p>\u0418\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0438\u0434\u043d\u043e \u0447\u0442\u043e \u0432 base64 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0431\u0430\u0439\u0442\u044b \u043d\u0435\u043a\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e protobuf, <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/tree\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/licenseccl\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 proto \u0444\u0430\u0439\u043b\u0430<\/a> \u043b\u0435\u0436\u0438\u0442 \u0440\u044f\u0434\u043e\u043c, \u0432 \u043d\u0435\u043c \u0432\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438, \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439, \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439, etc., \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0443 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e?! <\/p>\n<pre><code>message License {     reserved 1;     int64 valid_until_unix_sec = 2;      enum Type {       NonCommercial = 0;       Enterprise = 1;       Evaluation = 2;     }      Type type = 3;      string organization_name = 4;      enum Usage {       option (gogoproto.goproto_enum_prefix) = false;       option (gogoproto.goproto_enum_stringer) = false;        Unspecified = 0;       Production = 1;       PreProduction = 2;       Development = 3;     }      Usage usage = 5; }<\/code><\/pre>\n<p>\u041d\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0433\u0434\u0435-\u0442\u043e \u0442\u0430\u043c, \u0432\u044b\u0448\u0435 \u043f\u043e \u0441\u0442\u0435\u043a\u0443 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, \u0432\u0432\u043e\u0434\u0438\u043c\u0430\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\/\u0438\u043b\u0438 \u0432\u0435\u0440\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0435\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u044d\u0442\u043e\u0442 base64 \u043f\u0440\u0438\u0435\u0437\u0436\u0430\u0435\u0442 \u0441\u044e\u0434\u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435? \u041d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0436\u0435 \u0431\u044b\u0442\u044c \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e?!! \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043f\u0438\u0448\u0435\u043c \u043d\u0430 java \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442 proto \u0441\u0445\u0435\u043c\u0443 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0437\u0430\u0432\u0435\u0440\u043d\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u0431\u0440\u043e \u0432 base64, \u043d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0437\u0430\u0432\u0435\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441 \u043f\u043e\u0441\u043b\u0430\u043b \u0440\u0430\u043d\u0435\u0435 \u043d\u043e \u0443\u0436\u0435 \u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0435\u043c:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043b\u044e\u0447 \u0442\u0430\u0440\u0430\u043a\u0430\u043d \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u043b, \u043d\u043e \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 <a href=\"https:\/\/github.com\/cockroachdb\/cockroach\/blob\/91c1d5cbb5a56cd9c082d78814cd03c5471dddfa\/pkg\/ccl\/utilccl\/licenseccl\/license.go\" rel=\"noopener noreferrer nofollow\">licenseccl.License<\/a> \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0434\u0435\u043a\u043e\u0434\u0438\u043d\u0433\u043e\u043c base64, \u043e\u0442\u0440\u0435\u0437\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 &#171;crl-0-&#171;, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0435\u0433\u043e \u043a \u0441\u0433\u0435\u043d\u0435\u0440\u0435\u043d\u043d\u043e\u043c\u0443 base64 \u0442\u0430\u0440\u0430\u043a\u0430\u043d \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0436\u0435\u0432\u0430\u043b \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u043e\u043f\u0435\u0440\u0445\u043d\u0443\u0432\u0448\u0438\u0441\u044c.<\/p>\n<p><strong>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435.<\/strong><\/p>\n<p>\u041c\u043e\u0440\u0430\u043b\u044c \u0441\u0435\u0439 \u0431\u0430\u0441\u043d\u0438 \u0442\u0430\u043a\u043e\u0432\u0430, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u043f\u043d\u0443\u0442\u044c \u043d\u0435 \u0432 \u0433\u043b\u0443\u0431\u044c, \u0430 \u0447\u0443\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u0435\u0448\u044c\u0441\u044f \u0432 \u043a\u0440\u044b\u0448\u043a\u0443 \u0441\u0443\u043d\u0434\u0443\u043a\u0430, \u043d\u0443 \u0438\u043b\u0438 \u0432\u043f\u0440\u044b\u0433\u043d\u0435\u0448\u044c \u043e\u0431\u0435\u0438\u043c\u0438 \u043d\u043e\u0433\u0430\u043c\u0438 \u0432 \u0436\u0438\u0440, \u0442\u0443\u0442 \u0443\u0436 \u043a\u0430\u043a \u043f\u043e\u0432\u0435\u0437\u0435\u0442 =)<\/p>\n<p>\u041a\u043e\u0434 \u043a\u0435\u0439\u0433\u0435\u043d\u0430 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0442\u0443\u0442 \u043d\u0435 \u0431\u0443\u0434\u0443, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0432 \u0442\u0435\u043b\u0435\u0433\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043a\u0442\u043e-\u0442\u043e \u0435\u0433\u043e \u0437\u0430\u043d\u043e\u0432\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438 \u0443\u0436\u0435 \u0432\u044b\u043b\u043e\u0436\u0438\u043b.<\/p>\n<p>P.S. \u044d\u0442\u043e\u0442 \u0430\u043d\u0430\u043b\u0438\u0437 \u043c\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0438 \u0441 \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0435\u043c \u041d\u0438\u043a\u0438\u0442\u043e\u0439, \u041d\u0438\u043a\u0438\u0442\u0430 \u0442\u0435\u0431\u0435 \u0440\u0435\u0441\u043f\u0435\u043a\u0442, \u0441\u043b\u0430\u0432\u043d\u0430\u044f \u0431\u044b\u043b\u0430 \u043e\u0445\u043e\u0442\u0430, \u0432 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438 \u043d\u0435 \u0440\u0430\u0441\u043a\u043e\u0432\u044b\u0440\u044f\u043b \u0431\u044b \u0442\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/801185\/\"> https:\/\/habr.com\/ru\/articles\/801185\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-371174","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/371174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371174"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/371174\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}