{"id":601,"date":"2011-12-08T12:25:12","date_gmt":"2011-12-08T12:25:12","guid":{"rendered":"http:\/\/www.gmarwaha.com\/blog\/?p=601"},"modified":"2014-09-14T04:43:12","modified_gmt":"2014-09-14T04:43:12","slug":"no-hadoop-env-sh-in-hadoop-0-23","status":"publish","type":"post","link":"https:\/\/www.gmarwaha.com\/blog\/2011\/12\/08\/no-hadoop-env-sh-in-hadoop-0-23\/","title":{"rendered":"No hadoop-env.sh in Hadoop 0.23"},"content":{"rendered":"<p>The first thing to do after downloading and extracting Hadoop is to set <em>JAVA_HOME<\/em> in the <em>$HADOOP_HOME\/conf\/hadoop-env.sh<\/em> file. Almost all documentation on Hadoop site expects the above configuration but I guess that was for version 0.20. When I downloaded Hadoop 0.23 today and looked for the hadoop-env.sh file, I could not find it anywhere in the extracted archive. <\/p>\n<p>After a bit of Googling I realized that things have changed in 0.23 version and now I will have to look for the file in the <em>$HADOOP_HOME\/etc\/hadoop<\/em> directory instead. Unfortunately I couldn&#8217;t find the file there either.<\/p>\n<p>As a last resort I created a file named <em>hadoop-env.sh<\/em> in the <em>$HADOOP_HOME\/etc\/hadoop<\/em> directory and set my <em>JAVA_HOME<\/em> there. The one and only line in that file is given below. Fortunately after that addition, the hadoop command started working and everything went normal again.<\/p>\n<pre class=\"prettyprint\">\r\nexport JAVA_HOME=\/usr\/lib\/jvm\/java-6-openjdk\/\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The first thing to do after downloading and extracting Hadoop is to set JAVA_HOME in the $HADOOP_HOME\/conf\/hadoop-env.sh file. Almost all documentation on Hadoop site expects the above configuration but I guess that was for version 0.20. When I downloaded Hadoop 0.23 today and looked for the hadoop-env.sh file, I could not find it anywhere in the extracted archive. After a bit of Googling I realized that things have changed in 0.23 version and now I will have to look for the file in the $HADOOP_HOME\/etc\/hadoop directory instead. Unfortunately I couldn&#8217;t find the file there either. As a last resort I... <br \/><a class=\"moretag\" href=\"https:\/\/www.gmarwaha.com\/blog\/2011\/12\/08\/no-hadoop-env-sh-in-hadoop-0-23\/\">Continue reading...<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,10],"tags":[],"class_list":["post-601","post","type-post","status-publish","format-standard","hentry","category-hadoop","category-serverside"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/comments?post=601"}],"version-history":[{"count":8,"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/posts\/601\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gmarwaha.com\/blog\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}