Step 12: Add following entries to C:\hdp\hadoop-2.6.4\etc\hadoop\mapred-site.xml, replacing %USERNAME% with your Windows user name. Step 11: Create C:\tmp directory as the default configuration puts HDFS metadata and data files under \tmp on the current drive. Step 10: Modify C:\hdp\hadoop-2.6.4\etc\hadoop\hdfs-site.xml by adding the under words.Īttention: Make sure C:\hdp\hadoop-2.6.4\etc\hadoop\slaves has the following entry: localhost. Step 9: Modify C:\hdp\hadoop-2.6.4\etc\hadoop\core-site.xml by adding the following words. Set HADOOP_CONF_DIR=%HADOOP_PREFIX%\etc\hadoop Just type following lines into hadoop-env.cmd located in C:\hdp\hadoop-2.6.4\etc\hadoop. Step 8: Configure Hadoop for a Single Node (pseudo-distributed) Cluster. Just extract the newly created Hadoop Windows package to the directory of choice (eg.
If everything goes well in the previous step, then the native distribution hadoop-2.2.0.tar.gz will be created inside C:\hdp\hadoop-dist\target\hadoop-2.6.4 directory. Mvn package -Pdist,native-win -DskipTests -Dtar and then type and execute the under command. Step 7: Open the command prompts as the administrator. Step 6: Extract hadoop-2.6.4.tar.gz to a folder. Add Environment Variable HADOOP_HOME=“C:\hdp\hadoop-2.6.4-src” and edit Path variable to add bin directory of HADOOP_HOME, e.g.
Step 5: Download sources and build a Windows package yourself.Download Hadoop sources tarball hadoop-2.6. and extract to a folder having short path ( in this case, i place C:\hdp) to avoid runtime problem due to maximum path length limitation in Windows.
Step 4: Download and install CMake: Download and install CMake (Windows Installer) from here. Just repeat the same procedures to add and edit Path variable to add bin directory of Cygwin (say C:\cygwin64\bin).Īnd add bin directory of Maven to path (say C:\Program Files\apache-maven-3.3.9\bin),Īnd installation path of Protocol Buffers (say C:\protoc-2.5.0-win32). Deleting any path variable may lead to non functioning of some programs. Select the whole path and go to the end to append the new environment variables. When Editing the Path environment variable, you should be very careful. ( Don’t forget type before each appending process. In the coming dialog, just append %JAVA_HOME%\bin %JAVA_HOME%\jre\bin to the variable value.
Then find the path in System variables section in Environment variables window and click Edit.
Just type JAVA_HOME for the variable name and C:\Program Files\Java\jdk1.7.0_51 for the variable vaule. Then you should navigate to Environment Variables by right-clicking Computer, and select Properties in the coming option menu, then find Advanced System settings in the left panel of the window.įind and click the Environment Variables after tapping Advanced item on the top bar.Ĭlick New under the System variables section. To make up this, First, download and run the corresponding jdk from Oracle official site JDK download page. Step 3: Type the under commands into command prompts to check the environment variable vaules.Īttention: If you get nothing from command screen after executing the above commands, that means you have not set the java path for our system. Version should strictly be 2.5.0 for installing Hive. Step 2: Download Protocol Buffers 2.5.0 and extract to a folder in C drive(In this case, C drive is my system drive, you should adapt it to your condition). Step 1: Start the Windows 7 computer, and open a new command prompt and run mvn -v command to verify the installation. Now, just follow me, i would show you the way of installing Hadoop in Windows 7 step by step.
The installation of Apache Maven is a simple process of extracting the archive and adding the bin folder with the mvn command to the PATH.
For installation purposes, we are going to make use of Windows 7 Professional Edition, SP 1. Supported Windows OSs: Hadoop supports Windows Server 2008 and Windows Server 2008 R2, Windows Vista and Windows 7.
As you know the hive can be a user interface for Hadoop, so i would first demonstrate how to install Hadoop in Windows 7 without Cloudera.īefore we get to the detailed processes, some preparations are listed below: Well, for many Apache user, the information about installing Hive in Windows 7 is rare, so i just get some research on it and now i would share the way of installing Apache Hive on Windows 7.