code: public JobKey getJobKeyById(QualifiedJobId jobId) throws IOException {
      byte[] indexKey = jobIdConv.toBytes(jobId);
  
      Get g = new Get(indexKey);
      g.addColumn(Constants.INFO_FAM_BYTES, Constants.ROWKEY_COL_BYTES);
      Table historyByJobIdTable = null;
  
      try {
        historyByJobIdTable = hbaseConnection
            .getTable(TableName.valueOf(Constants.HISTORY_BY_JOBID_TABLE));
        Result r = historyByJobIdTable.get(g);
        if (r != null && !r.isEmpty()) {
          byte[] historyKey =
              r.getValue(Constants.INFO_FAM_BYTES, Constants.ROWKEY_COL_BYTES);
          if (historyKey != null && historyKey.length > 0) {
            return jobKeyConv.fromBytes(historyKey);
          }
        }
      } finally {
        if (historyByJobIdTable != null) {
          historyByJobIdTable.close();
        }
      }
      return null;
    }
docs: Returns the JobKey for the job_history table, stored for this job ID, or
  {@code null} if not found.
  @param jobId the cluster and job ID combination to look up
  @return the JobKey instance stored, or {@code null} if not found
  @throws IOException if thrown by the HBase client