Monday, November 30, 2015

Install ambari 2.1.0 using non-default databases (HDP)

  1. install mariaDB
    1. http://mungeol-heo.blogspot.kr/2015/07/mariadb.html
  2. mysql-connector-java
    1. yum -y install mysql-connector-java
      1. use latest version if "option sql_select_limit=default" error occurs
        1. cd /usr/share
        2. mkdir java
        3. cd java
        4. wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.36.zip
        5. unzip mysql-connector-java-5.1.36.zip
        6. cp mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar .
        7. ln -s mysql-connector-java-5.1.36-bin.jar mysql-connector-java.jar
    2. ls /usr/share/java/mysql-connector-java.jar
    3. chmod 644 /usr/share/java/mysql-connector-java.jar (option)
  3. wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
  4. yum -y install ambari-server
  5. service postgresql stop
  6. RDB setting
    1. mysql -u root -p
    2. CREATE USER 'ambari'@'%' IDENTIFIED BY 'bigdata';
    3. GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'%';
    4. CREATE USER 'ambari'@'localhost' IDENTIFIED BY 'bigdata';
    5. GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'localhost';
    6. CREATE USER 'ambari'@'bigdata-dev01.co.kr' IDENTIFIED BY 'bigdata';
    7. GRANT ALL PRIVILEGES ON *.* TO 'ambari'@'bigdata-dev01.co.kr';
    8. FLUSH PRIVILEGES;
    9. mysql -u ambari -p
    10. CREATE DATABASE ambari;
    11. USE ambari;
    12. SOURCE /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql;
  7. ambari-server setup
    1. Select y at Enter advanced database configuration
    2. enter 3 (mysql)
    3. select default values for all left
  8. ambari-server start

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.