Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
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
reyun
saasio
Commits
7ec5797e
Commit
7ec5797e
authored
Apr 03, 2018
by
carrieyzzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis db config
parent
a9d8f9c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
pom.xml
pom.xml
+4
-2
SqlUtil.java
src/main/java/com/reyun/util/SqlUtil.java
+10
-0
applicationContext-schedule.xml
src/main/resources/applicationContext-schedule.xml
+6
-6
No files found.
pom.xml
View file @
7ec5797e
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
<redis.surl.host>
192.168.2.57
</redis.surl.host>
<redis.surl.host>
192.168.2.57
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.surl.port>
6379
</redis.surl.port>
<redis.surl.database>
1
</redis.surl.database>
<redis.event.host>
192.168.2.57
</redis.event.host>
<redis.event.host>
192.168.2.57
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.port>
6379
</redis.event.port>
...
@@ -78,11 +79,11 @@
...
@@ -78,11 +79,11 @@
<report.url>
http://172.31.1.122:9010
</report.url>
<report.url>
http://172.31.1.122:9010
</report.url>
<presto.driver>
com.facebook.presto.jdbc.PrestoDriver
</presto.driver>
<presto.driver>
com.facebook.presto.jdbc.PrestoDriver
</presto.driver>
<presto.url>
jdbc:presto://
172.31.11.248:1
8889/hive/default
</presto.url>
<presto.url>
jdbc:presto://
ec2-54-223-169-225.cn-north-1.compute.amazonaws.com.cn:
8889/hive/default
</presto.url>
<presto.username>
root
</presto.username>
<presto.username>
root
</presto.username>
<profile.table>
kudu.default.profile_
</profile.table>
<profile.table>
kudu.default.profile_
</profile.table>
<event.table>
tkio_bigtable
_view
.event_
</event.table>
<event.table>
tkio_bigtable.event_
</event.table>
<usergroup.table>
tkio_bigtable.tkio_user_group_preview
</usergroup.table>
<usergroup.table>
tkio_bigtable.tkio_user_group_preview
</usergroup.table>
<hive.driver>
org.apache.hive.jdbc.HiveDriver
</hive.driver>
<hive.driver>
org.apache.hive.jdbc.HiveDriver
</hive.driver>
...
@@ -167,6 +168,7 @@
...
@@ -167,6 +168,7 @@
<redis.surl.port>
6379
</redis.surl.port>
<redis.surl.port>
6379
</redis.surl.port>
<cache.livetime>
300
</cache.livetime>
<cache.livetime>
300
</cache.livetime>
<iscache>
0
</iscache>
<iscache>
0
</iscache>
<redis.surl.database>
1
</redis.surl.database>
<redis.event.host>
io-split-wenqiang.dgfxhr.0001.cnn1.cache.amazonaws.com.cn
</redis.event.host>
<redis.event.host>
io-split-wenqiang.dgfxhr.0001.cnn1.cache.amazonaws.com.cn
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
<redis.event.port>
6379
</redis.event.port>
...
...
src/main/java/com/reyun/util/SqlUtil.java
View file @
7ec5797e
...
@@ -9,7 +9,9 @@ import net.sf.json.JSONObject;
...
@@ -9,7 +9,9 @@ import net.sf.json.JSONObject;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.net.URLDecoder
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -94,6 +96,14 @@ public class SqlUtil
...
@@ -94,6 +96,14 @@ public class SqlUtil
StringBuilder
sqlWhere
=
new
StringBuilder
();
StringBuilder
sqlWhere
=
new
StringBuilder
();
sqlWhere
.
append
(
" 1 = 1 "
);
sqlWhere
.
append
(
" 1 = 1 "
);
/* if (!StringUtil.isEmpty(eventCondition)) {
try {
eventCondition = URLDecoder.decode(eventCondition, "utf-8");
} catch (UnsupportedEncodingException e) {
System.out.println("fail to decode eventcondition");
}
}*/
JSONObject
conditionObject
=
JSONObject
.
fromObject
(
eventCondition
);
JSONObject
conditionObject
=
JSONObject
.
fromObject
(
eventCondition
);
String
eventName
=
conditionObject
.
getString
(
"event"
);
String
eventName
=
conditionObject
.
getString
(
"event"
);
...
...
src/main/resources/applicationContext-schedule.xml
View file @
7ec5797e
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
<description>
调度配置
</description>
<description>
调度配置
</description>
<
!--<bean id="autoCalculateFlow" class="com.reyun.task.AutoCalculateFlow"></bean>--
>
<
bean
id=
"autoCalculateFlow"
class=
"com.reyun.task.AutoCalculateFlow"
></bean
>
<
!--<bean id="exportReportTask" class="com.reyun.task.ExportReportTask"></bean>--
>
<
bean
id=
"exportReportTask"
class=
"com.reyun.task.ExportReportTask"
></bean
>
<
!--<task:scheduled-tasks>--
>
<
task:scheduled-tasks
>
<
!--<task:scheduled ref="autoCalculateFlow" method="run" cron="0 0 7 * * ?"/>--
>
<
task:scheduled
ref=
"autoCalculateFlow"
method=
"run"
cron=
"0 0 7 * * ?"
/
>
<
!--<task:scheduled ref="exportReportTask" method="run" cron="0 */2 * * * ?"/>--
>
<
task:scheduled
ref=
"exportReportTask"
method=
"run"
cron=
"0 */2 * * * ?"
/
>
<
!--</task:scheduled-tasks>--
>
<
/task:scheduled-tasks
>
</beans>
</beans>
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