Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
6f042e78
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6f042e78
编写于
2月 01, 2016
作者:
S
Stephan Ewen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[hotfix] Reduce the heavy sysout verbosity for certain tests
上级
21a71586
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
13 deletion
+15
-13
flink-tests/src/test/java/org/apache/flink/test/classloading/jar/CheckpointedStreamingProgram.java
...k/test/classloading/jar/CheckpointedStreamingProgram.java
+0
-10
flink-tests/src/test/java/org/apache/flink/test/recovery/FastFailuresITCase.java
...va/org/apache/flink/test/recovery/FastFailuresITCase.java
+15
-3
未找到文件。
flink-tests/src/test/java/org/apache/flink/test/classloading/jar/CheckpointedStreamingProgram.java
浏览文件 @
6f042e78
...
...
@@ -27,8 +27,6 @@ import org.apache.flink.streaming.api.functions.sink.SinkFunction;
import
org.apache.flink.streaming.api.functions.source.SourceFunction
;
import
java.lang.RuntimeException
;
import
java.net.URL
;
import
java.net.URLClassLoader
;
/**
* A simple streaming program, which is using the state checkpointing of Flink.
...
...
@@ -40,14 +38,6 @@ public class CheckpointedStreamingProgram {
private
static
final
int
CHECKPOINT_INTERVALL
=
100
;
public
static
void
main
(
String
[]
args
)
throws
Exception
{
ClassLoader
cl
=
ClassLoader
.
getSystemClassLoader
();
URL
[]
urls
=
((
URLClassLoader
)
cl
).
getURLs
();
for
(
URL
url:
urls
){
System
.
out
.
println
(
url
.
getFile
());
}
System
.
out
.
println
(
"CheckpointedStreamingProgram classpath: "
);
final
String
jarFile
=
args
[
0
];
final
String
host
=
args
[
1
];
final
int
port
=
Integer
.
parseInt
(
args
[
2
]);
...
...
flink-tests/src/test/java/org/apache/flink/test/recovery/FastFailuresITCase.java
浏览文件 @
6f042e78
...
...
@@ -21,11 +21,13 @@ package org.apache.flink.test.recovery;
import
org.apache.flink.api.common.functions.MapFunction
;
import
org.apache.flink.api.java.tuple.Tuple2
;
import
org.apache.flink.configuration.ConfigConstants
;
import
org.apache.flink.configuration.Configuration
;
import
org.apache.flink.streaming.api.datastream.DataStream
;
import
org.apache.flink.streaming.api.environment.StreamExecutionEnvironment
;
import
org.apache.flink.streaming.api.functions.sink.SinkFunction
;
import
org.apache.flink.streaming.api.functions.source.RichSourceFunction
;
import
org.apache.flink.test.util.ForkableFlinkMiniCluster
;
import
org.junit.Test
;
...
...
@@ -33,6 +35,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import
static
org
.
junit
.
Assert
.
fail
;
@SuppressWarnings
(
"serial"
)
public
class
FastFailuresITCase
{
static
final
AtomicInteger
FAILURES_SO_FAR
=
new
AtomicInteger
();
...
...
@@ -40,12 +43,21 @@ public class FastFailuresITCase {
@Test
public
void
testThis
()
{
StreamExecutionEnvironment
env
=
StreamExecutionEnvironment
.
getExecutionEnvironment
();
Configuration
config
=
new
Configuration
();
config
.
setInteger
(
ConfigConstants
.
LOCAL_NUMBER_TASK_MANAGER
,
2
);
config
.
setInteger
(
ConfigConstants
.
TASK_MANAGER_NUM_TASK_SLOTS
,
2
);
ForkableFlinkMiniCluster
cluster
=
new
ForkableFlinkMiniCluster
(
config
,
false
);
cluster
.
start
();
StreamExecutionEnvironment
env
=
StreamExecutionEnvironment
.
createRemoteEnvironment
(
"localhost"
,
cluster
.
getLeaderRPCPort
());
env
.
getConfig
().
disableSysoutLogging
();
env
.
getConfig
().
setExecutionRetryDelay
(
0
);
env
.
setParallelism
(
4
);
env
.
enableCheckpointing
(
1000
);
DataStream
<
Tuple2
<
Integer
,
Integer
>>
input
=
env
.
addSource
(
new
RichSourceFunction
<
Tuple2
<
Integer
,
Integer
>>()
{
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录