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
d4dcf313
Commit
d4dcf313
authored
Mar 21, 2018
by
yangfangfang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.minrow.com:reyun/saasio
parents
9f88466c
07e37b22
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
41 deletions
+31
-41
pom.xml
pom.xml
+21
-28
Constant.java
src/main/java/com/reyun/util/Constant.java
+0
-5
RedisUtilNew.java
src/main/java/com/reyun/util/RedisUtilNew.java
+9
-2
common.properties
src/main/resources/common.properties
+0
-6
redis.properties
src/main/resources/redis.properties
+1
-0
No files found.
pom.xml
View file @
d4dcf313
...
...
@@ -165,7 +165,7 @@
<report.url>
http://localhost:8003/
</report.url>
<admin.url>
http://localhost:9020
</admin.url>
<receiver.host>
io-split-receiver-581358642.cn-north-1.elb
.amazonaws.com.cn
</receiver.host>
<receiver.host>
ec2-54-223-170-25.cn-north-1.compute
.amazonaws.com.cn
</receiver.host>
<receiver.port>
8081
</receiver.port>
...
...
@@ -183,7 +183,7 @@
<profile.table>
kudu.default.profile_
</profile.table>
<event.table>
tkio_bigtable_view.event_
</event.table>
<usergroup.table>
tkio_bigtable.tkio_user_group
_preview
</usergroup.table>
<usergroup.table>
tkio_bigtable.tkio_user_group
</usergroup.table>
<hive.driver>
org.apache.hive.jdbc.HiveDriver
</hive.driver>
<hive.url>
jdbc:hive2://ec2-54-223-146-236.cn-north-1.compute.amazonaws.com.cn:10000/tkio_bigtable
</hive.url>
...
...
@@ -198,9 +198,9 @@
<id>
aws
</id>
<properties>
<label>
product
</label>
<datasource.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/
tracking
io?characterEncoding=utf-8
</datasource.url>
<datasource.username>
trackingio
</datasource.username>
<datasource.password>
trackingio
</datasource.password>
<datasource.url>
jdbc:mysql://tkio.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/
user
io?characterEncoding=utf-8
</datasource.url>
<datasource.username>
reyun
</datasource.username>
<datasource.password>
Reyun123
</datasource.password>
<datasource.driver>
com.mysql.jdbc.Driver
</datasource.driver>
...
...
@@ -211,6 +211,7 @@
<redis.surl.host>
trackingioweb.nr7fi4.ng.0001.cnn1.cache.amazonaws.com.cn
</redis.surl.host>
<redis.surl.port>
6379
</redis.surl.port>
<redis.surl.database>
1
</redis.surl.database>
<redis.event.host>
trackingio-web.nr7fi4.0001.cnn1.cache.amazonaws.com.cn
</redis.event.host>
<redis.event.port>
6379
</redis.event.port>
...
...
@@ -218,17 +219,16 @@
<!--Redis setting//end-->
<awsneed>
tru
e
</awsneed>
<awsneed>
fals
e
</awsneed>
<mail.host>
smtp.exmail.qq.com
</mail.host>
<mail.username>
service
1
@reyun.com
</mail.username>
<mail.password>
XSW29ijn
</mail.password>
<mail.username>
service
4
@reyun.com
</mail.username>
<mail.password>
3xy9cUFpe4VdPuoH
</mail.password>
<mail.content_type>
text/plain;charset\=GBK
</mail.content_type>
<mail.list>
zhang
liang
@reyun.com
</mail.list>
<mail.list>
zhang
xiaoyan
@reyun.com
</mail.list>
<mail.valid_time>
4320
</mail.valid_time>
<track.url>
http://uri6.com/tkio
</track.url>
<report.url>
http://internal-report-api-976419027.cn-north-1.elb.amazonaws.com.cn
</report.url>
<admin.url>
http://ec2-54-223-136-157.cn-north-1.compute.amazonaws.com.cn:8099
</admin.url>
...
...
@@ -239,30 +239,23 @@
<event.table>
tkio_bigtable_view.event_
</event.table>
<usergroup.table>
tkio_bigtable.tkio_user_group
</usergroup.table>
<file.rootdir>
https://s3.cn-north-1.amazonaws.com.cn/reyundownload/trackingio
</file.rootdir>
<shenma.download.dir>
/data/shenmadownload/
</shenma.download.dir>
<report.export.task>
ExportReportTask
</report.export.task>
<app.debug.task>
AutoSyncAppDebugStatus
</app.debug.task>
<tkiostreamdatasource.url>
jdbc:mysql://etl.cma5jkozme68.rds.cn-north-1.amazonaws.com.cn:3306/tkio_stream?characterEncoding=utf-8
</tkiostreamdatasource.url>
<tkiostreamdatasource.username>
trackingio_rpt
</tkiostreamdatasource.username>
<tkiostreamdatasource.password>
trackingio_rpt
</tkiostreamdatasource.password>
<tkiostreamdatasource.driver>
com.mysql.jdbc.Driver
</tkiostreamdatasource.driver>
<tkiostreamdatasource.minIdle>
4
</tkiostreamdatasource.minIdle>
<tkiostreamdatasource.maxIdle>
8
</tkiostreamdatasource.maxIdle>
<tkiostreamdatasource.maxActive>
10
</tkiostreamdatasource.maxActive>
<tkiostreamdatasource.initialSize>
5
</tkiostreamdatasource.initialSize>
<tkiostreamdatasource.maxWait>
5000
</tkiostreamdatasource.maxWait>
<presto.driver>
com.facebook.presto.jdbc.PrestoDriver
</presto.driver>
<presto.url>
jdbc:presto://172.31.11.248:18889/hive/default
</presto.url>
<presto.username>
presto
</presto.username>
<presto.password></presto.password>
<presto.minconnection>
100
</presto.minconnection>
<presto.maxconnection>
500
</presto.maxconnection>
<presto.timeoutvalue>
3600000
</presto.timeoutvalue>
<tkio.url>
http://www.trackingio.com/
</tkio.url>
<hive.driver>
org.apache.hive.jdbc.HiveDriver
</hive.driver>
<hive.url>
jdbc:hive2://172.31.11.248:10000/test
</hive.url>
<hive.username>
root
</hive.username>
<iscache>
0
</iscache>
<account.check.url>
http://
trackingio
.com
</account.check.url>
<account.check.url>
http://
io.reyun
.com
</account.check.url>
<messagecode.url>
http://172.31.0.212:8890/message/sms/verifycode/send
</messagecode.url>
<ddb.accesskey>
AKIAPMJ4QRXP6BECFUVQ
</ddb.accesskey>
<ddb.secretkey>
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
</ddb.secretkey>
</properties>
</profile>
</profiles>
...
...
src/main/java/com/reyun/util/Constant.java
View file @
d4dcf313
...
...
@@ -37,11 +37,6 @@ public class Constant {
public
static
String
iscache
=
commonBundle
.
getString
(
"iscache"
);
public
static
String
receiverHost
=
commonBundle
.
getString
(
"receiver.host"
);
public
static
String
receiverPort
=
commonBundle
.
getString
(
"receiver.port"
);
public
static
String
reportExportTask
=
commonBundle
.
getString
(
"report.export.task"
);
public
static
String
appDebugTask
=
commonBundle
.
getString
(
"app.debug.task"
);
public
static
String
tkioUrl
=
commonBundle
.
getString
(
"tkio.url"
);
public
static
String
awsAccessKey
=
commonBundle
.
getString
(
"aws.accesskey"
);
public
static
String
awsSecretKey
=
commonBundle
.
getString
(
"aws.secret"
);
...
...
src/main/java/com/reyun/util/RedisUtilNew.java
View file @
d4dcf313
package
com
.
reyun
.
util
;
import
org.apache.commons.pool2.impl.GenericObjectPoolConfig
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
redis.clients.jedis.Jedis
;
...
...
@@ -25,8 +26,14 @@ public class RedisUtilNew {
private
RedisUtilNew
()
{
ResourceBundle
resourceBundle
=
ResourceBundle
.
getBundle
(
"redis"
);
pool
=
new
JedisPool
(
resourceBundle
.
getString
(
"redis.surl.host"
),
Integer
.
valueOf
(
resourceBundle
.
getString
(
"redis.surl.port"
)));
pool
=
new
JedisPool
(
new
GenericObjectPoolConfig
(),
resourceBundle
.
getString
(
"redis.surl.host"
),
Integer
.
valueOf
(
resourceBundle
.
getString
(
"redis.surl.port"
)),
Integer
.
parseInt
(
Constant
.
REDIS_IP_REQUEST_TIMES
),
null
,
Integer
.
valueOf
(
resourceBundle
.
getString
(
"redis.surl.database"
)),
null
);
}
public
static
RedisUtilNew
getInstance
()
{
...
...
src/main/resources/common.properties
View file @
d4dcf313
...
...
@@ -9,8 +9,3 @@ report.url=${report.url}
awsneed
=
${awsneed}
iscache
=
${iscache}
admin.url
=
${admin.url}
\ No newline at end of file
report.export.task
=
${report.export.task}
app.debug.task
=
${app.debug.task}
tkio.url
=
${tkio.url}
aws.accesskey
=
${aws.accesskey}
aws.secret
=
${aws.secret}
\ No newline at end of file
src/main/resources/redis.properties
View file @
d4dcf313
...
...
@@ -4,6 +4,7 @@ redis.ip.requesttimes=${redis.ip.requesttimes}
# token
redis.surl.host
=
${redis.surl.host}
redis.surl.port
=
${redis.surl.port}
redis.surl.database
=
${redis.surl.database}
# event
redis.event.host
=
${redis.event.host}
...
...
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