步骤:
1,
HBase
Download the latest release of HBase from the website. As the HBase distributable is just a zipped archive, installation is as simple as unpacking the archive so it ends up in its finalinstallation directory. Notice that HBase has to be installed in Cygwin and a good directory suggestion is to use /usr/local/
(or [Root directory]\usr\local
in Windows slang). You should end up with a /usr/local/hbase-<version>
installation in Cygwin.
2,
Configuration
There are 3 parts left to configure: Java, SSH and HBase itself. Following paragraphs explain eacht topic in detail.
Java
One important thing to remember in shell scripting in general (i.e. *nix and Windows) is that managing, manipulating and assembling path names that contains spaces can be very hard, due to the need to escape and quote those characters and strings. So we try to stay away from spaces in path names. *nix environments can help us out here very easily by usingsymbolic links.
- Create a link in
/usr/local
to the Java home directory by using the following command and substituting the name of your chosen Java environment:LN -s /cygdrive/c/Program\ Files/Java/<jre name> /usr/local/<jre name>
- Test your java installation by changing directories to your Java folder
CD /usr/local/<jre name>
and issueing the command./bin/java -version
. This should output your version of the chosen JRE.