Chapter 1. Cygwin Overview free to submit bug reports and ask questions through the normal channels. All other questions should be sent to the project mailing list.Eclipse is probably best known as a Java IDE, but it is more: it is an IDE framework, a tools framework, an open source project, a community, an eco-system, and a. Cygwin. Cygwin is probably the oddest technology in this solution stack. It provides a dynamic link library that emulates most of a *nix environment on Windows. Package Weight* Description; lambda-setuptools 0.1.8: 9: A Command extension to setuptools that allows building an AWS Lamba dist and uploading to S3. Apache HBase – Installing Apache HBase (TM) on Windows using Cygwin. Introduction. Apache HBase (TM) is a distributed, column- oriented store, modeled after Google's Big. Table. Apache HBase is built on top of Hadoop for its Map. Reduce and distributed file system implementation. All these projects are open- source and part of the Apache Software Foundation. As being distributed, large scale platforms, the Hadoop and HBase projects mainly focus on *nix environments for production installations. However, being developed in Java, both projects are fully portable across platforms and, hence, also to the Windows operating system. For ease of development the projects rely on Cygwin to have a *nix- like environment on Windows to run the shell scripts.Installation. For running Apache HBase on Windows, 3 technologies are required: Java, Cygwin and SSH.The following paragraphs detail the installation of each of the aforementioned technologies.Java. HBase depends on the Java Platform, Standard Edition, 6 Release. here. So the target system has to be provided with at least the Java Runtime Environment (JRE); however if the system will also be used for development, the Jave Development Kit (JDK) is preferred. You can download the latest versions for both from Sun's download page. Installation is a simple GUI wizard that guides you through the process. Cygwin. Cygwin is probably the oddest technology in this solution stack. It provides a dynamic link library that emulates most of a *nix environment on Windows. On top of that a whole bunch of the most common *nix tools are supplied. Combined, the DLL with the tools form a very *nix- alike environment on Windows. For installation, Cygwin provides the setup. Cygwin. To support installation, the setup. The Root directory for Cygwin (defaults to C: \cygwin) which will become / within the eventual Cygwin installation; and the Local Package directory (e. C: \cygsetup that is the cache where setup. The cache must not be the same folder as the Cygwin root. Perform following steps to install Cygwin, which are elaboratly detailed in the 2nd chapter of the Cygwin User's Guide: Make sure you have Administrator privileges on the target system. Choose and create you Root and Local Package directories. A good suggestion is to use C: \cygwin\root and C: \cygwin\setup folders. Download the setup. Local Package directory. Run the setup. exe utility. Choose the Install from Internet option,Choose your Root and Local Package foldersand select an appropriate mirror. Don't select any additional packages yet, as we only want to install Cygwin for now. Wait for download and install. Finish the installation. Optionally, you can now also add a shortcut to your Start menu pointing to the setup. Local Package folder. Add CYGWIN_HOME system- wide environment variable that points to your Root directory. Add %CYGWIN_HOME%\bin to the end of your PATH environment variable. Reboot the sytem after making changes to the environment variables otherwise the OS will not be able to find the Cygwin utilities. Test your installation by running your freshly created shortcuts or the Cygwin. Root folder. You should end up in a terminal window that is running a Bash shell. Test the shell by issuing following commands. Root directory in Cygwin; the LS commands that should list all files and folders in the current directory. Use the exit command to end the terminal. When needed, to uninstall Cygwin you can simply delete the Root and Local Package directory, and the shortcuts that were created during installation. SSHHBase (and Hadoop) rely on SSH for interprocess/- node communication and launching remote commands. SSH will be provisioned on the target system via Cygwin, which supports running Cygwin programs as Windows services! Rerun the setup. exe utility. Leave all parameters as is, skipping through the wizard using the Next button until the Select Packages panel is shown. Maximize the window and click the View button to toggle to the list view, which is ordered alfabetically on Package, making it easier to find the packages we'll need. Select the following packages by clicking the status word (normally Skip) so it's marked for installation. Use the Next button to download and install the packages. Open. SSHtcp_wrappersdiffutilszlib. Wait for the install to complete and finish the installation. HBase. Download the latest release of Apache HBase from the website. As the Apache HBase distributable is just a zipped archive, installation is as simple as unpacking the archive so it ends up in its final installation 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. This finishes installation. We go on with the configuration. 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. 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. 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. Configuring SSH is quite elaborate, but primarily a question of launching it by default as a Windows service. On Windows Vista and above make sure you run the Cygwin shell with elevated privileges, by right- clicking on the shortcut an using Run as Administrator. First of all, we have to make sure the rights on some crucial files are correct. Use the commands underneath. You can verify all rights by using the LS - L command on the different files. Also, notice the auto- completion feature in the shell using < TAB> is extremely handy in these situations. Edit the /etc/hosts. VI in the shell!) and make sure the following two lines are in there before the PARANOID line. ALL : localhost 1. ALL : [: :1]/1. 28 : allow. Next we have to configure SSH by using the script ssh- host- config. If this script asks to overwrite an existing /etc/ssh_config, answer yes. If this script asks to overwrite an existing /etc/sshd_config, answer yes. If this script asks to use privilege separation, answer yes. If this script asks to install sshd as a service, answer yes. Make sure you started your shell as Adminstrator! If this script asks for the CYGWIN value, just < enter> as the default is ntsec. If this script asks to create the sshd account, answer yes. If this script asks to use a different user name as service account, answer no as the default will suffice. If this script asks to create the cyg_server account, answer yes. Enter a password for the account. Start the SSH service using net start sshd or cygrunsrv - -start sshd. Notice that cygrunsrv is the utility that make the process run as a Windows service. Confirm that you see a message stating that the CYGWIN sshd service was started succesfully. Harmonize Windows and Cygwin user account by using the commands. Test the installation of SSH.Open a new Cygwin terminal.Use the command whoami to verify your user.IDIssue an ssh localhost to connect to the system itself.Answer yes when presented with the server's fingerprint.Issue your password when promptedtest a few commands in the remote session. How To Install Perl Modules Dependencies Synonyms . The exit command should take you back to your first shell in Cygwin. Exit should terminate the Cygwin shell. HBase. If all previous configurations are working properly, we just need some tinkering at the HBase config files to properly resolve on Windows/Cygwin. All files and paths referenced here start from the HBase [installation directory] as working directory. HBase uses the ./conf/hbase- env. Copy and uncomment following lines just underneath their original, change them to fit your environemnt. They should read something like. JAVA_HOME=/usr/local/< jre name> export HBASE_IDENT_STRING=$HOSTNAME as this most likely does not inlcude spaces. HBase uses the ./conf/hbase- default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |