Last active
February 5, 2018 02:47
-
-
Save xterat/b9bb991fd0016d897db731da65aefa48 to your computer and use it in GitHub Desktop.
Revisions
-
xterat revised this gist
Feb 5, 2018 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,7 @@ 1. Set HugePages_Total by: ```bash sudo bash -c "echo 81920 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages" ``` Verify it by `cat /proc/meminfo`. -
xterat created this gist
Jan 25, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ # Run crail on Ubuntu 16.04 1. Set HugePages_Total by: ```bash sudo su echo 81920 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages exit ``` Verify it by `cat /proc/meminfo`. 2. Mount hugetlbfs: ```Bash sudo mount -t tmpfs -o size=10g tmpfs /media/crail ``` 3. Set up index path's mount point. ```Bash sudo mount -t hugetlbfs none /mnt ``` 4. Set up CRAIL_HOME. 5. Change mount point's owner: ```Bash sudo chown -R hadoop:hadoop /mnt sudo chown -R hadoop:hadoop /media/crail ``` 6. Run crail's namenode & datanode.