[Cloudera HBase] Install Cloudera HBase in Ubuntu 14.04 x64

  • Install Oracle Sun Java 1.7.

    • Add Repository.

      sudo add-apt-repository ppa:webupd8team/java
      
    • Repository update.

      sudo apt-get update
      
    • Install Java 1.7.

      sudo apt-get install oracle-java7-installer
      
    • Install Java Environment Variable.

      sudo apt-get install oracle-java7-set-default 
      
  • Cloudera HBase

    Ref 1. – Installing the Latest CDH 5 Release

    Ref 2. – Starting HBase in Standalone Mode

    • Download the repository deb file for Ubuntu 14.04 from Cloudera , and use the command ‘dpkg’ to install it.

      wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb
      sudo dpkg -i cdh5-repository_1.0_all.deb
      
    • Repository update.

      sudo apt-get update
      
    • Install Hbase-master. It will install package {hadoop hadoop-hdfs hadoop-mapreduce hadoop-yarn hbase hbase-master parquet parquet-format zookeeper}.

      sudo apt-get install hbase-master
      

      Notice

      After installation finished, the service ‘hbase-master’ will automatically start.
      Start script file: /etc/init.d/hbase-master
      Start script: service hbase-master [start | stop | restart]
      Configuration directory: /etc/hbase/conf/
      HBase_Home Directory: /usr/lib/hbase/

    • Check hostname and edit /etc/hosts.

      #127.0.0.1  localhost
      #127.0.0.1  {$hostname}
      {$IP}       localhost {$hostname}       
      
    • Edit hosts at remote client.

      $hbase_ip   {$hbase_hostname}.
      
This entry was posted in Cloudera, HBase. Bookmark the permalink.