#!/bin/bash
#参数配置
#jar包路径
jarPath=/app/beifa/20221008
#jar包名称
jarName=htsc-svc-data-migration-10-08
#log日志输出路径
logPath=/app/betalpha/htsc/log/mig
#jdk17路径
javaPath=/app/beifa/jdk-17/bin
#服务端口(这个端口不会一直占用)
migJobPort=8091
#倍发服务数据库
htscMysqlHost=168.63.1.128
htscMysqlPort=3306
htscMysqlUsername=fpe_app
htscMysqlPwd=SZ_heqi_5577
htscMysqlDatabase=fpe_app
echo "start up htsc-data-migration!"
nohup ${javaPath}/java -Dspring.flyway.schemas=${htscMysqlDatabase} -DLOG_BASE_PATH=${logPath} -Dserver.port=${migJobPort} -Dmysql.host=${htscMysqlHost} -Dmysql.port=${htscMysqlPort} -Dmysql.database=${htscMysqlDatabase} -Dmysql.username=${htscMysqlUsername} -Dmysql.password=${htscMysqlPwd} -jar ${jarPath}/${jarName}.jar $* >/dev/null 2>&1 &
echo "htsc-data-migration start success!"
#!/bin/bash
#参数配置
#jar包路径
jarPath=/app/beifa/20221008
#jar包名称
jarName=htsc-svc-data-etl-10-08-v2
#log日志输出路径
logPath=/app/betalpha/htsc/log/etl
#jdk17路径
javaPath=/app/beifa/jdk-17/bin
#服务端口
serverPort=8089
jmxPort=9090
#倍发因子数据路径
betalphaFundFactorDataPath=/app/beifa
#数据存储路径
dataStorePath=/app/betalpha/htsc/data
#倍发服务数据库
htscMysqlHost=168.63.1.128
htscMysqlPort=3306
htscMysqlUsername=fpe_app
htscMysqlPwd=SZ_heqi_5577
htscMysqlDatabase=fpe_app
#华泰原始数据
#基金
htFundMysqlHost=168.63.1.78
htFundMysqlPort=3308
htFundMysqlUsername=zcpz_pm
htFundMysqlPwd=Hmk_987_LueQ
htFundMysqlDatabase=zcpz_pm
#股票
htStockMysqlHost=168.61.53.47
htStockMysqlPort=3309
htStockMysqlUsername=zcpz_indexbox
htStockMysqlPwd=XS_tivm_0443
htStockMysqlDatabase=indextoobox
#邮件监控
emailReceivers=TecDevReceive@htzq.htsc.com.cn
emailApiUrl=http://168.61.127.58:8082/tec/fusion/api/test/sendMail
echo "start up htsc-tel-server!"
nohup ${javaPath}/java -Xmx12g -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5012 -Djava.util.concurrent.ForkJoinPool.common.parallelism=40 -DLOG_BASE_PATH=${logPath} -Dcom.sun.management.jmxremote.port=9092 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false --add-opens=java.base/java.nio=ALL-UNNAMED -Ddata.parquet.parentDirectory=${betalphaFundFactorDataPath} -Ddata.store.parentDirectory=${dataStorePath} -Dserver.port=${serverPort} -Dmanagement.server.port=${jmxPort} -Dmysql.host=${htscMysqlHost} -Dmysql.port=${htscMysqlPort} -Dmysql.database=${htscMysqlDatabase} -Dmysql.username=${htscMysqlUsername} -Dmysql.password=${htscMysqlPwd} -Dthirdparty.fund.mysql.host=${htFundMysqlHost} -Dthirdparty.fund.mysql.port=${htFundMysqlPort} -Dthirdparty.fund.mysql.database=${htFundMysqlDatabase} -Dthirdparty.fund.mysql.username=${htFundMysqlUsername} -Dthirdparty.fund.mysql.password=${htFundMysqlPwd} -Dthirdparty.stock.mysql.host=${htStockMysqlHost} -Dthirdparty.stock.mysql.port=${htStockMysqlPort} -Dthirdparty.stock.mysql.database=${htStockMysqlDatabase} -Dthirdparty.stock.mysql.username=${htStockMysqlUsername} -Dthirdparty.stock.mysql.password=${htStockMysqlPwd} -Demail.receivers=${emailReceivers} -Demail.url=${emailApiUrl} -jar ${jarPath}/${jarName}.jar >/dev/null 2>&1 &