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

UpgradeTool throws NullPointerException during UsageRegistry.upgrade()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|hzywdj:

      Description

      Running the UpgradeTool after beaming the release/3.1 branch to a new provisioned cluster throws the following exception:

      2015-07-22 19:28:10,867 - INFO  [main:c.c.c.d.t.UpgradeTool@358] - Upgrading System and User Datasets ...
      2015-07-22 19:28:11,057 - INFO  [main:o.q.s.RAMJobStore@155] - RAMJobStore initialized.
      Failed to perform action 'UPGRADE'. Reason: 'null'.
      java.lang.NullPointerException
      	at co.cask.cdap.data2.registry.UsageRegistry.upgrade(UsageRegistry.java:336)
      	at co.cask.cdap.data.tools.UpgradeTool.performUpgrade(UpgradeTool.java:368)
      	at co.cask.cdap.data.tools.UpgradeTool.doMain(UpgradeTool.java:305)
      	at co.cask.cdap.data.tools.UpgradeTool.main(UpgradeTool.java:405)
      2015-07-22 19:28:11,153 - ERROR [main:c.c.c.d.t.UpgradeTool@407] - Failed to upgrade ...
      java.lang.NullPointerException: null
      	at co.cask.cdap.data2.registry.UsageRegistry.upgrade(UsageRegistry.java:336) ~[co.cask.cdap.cdap-data-fabric-3.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.performUpgrade(UpgradeTool.java:368) ~[co.cask.cdap.cdap-master-3.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.doMain(UpgradeTool.java:305) ~[co.cask.cdap.cdap-master-3.1.0-SNAPSHOT.jar:na]
      	at co.cask.cdap.data.tools.UpgradeTool.main(UpgradeTool.java:405) ~[co.cask.cdap.cdap-master-3.1.0-SNAPSHOT.jar:na]
      

      The cluster is running CDH 5.4.4.

        Attachments

          Activity

            People

            • Assignee:
              rsinha Rohit Sinha
              Reporter:
              gary Gary Helmling
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: