Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-8744

Cannot run upgrade tool on the same cluster more than once

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: CDAP
    • Labels:
      None
    • Rank:
      1|hzzwcf:

      Description

      Running upgrade tool for more than once results in following error:

      2017-02-23 01:27:32,736 - ERROR [main:c.c.c.d.t.UpgradeTool@451] - Failed to upgrade ...
      java.io.IOException: Coprocessor co.cask.cdap.data2.transaction.queue.coprocessor.hbase11.HBaseQueueRegionObserver already exists.
      	at org.apache.hadoop.hbase.HTableDescriptor.addCoprocessor(HTableDescriptor.java:1329) ~[hbase-client-1.1.2.2.3.4.7-4.jar:1.1.2.2.3.4.7-4]
      	at co.cask.cdap.data2.util.hbase.HBase11HTableDescriptorBuilder.addCoprocessor(HBase11HTableDescriptorBuilder.java:67) ~[co.cask.cdap.cdap-hbase-compat-1.1-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.dataset2.lib.hbase.AbstractHBaseDataSetAdmin.addCoprocessor(AbstractHBaseDataSetAdmin.java:225) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.dataset2.lib.hbase.AbstractHBaseDataSetAdmin.updateTable(AbstractHBaseDataSetAdmin.java:171) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.dataset2.lib.hbase.AbstractHBaseDataSetAdmin.upgrade(AbstractHBaseDataSetAdmin.java:95) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.transaction.queue.hbase.HBaseQueueAdmin.upgrade(HBaseQueueAdmin.java:457) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.transaction.queue.hbase.HBaseQueueAdmin.upgradeQueues(HBaseQueueAdmin.java:266) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.transaction.queue.hbase.HBaseQueueAdmin.access$100(HBaseQueueAdmin.java:88) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.transaction.queue.hbase.HBaseQueueAdmin$1.call(HBaseQueueAdmin.java:242) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.transaction.queue.hbase.HBaseQueueAdmin$1.call(HBaseQueueAdmin.java:239) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.security.impersonation.ImpersonationUtils$1.run(ImpersonationUtils.java:46) ~[co.cask.cdap.cdap-security-4.1.0-SNAPSHOT.jar:na]
      	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_75]
      	at javax.security.auth.Subject.doAs(Subject.java:415) ~[na:1.7.0_75]
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) ~[hadoop-common-2.7.1.2.3.4.7-4.jar:na]
      	at co.cask.cdap.security.impersonation.ImpersonationUtils.doAs(ImpersonationUtils.java:43) ~[co.cask.cdap.cdap-security-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.security.impersonation.DefaultImpersonator.doAs(DefaultImpersonator.java:62) ~[co.cask.cdap.cdap-security-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.security.impersonation.DefaultImpersonator.doAs(DefaultImpersonator.java:53) ~[co.cask.cdap.cdap-security-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data2.transaction.queue.hbase.HBaseQueueAdmin.upgrade(HBaseQueueAdmin.java:239) ~[co.cask.cdap.cdap-data-fabric-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.performCoprocessorUpgrade(UpgradeTool.java:443) ~[co.cask.cdap.cdap-master-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.performUpgrade(UpgradeTool.java:414) ~[co.cask.cdap.cdap-master-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.doMain(UpgradeTool.java:343) ~[co.cask.cdap.cdap-master-4.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.main(UpgradeTool.java:449) ~[co.cask.cdap.cdap-master-4.1.0-SNAPSHOT.jar:na]
      

      Steps to reproduce:
      1.) Create 3.5 cluster and install 4.1 rpms
      2.) Run upgrade tool twice

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              mao Chengfeng Mao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: