private static String getHiveTableLocation(String createSql) {
        String locationSql = fetchByRegx(createSql, "LOCATION\\s+'.+'");
        return StringUtils.strip(StringUtils.removeStart(locationSql, "LOCATION").trim(), "'");
    }
A tool which move realtime data in rt folder into history partition.
Only support one partition column.
It only works on indexr tables which has a hive table with location pointed to the same path and with a table partition column.
indexr-server/src/main/java/io/indexr/server/rt2his/Rt2HisOnHive.java