anchor.diff:    `location` VARCHAR(45) NULL,
     `level` INT NULL,
     `parent` VARCHAR(45) NULL,
  +  `pendingeventid` INT,
     PRIMARY KEY (`nodeid`),
     INDEX `name` (`name` ASC, `location` ASC),
     CONSTRAINT `nodeid`
  -    FOREIGN KEY (`nodeid`)
  -    REFERENCES `yarn_rmnode` (`rmnodeid`)
  -    ON DELETE CASCADE
  -    ON UPDATE NO ACTION
  +  FOREIGN KEY (`nodeid`)
  +  REFERENCES `yarn_rmnode` (`rmnodeid`)
  +  ON DELETE CASCADE
  +  ON UPDATE NO ACTION
   ) ENGINE=ndbcluster DEFAULT CHARSET=latin1 PARTITION BY KEY(nodeid) $$
   
   
  
positive.code:     REFERENCES `yarn_schedulerapplication` (`appid`)
      ON DELETE CASCADE
      ON UPDATE NO ACTION
  ) ENGINE=ndbcluster DEFAULT CHARSET=latin1$$
  
  
  delimiter $$
  
negative.code:   `state` VARCHAR(45) NULL,
    `diagnostics` VARCHAR(2000) NULL,
    `exitstatus` INT NULL,
    `pendingeventid` INT,
    PRIMARY KEY (`containerid`, `rmnodeid`),
    INDEX `rmnodeid_idx` (`rmnodeid` ASC),
    CONSTRAINT `rmnodeid`
    FOREIGN KEY (`rmnodeid`)
    REFERENCES `yarn_rmnode` (`rmnodeid`)
    ON DELETE CASCADE
    ON UPDATE NO ACTION
  ) ENGINE=ndbcluster DEFAULT CHARSET=latin1 PARTITION BY KEY(`rmnodeid`)$$
  
  
  
  
  delimiter $$
  
  
  
  CREATE TABLE `yarn_justlaunchedcontainers` (
    `rmnodeid` VARCHAR(45) NOT NULL,
    `containerid` VARCHAR(45) NOT NULL,
    PRIMARY KEY (`containerid`, `rmnodeid`),
    INDEX `rmnodeid_idx` (`rmnodeid` ASC),
    CONSTRAINT `rmnodeid`
  