|
|
package com.yoho.trace.store;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.trace.anaylzer.model.ApiTraceResult;
|
|
|
import com.yoho.trace.anaylzer.model.SpanResult;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.hadoop.hbase.TableName;
|
|
|
import org.apache.hadoop.hbase.client.HTable;
|
...
|
...
|
@@ -12,11 +13,11 @@ import org.apache.spark.api.java.JavaPairRDD; |
|
|
import org.apache.spark.api.java.function.VoidFunction;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import scala.Tuple2;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yoho.trace.anaylzer.model.ApiTraceResult;
|
|
|
|
|
|
import scala.Tuple2;
|
|
|
|
|
|
/**
|
|
|
* Created by markeloff on 2017/7/26.
|
...
|
...
|
@@ -116,7 +117,6 @@ public class ApiStatisticsResultStore { |
|
|
}
|
|
|
|
|
|
resultTable.put(putList);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
logger.error(e.getMessage(),e);
|
|
|
} finally {
|
...
|
...
|
@@ -125,7 +125,6 @@ public class ApiStatisticsResultStore { |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|