3.4. Configure Properties

  1. Edit the master-install-location/gsInstaller/gsInstaller.properties file and specify values for all of the following properties to install all HDP components:

    [Note]Note

    To perform minimal install (Apache Hadoop core components), specify values for Mandatory properties only (see third column in table).

    Table 3.1. gsInstaller Configuration Properties
    Property Name Notes Example Mandatory/Optional/Conditional
    java64home Location of JAVA_HOME for 64-bit JDK v 1.6 update 31 in your environment. Mandatory

    security

    Set the value to “yes”. (Default: No) Mandatory
    datanode_dir Comma-separated list of the DataNode’s data directories residing on separate disks. /hdp/1/hadoop/hdfs/data,/hdp/2/hadoop/hdfs/data Mandatory
    namenode_dir Comma-separated list of the NameNode’s data directories. Provide multiple directories on separate physical file systems and on separate mount points to preserve the NameNode metadata. /hdp/1/hadoop/hdfs/namenode,/hdp/2/hadoop/hdfs/namenode Mandatory
    snamenode_dir Comma-separated list of the NameNode’s check­pointing directories residing on separate disks. /hdp/1/hadoop/hdfs/snamenode,/hdp/2/hadoop/hdfs/snamenode Mandatory
    mapred_dir Comma-separated list of the MapReduce’s data directories residing on separate disks. /hdp/1/hadoop/mapred,/hdp/2/hadoop/mapred Mandatory
    log_dir Full path to Hadoop log directory. /var/log/hadoop Mandatory
    pid_dir Full path to Hadoop PID directory. /var/run/hadoop Mandatory

    hdfs_user_keytab

    Change this path to/tmp/${hdfsuser}.headless.keytab

    Mandatory
    hbase_user_keytab 

    Change this path to/tmp/${hbaseuser}.headless.keytab

    Mandatory

    keytabdir

    Path to NameNode, Secondary NameNode, JobTracker, DataNode, TaskTracker, HBase Master, and RegionServer keytab file. ( Default: /etc/security/keytabs) Mandatory
    realm Provide the Kerberos realm. (Default: EXAMPLE.COM) Mandatory
    sshkey Either provide full path to the sshkey which allows you to perform passwordless SSH OR Set this field to empty when passwordless SSH is set-up Mandatory
    installpig To install Pig, set the value to yes. (Default: yes) Optional
    installhbase To install HBase, set the value to yes. (Default: yes) Optional
    hbase_log_dir Location for HBase log directory. /var/log/hbase Conditional. Required if installhbase is set to yes.
    hbase_pid_dir Location for HBase PID directory. /var/run/hbase
    zk_log_dir Location for ZooKeeper log directory. /var/log/zookeeper Conditional. Required if installhbase is set to yes.
    zk_pid_dir Location for ZooKeeper PID directory. /var/run/zookeeper
    zk_data_dir Location for Zookeeper data directory. /hdp/1/hadoop/zookeeper
    dbflavor Database flavor for Hive, Oozie, and Sqoop. Permissible values are mysql or oracle Conditional. Required only if installing either Hive, Oozie, or Sqoop
    dbhost FQDN for database host machine Conditional. Required only if installing either Hive, Oozie, or Sqoop
    jdbc_jar Location of the Oracle JDBC JAR file (see instructions here) Conditional. Required only if installing either Hive, Oozie, or Sqoop and if dbflavor is set to oracle
    dbsysuser User credentials for Oracle database system users
    dbsyspasswd
    installhive To install Hive, set the value to yes. (Default: no) Optional. You must first install and configure MySQL for your cluster as instructed here. Also ensure that installhcat property is set to yes.
    hive_log_dir Location for Hive log directory. /var/log/hive Conditional Required only if installhive is set to yes.
    hive_dbname Database name for Hive metastore. Conditional. Required only if installhive is set to yes.
    hive_dbuser Credentials for Hive Database user.
    hive_dbpasswd
    installhcat To install HCatalog, set the value to yes. (Default: yes) Optional. Ensure that installhive property is set to yes.
    smoke_test_user Provide the value for the smoke test user. (Default: hdptestuser) Mandatory

    smoke_test_user_keytab

    Location of the keytab file for the smoke test user. (Default: /homes/${smoke_test_user}/${smoke_test_user}.headless.keytab) Mandatory
    installsqoop To install Sqoop, set the value to yes. (Default: yes) Optional
    installoozie To install Oozie, set the value to yes. (Default: yes) Optional
    oozie_use_external_db Set this to yes, to use MySQL or Oracle database for Oozie metastore (default database is Derby). (Default: no) Conditional. Required only if installing Oozie
    oozie_log_dir Location for Oozie log directory. /var/log/oozie

    oozie_pid_dir

    Location for Oozie PID directory. /var/run/oozie
    oozie_dbname Database name for Oozie metastore.
    oozie_dbuser Database user credentials for Oozie metastore.
    oozie_dbpasswd

    installFlume

    To download Apache Flume RPM, set the value to yes. (Default: no). To deploy Flume, use the instructions available here. Optional

    installMahout

    To install Apache Mahout set the value to yes.(Default: no) Optional
    enablemon Required if you want to install the HDP components for Monitoring (Ganglia and Nagios). (Default: yes) Optional. You must configure and deploy HDP Monitoring components as instructed in next section.
    clusterName Name of the cluster. This name is required in order to invoke the Ambari APIs. (Default: ambari) ambari Required if enablemon property is set to yes.
    dashboardhost Provide the hostname from where you want to run the Ambari APIs. Required if enablemon property is set to yes.

  2. To deploy Flume, use the instructions available here.


loading table of contents...