run crail on Ubuntu 16.04

Run crail on Ubuntu 16.04

  1. Set HugePages_Total:

    1
    sudo bash -c "echo 81920 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages"

    Verify it by cat /proc/meminfo.

  2. Mount hugetlbfs:

    1
    sudo mount -t tmpfs -o size=10g tmpfs /media/crail
  3. Set up index path’s mount point.

    1
    sudo mount -t hugetlbfs none /mnt
  4. Set up CRAIL_HOME.

  5. Change mount point’s owner:

    1
    2
    sudo chown -R hadoop:hadoop /mnt
    sudo chown -R hadoop:hadoop /media/crail
  6. Run crail’s namenode & datanode.