Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_50753323
TDengine
提交
d0059dff
T
TDengine
项目概览
qq_50753323
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d0059dff
编写于
8月 02, 2020
作者:
S
Shuduo Sang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix hard code server ip in opentsdb test program.
[TD-1042]
上级
ad41a5ad
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
16 deletion
+10
-16
tests/comparisonTest/opentsdb/opentsdbtest/pom.xml
tests/comparisonTest/opentsdb/opentsdbtest/pom.xml
+0
-10
tests/comparisonTest/opentsdb/opentsdbtest/src/main/java/com/opentsdb/test/OpentsdbTest.java
...sdbtest/src/main/java/com/opentsdb/test/OpentsdbTest.java
+8
-3
tests/comparisonTest/opentsdb/opentsdbtest/src/main/java/com/opentsdb/test/WriteThread.java
...tsdbtest/src/main/java/com/opentsdb/test/WriteThread.java
+2
-3
未找到文件。
tests/comparisonTest/opentsdb/opentsdbtest/pom.xml
浏览文件 @
d0059dff
...
@@ -206,16 +206,6 @@
...
@@ -206,16 +206,6 @@
<artifactId>
slf4j-api
</artifactId>
<artifactId>
slf4j-api
</artifactId>
<version>
1.7.25
</version>
<version>
1.7.25
</version>
</dependency>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
1.7.21
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
log4j-over-slf4j
</artifactId>
<version>
1.7.7
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<groupId>
org.apache.logging.log4j
</groupId>
...
...
tests/comparisonTest/opentsdb/opentsdbtest/src/main/java/com/opentsdb/test/OpentsdbTest.java
浏览文件 @
d0059dff
import
com.stumbleupon.async.Callback
;
import
com.stumbleupon.async.Callback
;
import
com.stumbleupon.async.Deferred
;
import
com.stumbleupon.async.Deferred
;
import
lombok.extern.slf4j.Slf4j
;
import
net.opentsdb.core.TSDB
;
import
net.opentsdb.core.TSDB
;
import
net.opentsdb.uid.NoSuchUniqueName
;
import
net.opentsdb.uid.NoSuchUniqueName
;
...
@@ -40,13 +39,19 @@ import java.util.concurrent.*;
...
@@ -40,13 +39,19 @@ import java.util.concurrent.*;
import
java.math.*
;
import
java.math.*
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Method
;
import
org.apache.log4j.Logger
;
import
org.apache.log4j.LogManager
;
import
org.apache.log4j.Level
;
public
class
OpentsdbTest
{
public
class
OpentsdbTest
{
//static { System.setProperty("logback.configurationFile", "/home/ubuntu/fang/opentsdb/opentsdbtest/logback.xml");}
//static { System.setProperty("logback.configurationFile", "/home/ubuntu/fang/opentsdb/opentsdbtest/logback.xml");}
static
{
System
.
setProperty
(
"logback.configurationFile"
,
"/etc/opentsdb/logback.xml"
);}
static
{
System
.
setProperty
(
"logback.configurationFile"
,
"/etc/opentsdb/logback.xml"
);}
public
static
void
main
(
String
args
[])
{
public
static
void
main
(
String
args
[])
{
Logger
logger
=
LogManager
.
getLogger
(
OpentsdbTest
.
class
);
logger
.
setLevel
(
Level
.
OFF
);
// begin to parse argument
// begin to parse argument
String
datadir
=
"/home/ubuntu/testdata"
;
String
datadir
=
"/home/ubuntu/testdata"
;
String
sqlchoice
=
"q1"
;
String
sqlchoice
=
"q1"
;
...
@@ -156,7 +161,7 @@ public class OpentsdbTest{
...
@@ -156,7 +161,7 @@ public class OpentsdbTest{
}
}
switch
(
sqlchoice
)
{
switch
(
sqlchoice
)
{
case
"q1"
:
case
"q1"
:
get_url
=
"http://1
92.168.1.114
:4242/api/query?"
;
get_url
=
"http://1
27.0.0.1
:4242/api/query?"
;
/*
/*
get_url = get_url + "start=1563249700&m=none:temperature{devgroup=";
get_url = get_url + "start=1563249700&m=none:temperature{devgroup=";
get_url = get_url + String.valueOf(ig-10) +"}";
get_url = get_url + String.valueOf(ig-10) +"}";
...
...
tests/comparisonTest/opentsdb/opentsdbtest/src/main/java/com/opentsdb/test/WriteThread.java
浏览文件 @
d0059dff
import
com.stumbleupon.async.Callback
;
import
com.stumbleupon.async.Callback
;
import
com.stumbleupon.async.Deferred
;
import
com.stumbleupon.async.Deferred
;
import
lombok.extern.slf4j.Slf4j
;
import
net.opentsdb.core.TSDB
;
import
net.opentsdb.core.TSDB
;
import
net.opentsdb.uid.NoSuchUniqueName
;
import
net.opentsdb.uid.NoSuchUniqueName
;
...
@@ -64,7 +63,7 @@ public class WriteThread extends Thread {
...
@@ -64,7 +63,7 @@ public class WriteThread extends Thread {
public
void
run
()
{
public
void
run
()
{
StringEntity
stringEntity
;
StringEntity
stringEntity
;
String
port
=
"4242"
;
String
port
=
"4242"
;
String
put_url
=
"http://1
92.168.1.114
:"
+
port
+
"/api/put?summary"
;
String
put_url
=
"http://1
27.0.0.1
:"
+
port
+
"/api/put?summary"
;
try
(
CloseableHttpClient
httpclient
=
HttpClients
.
createDefault
())
{
try
(
CloseableHttpClient
httpclient
=
HttpClients
.
createDefault
())
{
/*
/*
httpclient.getHttpConnectionManager().getParams()
httpclient.getHttpConnectionManager().getParams()
...
@@ -152,4 +151,4 @@ public class WriteThread extends Thread {
...
@@ -152,4 +151,4 @@ public class WriteThread extends Thread {
System
.
out
.
println
(
"failed to connect"
);
System
.
out
.
println
(
"failed to connect"
);
}
}
}
//end run
}
//end run
}
//end class
}
//end class
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录