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

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.

主站蜘蛛池模板: 建平县| 讷河市| 林州市| 永康市| 那曲县| 汶川县| 包头市| 鞍山市| 噶尔县| 南投县| 泉州市| 彰化市| 西乡县| 勐海县| 彰武县| 拉孜县| 滁州市| 文安县| 泸定县| 龙泉市| 剑川县| 澄城县| 朔州市| 寿宁县| 英超| 庄河市| 镶黄旗| 鸡东县| 鄂尔多斯市| 南靖县| 松阳县| 拜城县| 黄龙县| 阿图什市| 永清县| 霞浦县| 深圳市| 静海县| 乐陵市| 合川市| 阿尔山市|