

{"id":353,"date":"2016-06-13T07:32:33","date_gmt":"2016-06-13T07:32:33","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=353"},"modified":"2018-11-21T16:33:27","modified_gmt":"2018-11-21T11:03:27","slug":"hadoop-2-with-yarn","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/","title":{"rendered":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode"},"content":{"rendered":"<h2>1.\u00a0Install Hadoop 2 with YARN Tutorial: Objective<\/h2>\n<p>In this tutorial to install Hadoop 2 with Yarn, we will learn how to setup and run <a href=\"http:\/\/data-flair.training\/blogs\/hadoop-introduction-tutorial-quick-guide\/\"><strong>Apache Hadoop<\/strong> <\/a>2 with yarn on a single-node on Ubuntu <strong><a href=\"http:\/\/data-flair.training\/blogs\/important-linux-commands-syntax-part-5\/\">Linux<\/a> <\/strong>OS. By Single Node Hadoop cluster we mean to say that all master, as well as slave daemons, will run on the same machine. After the completion to install Hadoop 2 with yarn procedure of single node Hadoop cluster, we will be easily able to perform operations such as <strong><a href=\"http:\/\/data-flair.training\/blogs\/introduction-tutorial-hdfs\/\">Hadoop Distributed File System (HDFS)<\/a><\/strong> and <strong><a href=\"http:\/\/data-flair.training\/blogs\/hadoop-mapreduce-tutorial-comprehensive-guide-beginners\/\">Map-Reduce<\/a><\/strong>. Single Node<strong><a href=\"http:\/\/data-flair.training\/blogs\/install-hadoop-1-x-on-multi-node-cluster\/\"> Hadoop cluster<\/a><\/strong> is also termed as Hadoop in Pseudo-Distributed Mode.<br \/>\nTo learn more big data technologies like Apache Spark, <a href=\"http:\/\/data-flair.training\/blogs\/apache-spark-introduction-spark-comprehensive-tutorial\/\">follow this comprehensive guide.<\/a><\/p>\n<div id=\"attachment_43201\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-43201\" class=\"size-full wp-image-43201\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg\" alt=\"Install Hadoop 2 with YARN in Pseudo-Distributed Mode\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-43201\" class=\"wp-caption-text\">Install Hadoop 2 with YARN in Pseudo-Distributed Mode<\/p><\/div>\n<h2>2. Setup and Install Hadoop 2 with Yarn<\/h2>\n<p>Follow the steps given below to install Hadoop 2 with Yarn on ubuntu os-<\/p>\n<h3>2.1. Required Platforms to Install Hadoop 2 with Yarn on Ubuntu<\/h3>\n<ul>\n<li><strong>Operating system:<\/strong> Ubuntu 14.04 or later, we can also use other Linux versions such as CentOS, Redhat, etc.<\/li>\n<li><strong>Hadoop:<\/strong> Cloudera Distribution for Apache Hadoop CDH5.x (we can also use Apache Hadoop 2.x)<\/li>\n<\/ul>\n<p>Note:\u00a0If you are using Windows\/Mac OS you can <a href=\"http:\/\/data-flair.training\/blogs\/install-ubuntu-vmware-player\/\" target=\"_blank\" rel=\"noopener noreferrer\">create a virtual machine and install Ubuntu using VMWare Player<\/a>, alternatively you can <a href=\"http:\/\/data-flair.training\/blogs\/step-by-step-installation-of-ubuntu-on-virtual-box\/\" target=\"_blank\" rel=\"noopener noreferrer\">create a virtual machine and install Ubuntu using Oracle Virtual Box<\/a>.<\/p>\n<h3>2.2. Prerequisites to Install Hadoop 2 with Yarn<\/h3>\n<p>Necessary Software\u2019s to be installed before starting up to install Hadoop 2 with Yarn.<\/p>\n<h4>I. Java 8 Installation<\/h4>\n<p><strong>a. Install Python Software Properties<\/strong><br \/>\nIn order to add the Java repositories, we need to download python-software-properties. Download and Installation of Python software properties can be easily executed by using the below command:<\/p>\n<p>[php]sudo apt-get install python-software-properties[\/php]<\/p>\n<p><em>NOTE: After pressing \u201cEnter\u201d key. It will ask for your password because we are using \u201csudo\u201d command to provide root privileges for the installation. And in order to install or configure any software, we always need root privileges.<\/em><\/p>\n<p><strong>b. Add Repository<\/strong><br \/>\nNow we will add a Repository. A repository is nothing but a collection of software for a Linux distribution on a server from where we can easily download and install software\u2019s using command \u201capt-get\u201d in Linux. So, now we will manually add a java repository so that Ubuntu can easily install the Java. Command to add a Java repository:<\/p>\n<p>[php]sudo add-apt-repository ppa:webupd8team\/java[\/php]<\/p>\n<p>Press \u201cEnter\u201d.<\/p>\n<p><strong>c. Update the source list<\/strong><br \/>\nThe source list is basically a location where Ubuntu download and install the software and also updates the software. So whenever we install a new package\/software or update any previously installed software then it is recommended that we should update the source list periodically so that changes made can easily get saved and we can easily use the software. So in order to update source list, we need to use the following command:<\/p>\n<p>[php]sudo apt-get update[\/php]<\/p>\n<p>When you run the above command Ubuntu will update its source list.<\/p>\n<p><strong>d. Install Java<\/strong><br \/>\n<strong><a href=\"http:\/\/data-flair.training\/blogs\/hadoop-features-design-principles-tutorial\/\">Hadoop framework<\/a><\/strong> is written in Java. Hence it requires Java to be installed. So to download and install Java we need to use the below command:<\/p>\n<p>[php]sudo apt-get install oracle-java8-installer[\/php]<\/p>\n<p>When you will press enter it will start downloading and installing Java.<br \/>\nTo check the whether the Java is installed successfully or not and to check the version of your Java type the below command terminal:<\/p>\n<p>[php]java -version[\/php]<\/p>\n<h4>II. Configure SSH to Install Hadoop with Yarn<\/h4>\n<p>SSH means secured shell which is used for the remote login. Means we can login to a remote machine using SSH. Hence SSH setup is required to allow password-less login for the <strong><a href=\"http:\/\/data-flair.training\/blogs\/big-data-hadoop-quiz-part-1\/\">Hadoop<\/a> <\/strong>user from machines in the cluster. Password-less SSH setup is required for remote script invocation. Automatically remotely master will start the demons on slaves.<\/p>\n<p><strong>a. Install Open SSH Server-Client<\/strong><br \/>\nThese SSH tools will be used for the remote login.<\/p>\n<p>[php]sudo apt-get install openssh-server openssh-client[\/php]<\/p>\n<p><strong>b. Generate Key Pairs<\/strong><br \/>\nNow will generate public and private key pair, which is used for authentication.<\/p>\n<p>[php]ssh-keygen -t rsa -P &#8220;&#8221;[\/php]<\/p>\n<p>Note: It will ask \u201cEnter the file in which to save the key (\/home\/hdadmin\/.ssh\/id_rsa):\u201d You don\u2019t need to make any changes just press \u201cEnter\u201d. Now the file will be available in\u201c.ssh\u201d path. You can check the default path by \u201c$ls .ssh\/\u201d command and there you will see that two files are created \u201cid_rsa\u201d which is a private key and \u201cid_rsa.pub\u201d which is a public key.<\/p>\n<p><strong>c. Configure passwordless SSH<\/strong><br \/>\nWe need to copy the contents of \u201cid_rsa.pub\u201d into the \u201cauthorized_keys\u201d file. So this can be done by using the command:<\/p>\n<p>[php]cat $HOME\/.ssh\/id_rsa.pub &gt;&gt; $HOME\/.ssh\/authorized_keys[\/php]<\/p>\n<p><strong>d. Check by SSH to localhost<\/strong><br \/>\n[php]ssh localhost[\/php]<\/p>\n<p>As previously we had configured passwordless SSH hence it will not ask for any password and thus we can easily get logged into localhost.<\/p>\n<h3>2.3. Getting Started with Hadoop Installation<\/h3>\n<p>Step by step procedure for installation of Hadoop-2.6.2 in pseudo distributed mode is given below.<\/p>\n<h4>I. Downloading Hadoop<\/h4>\n<p>We can download Hadoop from the below link.<br \/>\n[php]http:\/\/www.eu.apache.org\/dist\/hadoop\/common\/hadoop-2.6.2\/hadoop-2.6.2.tar.gz[\/php]<br \/>\nAfter downloading Hadoop, we need to copy it to our home directory.<\/p>\n<h4>II. Untar Tar-ball<\/h4>\n<p>Now we need to extract all the contents of compressed Hadoop file. For this we will use Tar command:<\/p>\n<p>[php]tar xzf hadoop-2.6.2.tar.gz[\/php]<\/p>\n<p><em>Note: All the libraries, scripts, configuration files, etc. are available in HADOOP_HOME directory (the extracted directory is called as HADOOP_HOME. e.g. hadoop-2.6.0-cdh5.5.1)<\/em><\/p>\n<h4>III. Setup Configuration to Install Hadoop with Yarn<\/h4>\n<p>Making changes in Setup Configuration files for successful installation and running of Hadoop services:<\/p>\n<p><strong>a. Edit .bashrc<\/strong><br \/>\nNow firstly we need to edit environment file \u201c.bashrc\u201d which is present in our home directory. We can identify and edit this file with the command: $ nano -\/.bashrc\u201d. In this file we need to add the below contents at the end of this file:<\/p>\n<p>[php]export JAVA_HOME=\/usr\/lib\/jvm\/java-8-oracle\/<br \/>\nexport HADOOP_HOME=home\/dataflair\/hadoop-2.6.2<br \/>\nexport HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME\/lib\/native<br \/>\nexport HADOOP_OPTS=&#8221;-Djava.library.path=$HADOOP_HOME\/lib<br \/>\nexport HADOOP_PREFIX=&#8221;\/home\/hdadmin\/hadoop-2.6.2&#8243;<br \/>\nexport PATH=$PATH:$HADOOP_PREFIX\/bin<br \/>\nexport PATH=$PATH:$HADOOP_PREFIX\/sbin<br \/>\nexport HADOOP_MAPRED_HOME=${HADOOP_PREFIX}<br \/>\nexport HADOOP_COMMON_HOME=${HADOOP_PREFIX}<br \/>\nexport HADOOP_HDFS_HOME=${HADOOP_PREFIX}<br \/>\nexport YARN_HOME=${HADOOP_PREFIX}<br \/>\n[\/php]<\/p>\n<p><em>Note: Make to enter the correct path. &#8220;\/home\/dataflair\/hadoop-2.6.2\u201d this is my home directory path. By \u201c$pwd\u201d command you can get your home directory path.<\/em><\/p>\n<p>On adding the above contents in the .bashrc file we need to save it. In order to save it press \u201cCtrl+X\u201d.<br \/>\n<em>Note: After above step restarts the terminal so that all the environment variables will come into effect<\/em><\/p>\n<p><strong>b. Edit hadoop-env.sh<\/strong><br \/>\nNow we need to edit configuration \u201chadoop-env.sh&#8221; file which is present in configuration directory (HADOOP_HOME\/etc\/hadoop) and here we have to provide root path of Java installation. We have to provide Java installation path in \u201chadoop-env.sh&#8221; file under the heading \u201cJAVA_HOME\u201d. This can be done by executing steps:<\/p>\n<p>[php]dataflair@ubuntu:~$cd hadoop-2.6.2\/<br \/>\ndataflair@ubuntu:~\/hadoop-2.6.2$ cd etc\/hadoop<br \/>\ndataflair@ubuntu:~\/hadoop-2.6.2\/etc\/hadoop$ nano hadoop-env.sh[\/php]<\/p>\n<p>Here set JAVA_HOME as:<\/p>\n<p>[php]export JAVA_HOME=&lt;path-to-the-root-of-your-Java-installation&gt; (eg: \/usr\/lib\/jvm\/java-8-oracle\/)[\/php]<\/p>\n<p>On adding the above contents in hadoop-env.sh file we need to save it. In order to save it press \u201cCtrl+X\u201d.<br \/>\n<em>Note: \u201c\/usr\/lib\/jvm\/java-8-oracle\/\u201d is default Java path. If you had made any changes in your java path then enter that path here.<\/em><\/p>\n<p><strong>c. Edit core-site.xml<\/strong><br \/>\nNow we need to edit configuration \u201dcore-site.xml&#8221; file which is present in configuration directory (HADOOP_HOME\/etc\/hadoop) with the help of the following command:<\/p>\n<p>[php]dataflair@ubuntu:~\/ hadoop-2.6.2\/etc\/hadoop$ nano core-site.xml[\/php]<\/p>\n<p>And here we have to add below entries between present at the end of this file:<\/p>\n<p>[php]&lt;property&gt;<br \/>\n&lt;name&gt;fs.defaultFS&lt;\/name&gt;<br \/>\n&lt;value&gt;hdfs:\/\/localhost:9000&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;hadoop.tmp.dir&lt;\/name&gt;<br \/>\n&lt;value&gt;\/home\/dataflair\/hdata&lt;\/value&gt;<br \/>\n&lt;\/property&gt;[\/php]<\/p>\n<p><em>Note: \u201c\/home\/dataflair\/hdata\u201d is my location where I have read-write privileges. So kindly enter the location of your path where you have Read Write privileges.<\/em><\/p>\n<p>On adding the above contents in core-site.xml file we need to save it. In order to save it press \u201cCtrl+X\u201d.<\/p>\n<p><strong>d. Edit hdfs-site.xml<\/strong><br \/>\nNow we need to edit configuration \u201dhdfs-site.xml&#8221; file which is present in configuration directory (HADOOP_HOME\/etc\/hadoop) with the help of the following command:<\/p>\n<p>[php]dataflair@ubuntu:~\/ hadoop-2.6.2\/etc\/hadoop$ nano hdfs-site.xml[\/php]<\/p>\n<p>And here we have to add below entries between present at the end of this file:<\/p>\n<p>[php]&lt;property&gt;<br \/>\n&lt;name&gt;dfs.replication&lt;\/name&gt;<br \/>\n&lt;value&gt;1&lt;\/value&gt;<br \/>\n&lt;\/property&gt;[\/php]<\/p>\n<p>On adding the above contents in hdfs-site.xml file we need to save it. In order to save it press \u201cCtrl+X\u201d.<\/p>\n<p><strong>e. Edit mapred-site.xml<\/strong><br \/>\nNow we need to edit configuration \u201dmapred-site.xml&#8221; file which is present in configuration directory (HADOOP_HOME\/etc\/hadoop) with the help of the following command:<\/p>\n<p>[php]dataflair@ubuntu:~\/ hadoop-2.6.2\/etc\/hadoop$ nano mapred-site.xml[\/php]<\/p>\n<p>After pressing \u201cEnter\u201d we will see that a new blank file named mapred-site.xml gets generate. This happens because there is no such file named mapred-site.xml is present in our home directory. Instead of that, there exists a template file available mapred-site.xml.template. So in order to edit mapred-site.xml file, firstly we need to create a copy of mapred-site.xml.template file.<\/p>\n<p>Command to create a copy of mapred-site.xml.template file is:<\/p>\n<p>[php]dataflair@ubuntu:~\/ hadoop-2.6.2\/etc\/hadoop$ cp mapred-site.xml.template mapred-site.xml[\/php]<\/p>\n<p>After creating a copy of mapred-site.xml.template file, we can now be able to edit mapred-site.xml file with the following command:<\/p>\n<p>[php]dataflair@ubuntu:~\/ hadoop-2.6.2\/etc\/hadoop$ nano mapred-site.xml[\/php]<\/p>\n<p>And here we need to add below entries between present at the end of this file:<\/p>\n<p>[php]&lt;property&gt;<br \/>\n&lt;name&gt;mapreduce.framework.name&lt;\/name&gt;<br \/>\n&lt;value&gt;yarn&lt;\/value&gt;<br \/>\n&lt;\/property&gt;[\/php]<\/p>\n<p>On adding the above contents in mapred-site.xml file we need to save it. In order to save it press \u201cCtrl+X\u201d.<\/p>\n<p><strong>f. Edit yarn-site.xml<\/strong><br \/>\nNow we need to edit configuration \u201dyarn-site.xml&#8221; file which is present in configuration directory (HADOOP_HOME\/etc\/hadoop) with the help of the following command:<\/p>\n<p>[php]dataflair@ubuntu:~\/ hadoop-2.6.2\/etc\/hadoop$ nano yarn-site.xml[\/php]<\/p>\n<p>And here we need to add below entries between present at the end of this file:<\/p>\n<p>[php]&lt;property&gt;<br \/>\n&lt;name&gt;yarn.nodemanager.aux-services&lt;\/name&gt;<br \/>\n&lt;value&gt;mapreduce_shuffle&lt;\/value&gt;<br \/>\n&lt;\/property&gt;<br \/>\n&lt;property&gt;<br \/>\n&lt;name&gt;yarn.nodemanager.aux-services.mapreduce.shuffle.class&lt;\/name&gt;<br \/>\n&lt;value&gt;org.apache.hadoop.mapred.ShuffleHandler&lt;\/value&gt;<br \/>\n&lt;\/property&gt;[\/php]<\/p>\n<p>Now we are completed with the installation procedure of Hadoop-2.6.2 in pseudo distributed mode. Now we will start Hadoop services by following steps.<\/p>\n<p>For deep dive into Hadoop Yarn, resource manager <a href=\"http:\/\/data-flair.training\/blogs\/hadoop-yarn-resource-manager-guide-tutorial\/\">follow this yarn tutorial.<\/a><\/p>\n<h4>IV. Start the Hadoop Cluster<\/h4>\n<p><strong>a. Format the namenod<\/strong><\/p>\n<p>Before starting the Hadoop services we need to format namenode. In order to do so, we will use the below command:<\/p>\n<p>[php]dataflair@ubuntu:~$ hdfs namenode -format[\/php]<\/p>\n<p><em>NOTE: This activity should be done only once when you <a href=\"http:\/\/data-flair.training\/blogs\/install-deploy-run-cloudera-hadoop-cdh5-apache-2-x-on-centos\/\">install Hadoop<\/a> if you repeat it you lose all your data and different namespaceId will be assigned to namenode. If namenode and datanode have different id datanode daemon will not be started when to start the daemons.<\/em><\/p>\n<p><strong>b. Start HDFS Daemons:<\/strong><br \/>\n[php]dataflair@ubuntu:~$ start-dfs.sh[\/php]<\/p>\n<p><strong>c. Start YARN Daemons:<\/strong><br \/>\n[php]dataflair@ubuntu:~$ start-yarn.sh[\/php]<\/p>\n<p><strong>d. Check the status of services:<\/strong><br \/>\n[php]dataflair@ubuntu:~$ jps[\/php]<\/p>\n<p>NameNode<br \/>\nDataNode<br \/>\nResourceManager<br \/>\nNodeManager<\/p>\n<p>If you are getting above output after running jps command, it means Hadoop has been installed successfully. Now you can perform<strong><a href=\"http:\/\/data-flair.training\/blogs\/data-read-operation-in-hdfs\/\"> HDFS<\/a><\/strong> operations (Follow <a href=\"http:\/\/data-flair.training\/blogs\/most-used-hdfs-commands-examples\/\">HDFS commands guide<\/a>) and <a href=\"http:\/\/data-flair.training\/blogs\/mapreduce-job-optimization-performance-tuning-techniques\/\">MapReduce<\/a> operations.<\/p>\n<p>If you like this tutorial on How to install Hadoop with Yran on Ubuntu or if you have any queries regarding the tutorial, do let us know it in the comment section below and we will get back to you.<br \/>\n<strong>See Also-<\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/data-flair.training\/blogs\/difference-comparison-hadoop-2-x-vs-hadoop-3-x\/\">Hadoop 2.x vs Hadoop 3.x<\/a><\/li>\n<li><a href=\"http:\/\/data-flair.training\/blogs\/spark-vs-flink-vs-hadoop-comparison\/\">Hadoop vs Spark vs Flink<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0Install Hadoop 2 with YARN Tutorial: Objective In this tutorial to install Hadoop 2 with Yarn, we will learn how to setup and run Apache Hadoop 2 with yarn on a single-node on Ubuntu&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":43201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[782,1907,1971,2877,5186,5192,5201,5267,5329,5341,8140,8303,11664],"class_list":["post-353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hadoop","tag-apache-hadoop","tag-big-data","tag-big-data-training","tag-configure-hadoop","tag-hadoop","tag-hadoop-2-x","tag-hadoop-admin","tag-hadoop-installation","tag-hadoop-setup","tag-hadoop-training","tag-learn-hadoop","tag-linux","tag-run-hadoop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Install Hadoop 2 with YARN in Pseudo-Distributed Mode - DataFlair<\/title>\n<meta name=\"description\" content=\"Install Hadoop 2 with Yarn in pseudo distributed mode Ubuntu, java installation,how to configure SSH, start Hadoop cluster,How to start Hadoop daemons\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Hadoop 2 with YARN in Pseudo-Distributed Mode - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Install Hadoop 2 with Yarn in pseudo distributed mode Ubuntu, java installation,how to configure SSH, start Hadoop cluster,How to start Hadoop daemons\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-13T07:32:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-21T11:03:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode - DataFlair","description":"Install Hadoop 2 with Yarn in pseudo distributed mode Ubuntu, java installation,how to configure SSH, start Hadoop cluster,How to start Hadoop daemons","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:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/","og_locale":"en_US","og_type":"article","og_title":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode - DataFlair","og_description":"Install Hadoop 2 with Yarn in pseudo distributed mode Ubuntu, java installation,how to configure SSH, start Hadoop cluster,How to start Hadoop daemons","og_url":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2016-06-13T07:32:33+00:00","article_modified_time":"2018-11-21T11:03:27+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode","datePublished":"2016-06-13T07:32:33+00:00","dateModified":"2018-11-21T11:03:27+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/"},"wordCount":2121,"commentCount":6,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg","keywords":["apache hadoop","big data","big data training","configure hadoop","hadoop","Hadoop 2.x","hadoop admin","hadoop installation","hadoop setup","hadoop training","learn hadoop","linux","run hadoop"],"articleSection":["Hadoop Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/","url":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/","name":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg","datePublished":"2016-06-13T07:32:33+00:00","dateModified":"2018-11-21T11:03:27+00:00","description":"Install Hadoop 2 with Yarn in pseudo distributed mode Ubuntu, java installation,how to configure SSH, start Hadoop cluster,How to start Hadoop daemons","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/06\/Install-Hadoop-2-with-Yarn-01.jpg","width":1200,"height":628,"caption":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/hadoop-2-with-yarn\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Hadoop Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/hadoop\/"},{"@type":"ListItem","position":3,"name":"Install Hadoop 2 with YARN in Pseudo-Distributed Mode"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":43202,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/353\/revisions\/43202"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/43201"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}