Installing Hadoop and Hbase in windows 7
Hbase in Microsoft HDInsights - Configuration Document
Most of the people think that Hadoop/Hbase can be installed only in linux box. There may be a scenario in which you may have to install Hadoop and Hbase in windows. There is a Microsoft HDinsight which will help you to install hadoop in windows machine and it is fully functional for single node.- Download the Microsoft HDInsight Developer preview from
- Click on the downloaded exe(HDINSIGHT-PREVIEW.exe). You will see the window below
- Click on Install
- Click on I accept
- You will be seeing the below screen
- Click on Finish. Then open the browser and enter http://hostname:50070 where hostname is your hostname. (Ex. http://localhost:50070 )Then you will see the hdfs Namenode webui
- Open the browser and enter http://hostname:50030 where hostname is your hostname. (Ex. http://localhost:50030)Then you will see the Jobtracker webui
- You can test whether hdfs is working fine by issuing simple put statement then ls command.
- Installing the Hbase. Download the hbase 0.94.8(latest stable version as on 05-06-2013) from http://apache.mirrors.lucidnetworks.net/hbase/hbase-0.94.8/hbase-0.94.8.tar.gz
- Extract the compressed file into c:\Hadoop directory.
- Then navigate to C:\Hadoop\hbase-0.94.8\conf
- Copy the batch file(hbase-env.cmd) and paste it in C:\Hadoop\hbase-0.94.8\conf. Batch files are present in the zip.
- Add the basic properties in hbase-site.xml. Replace the hostname with the actual hostname.
<property>
<name>hbase.rootdir</name>
<value>hdfs://hostname:8020/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>false</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hostname</value>
</property>
- Copy the batch files(hbase.cmd, hbase-config.cmd, start-hbase.cmd, stop-hbase.cmd) to C:\Hadoop\hbase-0.94.8\bin. The above batch files are provided in the zip.
- Start the hbase by double click on start-hbase.cmd(C:\Hadoop\hbase-0.94.8\bin)
- Check hbase is working by issuing hbase hbck
- Enter into hbase shell
- Create tables and insert and retrieve the records in hbase
Note: This
Microst HDInsights Developer Preview version which will work in
single node(Ref:
http://www.microsoft.com/web/gallery/install.aspx?appid=HDINSIGHT-PREVIEW)
No comments