Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-17644

hiveserver2-site.xml is missing from /etc/hive2/conf/conf.server when hsi is set up by Ambari

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • stacks
    • None

    Description

      Currently hiveserver2-site.xml is missing from /etc/hive2/conf/conf.server when a llap cluster is setup by Ambari as shown in the below:

      [root@r7-hsi-0706-r-4 ~]# ls -l /etc/hive2/conf/conf.server/
      total 68
      -rw-r--r--. 1 hive hadoop  1596 Jul  6 20:04 beeline-log4j2.properties
      -rw-r--r--. 1 hive hadoop  1434 Jul  6 20:04 hadoop-metrics2-llapdaemon.properties
      -rw-r--r--. 1 hive hadoop  1441 Jul  6 20:04 hadoop-metrics2-llaptaskscheduler.properties
      -rw-r--r--. 1 hive hadoop     0 Jul  6 20:04 hive-default.xml.template
      -rw-r--r--. 1 hive hadoop  1887 Jul  6 20:04 hive-env.sh
      -rw-r--r--. 1 hive hadoop     0 Jul  6 20:04 hive-env.sh.template
      -rw-r--r--. 1 hive hadoop  2287 Jul  6 20:04 hive-exec-log4j2.properties
      -rw-r--r--. 1 hive hadoop  2754 Jul  6 20:04 hive-log4j2.properties
      -rw-r--r--. 1 hive hadoop 24226 Jul  6 20:14 hive-site.xml
      -rw-r--r--. 1 hive hadoop  2752 Jul  6 20:04 llap-cli-log4j2.properties
      -rw-r--r--. 1 hive hadoop  4217 Jul  6 20:04 llap-daemon-log4j2.properties
      -rw-r--r--. 1 hive hadoop  6776 Jul  6 20:04 mapred-site.xml
      

      The test framework requires hiveserver2-site.xml to be present and in a case of Hive 1, it is there as shown in the below:

      root@nat-d7-0629-hs2-12-rangeroff-3:~# ls -l /etc/hive/conf/conf.server/
      total 56
      -rw-r--r-- 1 hive hadoop  1535 Jun 29 13:52 hadoop-metrics2-hivemetastore.properties
      -rw-r--r-- 1 hive hadoop  1533 Jun 29 13:54 hadoop-metrics2-hiveserver2.properties
      -rw-r--r-- 1 hive hadoop     0 Jun 29 13:52 hive-default.xml.template
      -rw-r--r-- 1 hive hadoop  2077 Jun 29 13:54 hive-env.sh
      -rw-r--r-- 1 hive hadoop     0 Jun 29 13:52 hive-env.sh.template
      -rw-r--r-- 1 hive hadoop  2652 Jun 29 13:52 hive-exec-log4j.properties
      -rw-r--r-- 1 hive hadoop  3050 Jun 29 13:52 hive-log4j.properties
      -rw-r--r-- 1 hive hadoop   563 Jun 29 13:52 hivemetastore-site.xml
      -rw-r--r-- 1 hive hadoop   677 Jun 29 13:54 hiveserver2-site.xml
      -rw-r--r-- 1 hive hadoop 20362 Jun 29 13:52 hive-site.xml
      -rw-r--r-- 1 hive hadoop  7391 Jun 29 13:52 mapred-site.xml
      

      And its content is:

        <configuration>
      
          <property>
            <name>hive.metastore.metrics.enabled</name>
            <value>true</value>
          </property>
      
          <property>
            <name>hive.security.authorization.enabled</name>
            <value>false</value>
          </property>
      
          <property>
            <name>hive.service.metrics.file.location</name>
            <value>/var/log/hive/hiveserver2-report.json</value>
          </property>
      
          <property>
            <name>hive.service.metrics.hadoop2.component</name>
            <value>hiveserver2</value>
          </property>
      
          <property>
            <name>hive.service.metrics.reporter</name>
            <value>JSON_FILE, JMX, HADOOP2</value>
          </property>
      
        </configuration>
      

      Attachments

        1. AMBARI-17644.patch
          8 kB
          Sumit Mohanty

        Issue Links

          Activity

            People

              sumitmohanty Sumit Mohanty
              sumitmohanty Sumit Mohanty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: