官术网_书友最值得收藏!

Readying your system

Before you start with the prerequisites, you must ensure that you have sufficient space on your Hadoop nodes, and that you are using the respective directory appropriately. First, find out how much available disk space you have with the following command, also shown in the screenshot:

hrishikesh@base0:/$ df -m

The preceding command should present you with insight about the space available in MBs. Note that Apache Hadoop can be set up on a root user account or separately; it is safe to install it on a separate user account with space.

Although you need root access to these systems and Hadoop nodes, it is highly recommended that you create a user for Hadoop so that any installation impact is localized and controlled. You can create a user with a home directory with the following command:

hrishikesh@base0:/$ sudo adduser hadoop

The preceding command will prompt you for a password and will create a home directory for a given user in the default location (which is usually /home/hadoop). Remember the password. Now, switch the user to Hadoop for all future work using the following command:

hrishikesh@base0:/$ su - hadoop

This command will log you in as a Hadoop user. You can even add a Hadoop user in the sudoers list, as given here.

主站蜘蛛池模板: 大城县| 安新县| 淳化县| 临沭县| 三亚市| 彭山县| 上林县| 嘉祥县| 楚雄市| 凤庆县| 手游| 安龙县| 康保县| 芒康县| 什邡市| 安泽县| 邛崃市| 焦作市| 南阳市| 大港区| 河源市| 和平区| 巴东县| 万源市| 惠水县| 柳河县| 明光市| 石阡县| 营山县| 资中县| 甘泉县| 大悟县| 丰都县| 清镇市| 临桂县| 旬阳县| 平陆县| 天气| 罗甸县| 宁海县| 汪清县|