|
@@ -62,6 +62,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.TimelineReader.Field;
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.EventColumnName;
|
|
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.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.KeyConverter;
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.Separator;
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.Separator;
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.StringKeyConverter;
|
|
import org.apache.hadoop.yarn.server.timelineservice.storage.common.StringKeyConverter;
|
|
@@ -202,8 +203,9 @@ public class TestHBaseTimelineStorageEntities {
|
|
String flow = "some_flow_name";
|
|
String flow = "some_flow_name";
|
|
String flowVersion = "AB7822C10F1111";
|
|
String flowVersion = "AB7822C10F1111";
|
|
long runid = 1002345678919L;
|
|
long runid = 1002345678919L;
|
|
- String appName = ApplicationId.newInstance(System.currentTimeMillis() +
|
|
|
|
- 9000000L, 1).toString();
|
|
|
|
|
|
+ String appName = HBaseTimelineStorageUtils.convertApplicationIdToString(
|
|
|
|
+ ApplicationId.newInstance(System.currentTimeMillis() + 9000000L, 1)
|
|
|
|
+ );
|
|
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
|
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
|
hbi.stop();
|
|
hbi.stop();
|
|
|
|
|
|
@@ -399,8 +401,8 @@ public class TestHBaseTimelineStorageEntities {
|
|
String flow = "other_flow_name";
|
|
String flow = "other_flow_name";
|
|
String flowVersion = "1111F01C2287BA";
|
|
String flowVersion = "1111F01C2287BA";
|
|
long runid = 1009876543218L;
|
|
long runid = 1009876543218L;
|
|
- String appName = ApplicationId.newInstance(System.currentTimeMillis() +
|
|
|
|
- 9000000L, 1).toString();
|
|
|
|
|
|
+ String appName = HBaseTimelineStorageUtils.convertApplicationIdToString(
|
|
|
|
+ ApplicationId.newInstance(System.currentTimeMillis() + 9000000L, 1));
|
|
byte[] startRow =
|
|
byte[] startRow =
|
|
new EntityRowKeyPrefix(cluster, user, flow, runid, appName)
|
|
new EntityRowKeyPrefix(cluster, user, flow, runid, appName)
|
|
.getRowKeyPrefix();
|
|
.getRowKeyPrefix();
|
|
@@ -487,7 +489,9 @@ public class TestHBaseTimelineStorageEntities {
|
|
event.addInfo(expKey, expVal);
|
|
event.addInfo(expKey, expVal);
|
|
|
|
|
|
final TimelineEntity entity = new ApplicationEntity();
|
|
final TimelineEntity entity = new ApplicationEntity();
|
|
- entity.setId(ApplicationId.newInstance(0, 1).toString());
|
|
|
|
|
|
+ entity.setId(
|
|
|
|
+ HBaseTimelineStorageUtils.convertApplicationIdToString(
|
|
|
|
+ ApplicationId.newInstance(0, 1)));
|
|
entity.addEvent(event);
|
|
entity.addEvent(event);
|
|
|
|
|
|
TimelineEntities entities = new TimelineEntities();
|
|
TimelineEntities entities = new TimelineEntities();
|