Ambari Managed HDF Upgrade
Also available as:
PDF

Verifying Symbolic Links for SAM and Schema Registry

About This Task

After you register and install your target version, but before you proceed with a Rolling or Express Upgrade, verify that the symbolic links to the SAM and Schema Registry configuration directories on each host are still valid. If the links are not valid, fix them before upgrading.

Steps

  1. Confirm on each host running Registry or SAM that symlinks for the configuration directories are still valid.

    #For Schema Registry
    ls -l /etc/registry/conf
    
    #For SAM
    ls -l /etc/streamline/conf
    
  2. If the link appears to be broken, perform the following steps to fix it.

    1. Remove the broken symbolic link.

      #Remove broken Schema Registry link
      rm -rf /etc/registry/conf
      
      #Remove broken SAM link
      rm -rf /etc/streamline/conf
      
    2. Create a physical SAM or Schema Registry configuration directory.

      #Create a Schema Registry conf directory
      mkdir -p /etc/registry/conf
      
      #Create SAM conf directory
      mkdir -p /etc/streamline/conf
      
    3. Copy the configuration files from your backup, into the new directory.

      #Copy Schema Registry backup files
      cp /etc/registry/conf.backup/* /etc/registry/conf
      
      #Copy SAM backup files
      cp /etc/streamline/conf.backup/* /etc/streamline/conf