Managing Data Operating System
Also available as:
PDF
loading table of contents...

Remove ats-hbase before switching between clusters

Before you migrate between secure and non-secure clusters or HA and non-HA clusters, you must remove the ats-hbase service from the source cluster. Otherwise, Timeline Service 2.0 might stop working.

You must destroy the ats-hbase service, remove its configuration from HDFS, and remove its specification file from HDFS.

Note
Note
The following procedure explains with examples the process of removing the ats-hbase service for the yarn-ats user. If required, you must change the user based on your deployment. Similarly, you must use principal and keytab names different from those given in the following examples for a secure cluster based on your deployment.
  1. Use the yarn app -destroy command to destroy the ats-hbase service.
    • On a non-secure cluster:
      su - yarn-ats
      yarn app -destroy ats-hbase
    • On a secure cluster:
      su - yarn-ats
      kinit -kt /etc/security/keytabs/yarn-ats.hbase-client.headless.keytab yarn-ats@EXAMPLE.COM
      yarn app -destroy ats-hbase
  2. Remove the ats-hbase service configuration from HDFS.
    • On a non-secure cluster:
      su - yarn-ats
      hadoop fs -rm -R ./{stack_version}/*  #{stack_version} is 3.0.0.0-1557
    • On a secure cluster:
      su - yarn-ats
      kinit -kt /etc/security/keytabs/yarn-ats.hbase-client.headless.keytab yarn-ats@EXAMPLE.COM
      hadoop fs -rm -R ./{stack_version}/*  #{stack_version} is 3.0.0.0-1557
  3. Delete the specification file for the ats-hbase service from HDFS.
    Note
    Note
    You must be logged in as the hdfs user to perform this step.
    • On a non-secure cluster:
      su - hdfs
      hadoop fs -rm -R /services/sync/yarn-ats/hbase.yarnfile
    • On a secure cluster:
      su - hdfs
      kinit -kt /etc/security/keytabs/hdfs.headless.keytab hdfs@EXAMPLE.COM
      hadoop fs -rm -R /services/sync/yarn-ats/hbase.yarnfile