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

Unable To Restart HCat Client When Not Colocated With WebHCat Server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.2.0
    • 2.2.1
    • ambari-server
    • None

    Description

      Errors are encountered while restart Hive HCat client when it is not located on a host which also has WebHCat daemon.

      This is good - the pointers have moved for 2.3.4
      root@os-d7-dkezlu-ambari-hv-r-upg-7-re1-5:/usr/hdp/current/hive-webhcat/etc# ls -l /usr/hdp/2.3.4.0-3485/hive-hcatalog/etc
      total 4
      lrwxrwxrwx 1 root root   33 Dec 18 14:45 hcatalog -> /etc/hive-hcatalog/2.3.4.0-3485/0
      drwxr-xr-x 2 root root 4096 Dec 18 14:45 init.d
      lrwxrwxrwx 1 root root   32 Dec 18 14:45 webhcat -> /etc/hive-webhcat/2.3.4.0-3485/0
      
      This is bad - current for hcatalog is still 2.3.2, which has the symlink issue
      root@os-d7-dkezlu-ambari-hv-r-upg-7-re1-5:/usr/hdp/current/hive-webhcat/etc# ls -l /usr/hdp/current | grep hive
      lrwxrwxrwx 1 root root 26 Dec 18 15:50 hive-client -> /usr/hdp/2.3.4.0-3485/hive
      lrwxrwxrwx 1 root root 26 Dec 18 12:59 hive-metastore -> /usr/hdp/2.3.2.0-2826/hive
      lrwxrwxrwx 1 root root 26 Dec 18 12:59 hive-server2 -> /usr/hdp/2.3.2.0-2826/hive
      lrwxrwxrwx 1 root root 35 Dec 18 12:59 hive-webhcat -> /usr/hdp/2.3.2.0-2826/hive-hcatalog
      
      root@os-d7-dkezlu-ambari-hv-r-upg-7-re1-5:/usr/hdp/current/hive-webhcat/etc# ls -l /usr/hdp2.3.2.0-2826/hive-hcatalog/etc
      lrwxrwxrwx 1 root root 23 Dec 18 20:35 hcatalog -> /etc/hive-hcatalog/conf
      lrwxrwxrwx 1 root root 22 Dec 18 20:35 webhcat -> /etc/hive-webhcat/conf
      

      The problem is that hcat_client.py must write out configs to /usr/hdp/current/hive-webhcat/etc/hcatalog but hcat_client.py doesn't hdp-select anything.

      So that the "current" pointers are never changed. hcat_client.py should probably hdp-select hive-webhcat since there is no hcat-client in hdp-select.

      Attachments

        1. AMBARI-14437.patch
          4 kB
          Jonathan Hurley

        Activity

          People

            jonathanhurley Jonathan Hurley
            jonathanhurley Jonathan Hurley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: