{"id":1078,"date":"2015-08-17T23:35:44","date_gmt":"2015-08-17T21:35:44","guid":{"rendered":"http:\/\/www.bittner.fr\/blogs\/pierre\/?p=1078"},"modified":"2015-08-17T23:35:44","modified_gmt":"2015-08-17T21:35:44","slug":"yarn-test-on-macosx","status":"publish","type":"post","link":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/","title":{"rendered":"YARN Test on MacosX"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I&rsquo;m currently playing a little with hdfs and yarn (<a href=\"http:\/\/hadoop.apache.org\/docs\/current\/\">Hadoop 2.7.1<\/a>) on my laptop (Darwin Kernel Version 14.5.0 \/ OS X Yosemite Version\u00a010.10.5)\u00a0. Until then, I was mainly doing HBase development and I thought it could be nice if I learn some basic stuff such as Map Reduce programming before starting with Spark.<\/p>\n<p>While I was trying the <a href=\"http:\/\/hadoop.apache.org\/docs\/current\/hadoop-mapreduce-client\/hadoop-mapreduce-client-core\/MapReduceTutorial.html\">Map Reduce\u00a0tutorial<\/a>, I fall on this error:<\/p>\n<blockquote><p>15\/08\/17 22:59:29 INFO mapreduce.Job: Job job_1439843536878_0001 failed with state FAILED due to: Application application_1439843536878_0001 failed 2 times due to AM Container for appattempt_1439843536878_0001_000002 exited with\u00a0 exitCode: 127<\/p>\n<p>For more detailed output, check application tracking page:http:\/\/MacBook-Pro-de-Pierre.local:8088\/cluster\/app\/application_1439843536878_0001Then, click on links to logs of each attempt.<\/p>\n<p>Diagnostics: Exception from container-launch.<\/p>\n<p>Container id: container_1439843536878_0001_02_000001<\/p>\n<p>Exit code: 127<\/p>\n<p>Stack trace: ExitCodeException exitCode=127:<\/p>\n<p>at org.apache.hadoop.util.Shell.runCommand(Shell.java:545)<\/p>\n<p>at org.apache.hadoop.util.Shell.run(Shell.java:456)<\/p>\n<p>at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:722)<\/p>\n<p>at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)<\/p>\n<p>at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)<\/p>\n<p>at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)<\/p>\n<p>at java.util.concurrent.FutureTask.run(FutureTask.java:266)<\/p>\n<p>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<\/p>\n<p>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<\/p>\n<p>at java.lang.Thread.run(Thread.java:745)<\/p>\n<p>Container exited with a non-zero exit code 127<\/p>\n<p>Failing this attempt. Failing the application.<\/p>\n<p>15\/08\/17 22:59:29 INFO mapreduce.Job: Counters: 0<\/p><\/blockquote>\n<p>This simple command fix the issue:<\/p>\n<blockquote><p>sudo ln -s \/usr\/bin\/java \/bin\/java<\/p><\/blockquote>\n<p>Hope this helps.<\/p>\n<p>Pierre<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, I&rsquo;m currently playing a little with hdfs and yarn (Hadoop 2.7.1) on my laptop (Darwin Kernel Version 14.5.0 \/ OS X Yosemite Version\u00a010.10.5)\u00a0. Until then, I was mainly doing HBase development and I thought it could be nice if I learn some basic stuff such as Map Reduce programming before starting with Spark. While [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[30,32,34,33],"class_list":["post-1078","post","type-post","status-publish","format-standard","hentry","category-development","tag-hadoop","tag-macos","tag-mapred","tag-yarn"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YARN Test on MacosX - Pierre&#039;s weblog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YARN Test on MacosX - Pierre&#039;s weblog\" \/>\n<meta property=\"og:description\" content=\"Hi, I&rsquo;m currently playing a little with hdfs and yarn (Hadoop 2.7.1) on my laptop (Darwin Kernel Version 14.5.0 \/ OS X Yosemite Version\u00a010.10.5)\u00a0. Until then, I was mainly doing HBase development and I thought it could be nice if I learn some basic stuff such as Map Reduce programming before starting with Spark. While [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\" \/>\n<meta property=\"og:site_name\" content=\"Pierre&#039;s weblog\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-17T21:35:44+00:00\" \/>\n<meta name=\"author\" content=\"Pierre Bittner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pierre Bittner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\"},\"author\":{\"name\":\"Pierre Bittner\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/9713c6deaf14c30b1b34cc5cd886c09c\"},\"headline\":\"YARN Test on MacosX\",\"datePublished\":\"2015-08-17T21:35:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\"},\"wordCount\":261,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/3ab57f92769bc1c95b4f56d526b0b225\"},\"keywords\":[\"Hadoop\",\"MacOs\",\"mapred\",\"yarn\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\",\"url\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\",\"name\":\"YARN Test on MacosX - Pierre&#039;s weblog\",\"isPartOf\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#website\"},\"datePublished\":\"2015-08-17T21:35:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YARN Test on MacosX\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#website\",\"url\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/\",\"name\":\"Pierre's weblog\",\"description\":\"Release 2.3\",\"publisher\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/3ab57f92769bc1c95b4f56d526b0b225\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/3ab57f92769bc1c95b4f56d526b0b225\",\"name\":\"Pierre\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-content\/uploads\/2025\/09\/Pierre-Bittner.png\",\"contentUrl\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-content\/uploads\/2025\/09\/Pierre-Bittner.png\",\"width\":1920,\"height\":1080,\"caption\":\"Pierre\"},\"logo\":{\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.bittner.fr\/blogs\/pierre\",\"https:\/\/www.linkedin.com\/in\/pierre-bittner\/\",\"https:\/\/www.youtube.com\/@pierrebittner\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/9713c6deaf14c30b1b34cc5cd886c09c\",\"name\":\"Pierre Bittner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/381c6e1f43681b025b7b709d1299281ceb4b5174454b52b648c8be840b70d522?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/381c6e1f43681b025b7b709d1299281ceb4b5174454b52b648c8be840b70d522?s=96&d=mm&r=g\",\"caption\":\"Pierre Bittner\"},\"url\":\"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/author\/pierre\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YARN Test on MacosX - Pierre&#039;s weblog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/","og_locale":"fr_FR","og_type":"article","og_title":"YARN Test on MacosX - Pierre&#039;s weblog","og_description":"Hi, I&rsquo;m currently playing a little with hdfs and yarn (Hadoop 2.7.1) on my laptop (Darwin Kernel Version 14.5.0 \/ OS X Yosemite Version\u00a010.10.5)\u00a0. Until then, I was mainly doing HBase development and I thought it could be nice if I learn some basic stuff such as Map Reduce programming before starting with Spark. While [&hellip;]","og_url":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/","og_site_name":"Pierre&#039;s weblog","article_published_time":"2015-08-17T21:35:44+00:00","author":"Pierre Bittner","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Pierre Bittner","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#article","isPartOf":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/"},"author":{"name":"Pierre Bittner","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/9713c6deaf14c30b1b34cc5cd886c09c"},"headline":"YARN Test on MacosX","datePublished":"2015-08-17T21:35:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/"},"wordCount":261,"commentCount":0,"publisher":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/3ab57f92769bc1c95b4f56d526b0b225"},"keywords":["Hadoop","MacOs","mapred","yarn"],"articleSection":["Development"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/","url":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/","name":"YARN Test on MacosX - Pierre&#039;s weblog","isPartOf":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#website"},"datePublished":"2015-08-17T21:35:44+00:00","breadcrumb":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/2015\/08\/17\/yarn-test-on-macosx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.bittner.fr\/blogs\/pierre\/"},{"@type":"ListItem","position":2,"name":"YARN Test on MacosX"}]},{"@type":"WebSite","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#website","url":"https:\/\/www.bittner.fr\/blogs\/pierre\/","name":"Pierre's weblog","description":"Release 2.3","publisher":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/3ab57f92769bc1c95b4f56d526b0b225"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bittner.fr\/blogs\/pierre\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":["Person","Organization"],"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/3ab57f92769bc1c95b4f56d526b0b225","name":"Pierre","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/image\/","url":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-content\/uploads\/2025\/09\/Pierre-Bittner.png","contentUrl":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-content\/uploads\/2025\/09\/Pierre-Bittner.png","width":1920,"height":1080,"caption":"Pierre"},"logo":{"@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.bittner.fr\/blogs\/pierre","https:\/\/www.linkedin.com\/in\/pierre-bittner\/","https:\/\/www.youtube.com\/@pierrebittner"]},{"@type":"Person","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/9713c6deaf14c30b1b34cc5cd886c09c","name":"Pierre Bittner","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.bittner.fr\/blogs\/pierre\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/381c6e1f43681b025b7b709d1299281ceb4b5174454b52b648c8be840b70d522?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/381c6e1f43681b025b7b709d1299281ceb4b5174454b52b648c8be840b70d522?s=96&d=mm&r=g","caption":"Pierre Bittner"},"url":"https:\/\/www.bittner.fr\/blogs\/pierre\/blog\/author\/pierre\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/posts\/1078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/comments?post=1078"}],"version-history":[{"count":1,"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/posts\/1078\/revisions"}],"predecessor-version":[{"id":1079,"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/posts\/1078\/revisions\/1079"}],"wp:attachment":[{"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/media?parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bittner.fr\/blogs\/pierre\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}