Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flink-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵建伟
flink-monitor
Commits
d0fabd6d
Commit
d0fabd6d
authored
Mar 29, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
6a313462
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
start.sh
bin/start.sh
+1
-1
SimpleCacheService.java
.../java/com/gmei/data/monitor/cache/SimpleCacheService.java
+1
-1
RichAsyncFunctionOperator.java
...gmei/data/monitor/operator/RichAsyncFunctionOperator.java
+1
-1
No files found.
bin/start.sh
View file @
d0fabd6d
...
@@ -31,7 +31,7 @@ $JAR_DIR/flink-monitor-1.0-SNAPSHOT.jar \
...
@@ -31,7 +31,7 @@ $JAR_DIR/flink-monitor-1.0-SNAPSHOT.jar \
--retryInteral
3000
\
--retryInteral
3000
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/flink-monitor/checkpoint'
\
--checkpointPath
'hdfs://bj-gmei-hdfs/user/data/flink/flink-monitor/checkpoint'
\
--parallelism
12
\
--parallelism
12
\
--startTime
'2020-03-29 1
4:33
:00'
\
--startTime
'2020-03-29 1
5:00
:00'
\
>>
/data/log/flink-monitor/flink-monitor.out 2>&1 &
>>
/data/log/flink-monitor/flink-monitor.out 2>&1 &
tail
-10f
/data/log/flink-monitor/flink-monitor.out
tail
-10f
/data/log/flink-monitor/flink-monitor.out
...
...
src/main/java/com/gmei/data/monitor/cache/SimpleCacheService.java
View file @
d0fabd6d
...
@@ -63,7 +63,7 @@ public class SimpleCacheService<K, V> extends CacheService<K, V> {
...
@@ -63,7 +63,7 @@ public class SimpleCacheService<K, V> extends CacheService<K, V> {
cache
=
CacheBuilder
cache
=
CacheBuilder
.
newBuilder
()
.
newBuilder
()
.
maximumSize
(
maximumSize
)
.
maximumSize
(
maximumSize
)
.
expireAfterWrite
(
expireAfterWrite
,
TimeUnit
.
HOUR
S
)
.
expireAfterWrite
(
expireAfterWrite
,
TimeUnit
.
MILLISECOND
S
)
.
build
();
.
build
();
}
}
}
}
src/main/java/com/gmei/data/monitor/operator/RichAsyncFunctionOperator.java
View file @
d0fabd6d
...
@@ -15,7 +15,7 @@ import java.util.concurrent.Future;
...
@@ -15,7 +15,7 @@ import java.util.concurrent.Future;
import
static
java
.
util
.
concurrent
.
Executors
.
newFixedThreadPool
;
import
static
java
.
util
.
concurrent
.
Executors
.
newFixedThreadPool
;
public
class
RichAsyncFunctionOperator
extends
RichAsyncFunction
<
JSONObject
,
JSONObject
>
{
public
class
RichAsyncFunctionOperator
extends
RichAsyncFunction
<
JSONObject
,
JSONObject
>
{
public
static
final
SimpleCacheService
<
Integer
,
String
>
deviceCache
=
new
SimpleCacheService
<
Integer
,
String
>(
2000
,
24
);
public
static
final
SimpleCacheService
<
Integer
,
String
>
deviceCache
=
new
SimpleCacheService
<
Integer
,
String
>(
2000
,
10
);
public
String
inJdbcUrl
;
public
String
inJdbcUrl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment