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

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.

主站蜘蛛池模板: 普格县| 元江| 始兴县| 四子王旗| 县级市| 德兴市| 靖宇县| 思南县| 旌德县| 宁远县| 富宁县| 岳普湖县| 紫金县| 洪湖市| 合阳县| 怀仁县| 东乡族自治县| 鹿邑县| 基隆市| 奉贤区| 巴塘县| 唐海县| 桂阳县| 靖远县| 襄樊市| 商洛市| 龙南县| 巴楚县| 镇平县| 合阳县| 唐山市| 鞍山市| 蒙自县| 固镇县| 沅陵县| 鄂尔多斯市| 寻乌县| 沙田区| 凉山| 溧阳市| 前郭尔|