In Windows, use Cygwin installation HBase
HBase is the official Hadoop subproject, which is a distributed database for the column, it is not stored on the relational data structure, but rather loose distributed, persistent multidimensional sorted and indexed according to the map type, the source of their ideological on Google's BigTable papers. (Google BigTable the paper: http://labs.google.com/papers/bigtable-osdi06.pdf)
As HBase is a distributed, large-scale platform, the main installed in the Unix-platforms. However, due to its development language is Java, so it also has a cross-platform features, the same can also be installed on the Windows operating system. For convenience, use Cygwin with Unix-features to install HBase.
2. The purpose of this paper, described in pseudo-distributed model (Pseudo-distributed mode), under the Windows operating system to use Cygwin to install, run and test HBase project. For true distributed cluster configuration, you can refer to this as well as HBase Project Officer Network (http://hadoop.apache.org/hbase/) in explain.
3. Installation and Configuration Software Version:
JDK 1.6 (or later)
Cygwin 2.5
Hadoop 0.20.x
HBase 0.20.x
3.1 Java, Cygwin, SSH
Here are three software installation process, you can refer to "Hadoop developer" magazine first issue "in Windows to install Hadoop tutorial" will not go into.
3.2 Hadoop
Similarly, Hadoop installation also can refer to the "Hadoop developer" magazine first issue "in Windows to install Hadoop Tutorial," a text. However, according to the author of the installation process, listing the following note:
1. In the Configure hadoop-env.sh the JAVA_HOME when, Jdk are often installed in C: \ Program Files \ folder, for example: C: \ Program Files \ Java \ jdk1.6.0_01. JAVA_HOME should be configured as follows:
export JAVA_HOME = / cygdrive / c / Progra ~ 1/Java/jdk1.6.0_01
Among them, because Cygwin does not recognize the "Program Files" middle of the space, if not in accordance with the above settings, the system can not find Jdk installation directory.
Of course, you can also Cygwin's / usr / local directory to add a link to allow easy configuration JAVA_HOME. For example:
ln-s / cygdrive / c / Program \ Files/Java/jdk1.6.0_01 \
/ usr/local/jdk1.6.0_01
export JAVA_HOME = / usr/local/jdk1.6.0_01
2. In the core-site.xml configuration file, the property "fs.default.name" the value "Hadoop developer" magazine first issue "in Windows to install Hadoop Tutorial," a text value consistent set to: "hdfs: / / localhost: 8888 ". Similarly, the configuration file mapred-site.xml in the "mapred.job.tracker" attribute value is set to: "localhost: 9999".
3. In the Hadoop Distributed File System to create two directories hbase and tmp, these two directories will be installed in the following HBase used in the course, in the Shell, enter the command as follows:
bin / hadoop dfs-mkdir hbase tmp
Hadoop's distributed file system, and tmp will be added to hbase two directories, as shown below:
3.3 HBase
Suppose HBASE_HOME for HBase installation directory.
1. In the $ HBASE_HOME / conf / hbase-env.sh to add the following two environment variables:
export JAVA_HOME = / cygdrive / c / Progra ~ 1/Java/jdk1.6.0_01
export HBASE_IDENT_STRING = localhost
One, JAVA_HOME set reference to the above description.
2. Will be $ HBASE_HOME / conf / hbase-default.xml in all content, copy to $ HBASE_HOME / conf / hbase-site.xml file.
3. Changes hbase-site.xml configuration file "hbase.rootdir" property, as well as the "hbase.tmp.dir" attribute, as follows:
<property>
<name> hbase.rootdir </ name>
<value> hdfs: / / localhost: 8888/hbase </ value>
<description> The directory shared by region servers.
Should be fully-qualified to include the filesystem to use.
Eg: hdfs: / / NAMENODE_SERVER: PORT / HBASE_ROOTDIR
</ description>
</ property>
... ...
<property>
<name> hbase.tmp.dir </ name>
<value> hdfs: / / localhost: 8888/tmp </ value>
<description> Temporary directory on the local filesystem. </ description>
</ property>
... ....
Note that this set is two directories above the Hadoop distributed file system created two directories, in addition, the port number is also consistent with the previous set as follows: "8888."
4. Changes hbase-site.xml configuration file "hbase.zookeeper.quorum" attribute value of "127.0.0.1", in Cygwin in, "localhost" is sometimes not correctly identified. Are as follows:
<property>
<name> hbase.zookeeper.quorum </ name>
<value> 127.0.0.1 </ value>
<description> Comma separated list of servers in the ZooKeeper Quorum.
For example, "host1.mydomain.com,
host2.mydomain.com, host3.mydomain.com ".
By default this is set to localhost for local and pseudo-distributed modes
of operation. For a fully-distributed setup, this should be set to a full
list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK
is set in hbase-env.sh
this is the list of servers which we will start / stop ZooKeeper on.
</ description>
</ property>
4. Test the following test systems are installed correctly.
1. Open the Cygwin terminal, do "ssh localhost" command.
2. In the Hadoop installation directory, the implementation of the "bin / start-all.sh" script to start Hadoop.
3. The Hbase installation directory, the implementation of the "bin / start-hbase.sh" script to start HBase.
4. The Hbase installation directory, the implementation of the "bin / hbase shell" command, into the Shell command mode.
5. In the Shell, enter "create 'test', 'data'", the implementation of the results by typing "list" command to view it. As shown below:
6. , Respectively, in the Shell type "put 'test', 'row1', 'data: 1', 'value1'", "put 'test', 'row2', 'data: 2', 'value2'", "put ' test ',' row3 ',' data: 3 ',' value3 ' "three command to create three records.
7. Enter "scan 'test'" command, through the implementation of the results to test the implementation of the above three commands. As shown below.
5. Sum up this point, HBase in the Windows operating system to use Cygwin tool has been installed and running well. Users can store a large scale in the system data and for massive data processing.
Related Posts of In Windows, use Cygwin installation HBase
-
Mapping tool for browser-side analysis
Divided into two main categories: One category is pure Javascript Advantages: does not require any plug-in, no understanding of Flash Recommend Product: 1 Flot http://code.google.com/p/flot/ Function well, the document is too easy 2 EJS commercial pu ...
-
Manual configuration in UBUNTU under ruby on rails environment
Careless mistake for the day before yesterday, the sources, the results after 810 error after the upgrade, the loss of response button. On google found a lot of trouble really, lucky point modification under the / etc/X11/xorg.conf to restore both, b ...
-
Ruby Rails system calls the use of Ping
Want to use call system commands under RoR, the general exec and system and the syscall Want to use in Rails, the call ping command The most common are ruby support Ping usage is as follows: But the ruby's own ping, not only should not return avg ...
-
Eclipse to run using the specified JVM m2eclipse plugin can not find tools.jar
Used the m2eclipse plug-ins using struts2 when com.sun necessary to rely on the default-tools.jar, specifically because at the struts-annotations bag designated default-tools.jar <profile> <id> default-tools.jar </ id> <activatio ...
-
Ruby Symbol
Ruby is a completely cross-platform object-oriented scripting language, built on the Ruby-based Web framework Ruby on Rails (ROR) is the field of web development is gaining increasing acceptance. ROR substantial use of the Ruby language features, Sym ...
-
Rails source code analysis (4): Request / Response
1) Rails defines two abstract class: AbstractRequest and AbstractResponse code is not posted, first take a look at Response. 2) is mainly responsible for the specific ctgi_process.rb main interface is responsible for implementation methods of impleme ...
-
Use Ext JS to read the JsonReader complex object json
Today was how to resolve the following complex json object to the difficult living over a long time .. did not find documentation how to read JsonReader Ways json object (possibly also because of their limited level of E the text did not correctly un ...
-
NoClassDefFoundError: javax / servlet / Servlet
In the project in order to achieve a listener in web.xml set up a listener, did start in Tomcat actually occurred after java.lang.NoClassDefFoundError: javax / servlet / ServletContextListener this anomaly google and found the reasons for the lack of ...
-
hibernate parabolic mistake: null in entry
Ssh in a project, I encountered such a parabolic mistake: auth.model.AuthUser is a model category. And I tried to write the sql Success. Subsequently, I see, and should be a key requirement for non-empty result, I accidentally omitted. Seriously comp ...
-
Application of spring struts2.0 hibernate HQL
Therefore, in the development of statistical inquiry system, as far as possible through the use of select statement to write the required query property way back relational data, and avoid using the first query return persistent object (in this way a ...













Leave a Reply