|
@@ -64,6 +64,7 @@ import org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelinePrefi
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader.Field;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.EventColumnName;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.EventColumnNameConverter;
|
|
|
+import org.apache.hadoop.yarn.server.timelineservice.storage.common.HBaseTimelineStorageUtils;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.KeyConverter;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.Separator;
|
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.StringKeyConverter;
|
|
@@ -207,8 +208,8 @@ public class TestHBaseTimelineStorageEntities {
|
|
|
String flow = "some_flow_name";
|
|
|
String flowVersion = "AB7822C10F1111";
|
|
|
long runid = 1002345678919L;
|
|
|
- String appName = ApplicationId.newInstance(System.currentTimeMillis() +
|
|
|
- 9000000L, 1).toString();
|
|
|
+ String appName = HBaseTimelineStorageUtils.convertApplicationIdToString(
|
|
|
+ ApplicationId.newInstance(System.currentTimeMillis() + 9000000L, 1));
|
|
|
hbi.write(new TimelineCollectorContext(cluster, user, flow, flowVersion,
|
|
|
runid, appName), te,
|
|
|
UserGroupInformation.createRemoteUser(subAppUser));
|
|
@@ -509,8 +510,8 @@ public class TestHBaseTimelineStorageEntities {
|
|
|
String flow = "other_flow_name";
|
|
|
String flowVersion = "1111F01C2287BA";
|
|
|
long runid = 1009876543218L;
|
|
|
- String appName = ApplicationId.newInstance(System.currentTimeMillis() +
|
|
|
- 9000000L, 1).toString();
|
|
|
+ String appName = HBaseTimelineStorageUtils.convertApplicationIdToString(
|
|
|
+ ApplicationId.newInstance(System.currentTimeMillis() + 9000000L, 1));
|
|
|
byte[] startRow =
|
|
|
new EntityRowKeyPrefix(cluster, user, flow, runid, appName)
|
|
|
.getRowKeyPrefix();
|
|
@@ -601,7 +602,9 @@ public class TestHBaseTimelineStorageEntities {
|
|
|
event.addInfo(expKey, expVal);
|
|
|
|
|
|
final TimelineEntity entity = new ApplicationEntity();
|
|
|
- entity.setId(ApplicationId.newInstance(0, 1).toString());
|
|
|
+ entity.setId(
|
|
|
+ HBaseTimelineStorageUtils.convertApplicationIdToString(
|
|
|
+ ApplicationId.newInstance(0, 1)));
|
|
|
entity.addEvent(event);
|
|
|
|
|
|
TimelineEntities entities = new TimelineEntities();
|