Legacy Archive (2015): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

Big Data Handbook (1): Setup and Configuration

Original Chinese title: Bigdata 手册(1)-配置

Big Data Handbook: Configuration

Basic Configuration

  • 1:3 distributed deployment on Ubuntu Server

    Check Ubuntu Version

    cat /etc/issue
    uname -a

    HBase and Hadoop

  • hbase 0.96-2

  • hadoop 2.4.0

  • Ports: dfs 50070, yarn 8080, hbase 60010 (full port list)

    /etc/profile

    vi /etc/profile
    export JAVA_HOME=/usr/java
    export JRE_HOME=/usr/java/jre
    export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
    export CLASSPATH=.:$JAVA_HOME/lib/jt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
    export HADOOP_HOME=/usr/hadoop
    export PATH=$PATH:$HADOOP_HOME/bin
    export HBASE_HOME=/usr/hbase
    export PATH=$PATH:$HBASE_HOME/bin
    export HIVE_HOME=/usr/hive
    export PATH=$PATH:$HIVE_HOME/bin
    
    source /etc/profile

HBase Issues

RegionServer Fails to Start

  • Check the system clock—that’s the most likely culprit. Fix it with the date command:

    sudo data -s 20150115 // yaer/month/day
    sudo data -s 14:00 // hours/minutes

Hive

  • Needs a relational database for the metadata store; went with MySQL.
  • Baidu is a trap! My server is on an internal network, so I can only install MySQL by downloading the packages manually—and right now every single result on the first page of Baidu for offline MySQL installation is wrong!
  • The right way to do it:
    1. Pick the right version from the MySQL Download Center.
    2. I’m on Ubuntu 12.04, so I downloaded the .deb bundle mysql-server_5.6.22-1ubuntu12.04_i386.deb-bundle.tar.
    3. You need the libaio package—offline download link: libaio.
    4. Download libaio1 first, then install libaio-dev, and you’re all set.
    5. I installed the mysql-community edition, which includes both server and client.