Hadoop 2.9 stand-alone installation configuration

The installation process can refer to online articles: https://www.cnblogs.com/defineconst/p/10828899.html

This machine is not enough memory resources using virtual memory:

Just installed server with a default looks like there is no swap space, if in doubt, you can view the situation swap partition of their servers by the following command:
as Free -m
because my system memory is 1G, so be prepared to do Swap a 2G of space.
The Internet to find a number of steps to increase the swap and found Ali cloud users are experiencing similar problems, refer to the URL of: https://yq.aliyun.com/ziliao/5443
Here are the steps I performed (I use the root users, of course, if you have sudo privileges, he can):

  1. The establishment of swap directory in the / directory
    mkdir / swap

  2. Use the dd command to generate an empty file, because I am going to build a 2G swap space, so I am going to set the empty files for 2G
    cd / swap /
    dd IF = / dev / ZERO = swap.img of bs = 1M COUNT = 2048M

  3. Next, use the command mkswap this empty file formatted as a swap format
    mkswap swap.img

  4. Swap space on one ji_huo
    swapon swapimg

  5. Again using the free -m command to view the swap partition information can be found has been configured successfully

  6. Although currently configured the cache partition, but our server will cache partition lost after the restart, need to re-hung, so you need to boot automatically mount
    to / etc / fstab add the following contents:
    / swap / swap. img swap swap defaults 0 0

When you start hadoop always prompted for a password solution:

Private keys are generated: if the local environment is not required
ssh-keygen -t rsa
achieve local logon password-free, because to build, we do login to other hosts without a password, but there is no local connection to the local ssh
so, say local the public key import the private key can
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys

------------
Reference article:
https://blog.csdn.net/dwl764457208/article/details/55252228
https://blog.csdn.net/shikenian520/article/details/79896639

Guess you like

Origin www.cnblogs.com/hupingzhi/p/12286630.html