YARN-5572. HBaseTimelineWriterImpl appears to reference a bad property name. Contributed by Varun Saxena.
(cherry picked from commit c06114d6a3
)
This commit is contained in:
parent
d6d73e3c99
commit
a5371f6b6e
|
@ -334,7 +334,7 @@ public class TestTimelineReaderWebServicesHBaseStorage {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, entity.getId(), te);
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, entity1.getId(), te1);
|
||||
|
|
|
@ -183,7 +183,7 @@ final class DataGeneratorForTest {
|
|||
te2.addEntity(entity2);
|
||||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(util.getConfiguration());
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(util.getConfiguration());
|
||||
hbi.start();
|
||||
String cluster = "cluster1";
|
||||
|
@ -401,7 +401,7 @@ final class DataGeneratorForTest {
|
|||
|
||||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(util.getConfiguration());
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(util.getConfiguration());
|
||||
hbi.start();
|
||||
String cluster = "cluster1";
|
||||
|
|
|
@ -155,7 +155,7 @@ public class TestHBaseTimelineStorageApps {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
String cluster = "cluster_check_null_application";
|
||||
|
@ -275,7 +275,7 @@ public class TestHBaseTimelineStorageApps {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
String cluster = "cluster_test_write_app";
|
||||
|
@ -502,7 +502,7 @@ public class TestHBaseTimelineStorageApps {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
String cluster = "cluster_test_events";
|
||||
|
@ -620,7 +620,7 @@ public class TestHBaseTimelineStorageApps {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
// Writing application entity.
|
||||
|
|
|
@ -194,7 +194,7 @@ public class TestHBaseTimelineStorageEntities {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
String cluster = "cluster_test_write_entity";
|
||||
|
@ -391,7 +391,7 @@ public class TestHBaseTimelineStorageEntities {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
String cluster = "cluster_test_empty_eventkey";
|
||||
|
@ -496,7 +496,7 @@ public class TestHBaseTimelineStorageEntities {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
try {
|
||||
Configuration c1 = util.getConfiguration();
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.start();
|
||||
String cluster = "clus!ter_\ttest_ev ents";
|
||||
|
|
|
@ -119,7 +119,7 @@ public class TestHBaseStorageFlowActivity {
|
|||
.getEntityMinStartTime(minStartTs);
|
||||
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
||||
|
||||
|
@ -229,7 +229,7 @@ public class TestHBaseStorageFlowActivity {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
String appName = "application_1111999999_1234";
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
||||
|
@ -343,7 +343,7 @@ public class TestHBaseStorageFlowActivity {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
String appName = "application_11888888888_1111";
|
||||
hbi.write(cluster, user, flow, flowVersion1, runid1, appName, te);
|
||||
|
|
|
@ -183,7 +183,7 @@ public class TestHBaseStorageFlowRun {
|
|||
.getEntityMinStartTime(minStartTs);
|
||||
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
||||
|
||||
|
@ -289,7 +289,7 @@ public class TestHBaseStorageFlowRun {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
String appName = "application_11111111111111_1111";
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
||||
|
@ -558,7 +558,7 @@ public class TestHBaseStorageFlowRun {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
String appName = "application_11111111111111_1111";
|
||||
hbi.write(cluster, user, flow, flowVersion, 1002345678919L, appName, te);
|
||||
|
@ -643,7 +643,7 @@ public class TestHBaseStorageFlowRun {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
String appName = "application_11111111111111_1111";
|
||||
hbi.write(cluster, user, flow, flowVersion, runid, appName, te);
|
||||
|
@ -736,7 +736,7 @@ public class TestHBaseStorageFlowRun {
|
|||
TimelineEntity entityApp1 = null;
|
||||
TimelineEntity entityApp2 = null;
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
|
||||
for (int i = start; i < count; i++) {
|
||||
|
@ -825,7 +825,7 @@ public class TestHBaseStorageFlowRun {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.write(cluster, user, flow, "CF7022C10F1354", 1002345678919L,
|
||||
"application_11111111111111_1111", te);
|
||||
|
@ -907,7 +907,7 @@ public class TestHBaseStorageFlowRun {
|
|||
HBaseTimelineWriterImpl hbi = null;
|
||||
Configuration c1 = util.getConfiguration();
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
hbi.write(cluster, user, flow, "CF7022C10F1354", 1002345678919L,
|
||||
"application_11111111111111_1111", te);
|
||||
|
|
|
@ -285,7 +285,7 @@ public class TestHBaseStorageFlowRunCompaction {
|
|||
TimelineEntities te1 = null;
|
||||
TimelineEntity entityApp1 = null;
|
||||
try {
|
||||
hbi = new HBaseTimelineWriterImpl(c1);
|
||||
hbi = new HBaseTimelineWriterImpl();
|
||||
hbi.init(c1);
|
||||
// now insert count * ( 100 + 100) metrics
|
||||
// each call to getEntityMetricsApp1 brings back 100 values
|
||||
|
|
|
@ -101,11 +101,6 @@ public class HBaseTimelineWriterImpl extends AbstractService implements
|
|||
super(HBaseTimelineWriterImpl.class.getName());
|
||||
}
|
||||
|
||||
public HBaseTimelineWriterImpl(Configuration conf) throws IOException {
|
||||
super(conf.get("yarn.application.id",
|
||||
HBaseTimelineWriterImpl.class.getName()));
|
||||
}
|
||||
|
||||
/**
|
||||
* initializes the hbase connection to write to the entity table.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue