数据初始化报错

用户1579070951 2个月前
215次浏览 0人关注 复制链接 所属标签: 数据初始化

2019-09-12 10:11:51.131 [manager-InitLicense] INFO c.m.v2.c3p0.impl.AbstractPoolBackedDataSource -Initializing c3p0 pool… com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> true, automaticTestTable -> c3p0test, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> ark_manager, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 30x5hua59s0hq616le8xi|6a6cb05c, idleConnectionTestPeriod -> 180, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://ark1.analysys.xyz:3306/ark_manager?useUnicode=true&rewriteBatchedStatements=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true&autoReconnectForPools=true, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=, password=}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
2019-09-12 10:11:51.439 [manager-InitLicense] ERROR c.a.ark.streaming.dao.impl.ArkManagerDaoImpl -com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘ark_manager.ark_enterprise’ doesn’t exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.Util.getInstance(Util.java:387)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:353)
at cn.analysys.ark.streaming.dao.impl.ArkManagerDaoImpl.checkEnterprise(ArkManagerDaoImpl.java:863)
at cn.analysys.ark.streaming.service.ArkManagerService.checkEnterprise(ArkManagerService.java:163)
at cn.analysys.ark.streaming.manager.shell.InitLicense.main(InitLicense.java:26)

Exception in thread “manager-InitLicense” java.lang.RuntimeException: sql: SELECT count(id) as cnt from ark_manager.ark_enterprise WHERE id = ?
at cn.analysys.ark.streaming.dao.impl.ArkManagerDaoImpl.checkEnterprise(ArkManagerDaoImpl.java:876)
at cn.analysys.ark.streaming.service.ArkManagerService.checkEnterprise(ArkManagerService.java:163)
at cn.analysys.ark.streaming.manager.shell.InitLicense.main(InitLicense.java:26)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘ark_manager.ark_enterprise’ doesn’t exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.Util.getInstance(Util.java:387)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:353)
at cn.analysys.ark.streaming.dao.impl.ArkManagerDaoImpl.checkEnterprise(ArkManagerDaoImpl.java:863)
… 2 more
——————————————————————-导入license成功———————————————————-

set -e
‘[‘ streaming ‘!=’ streaming ‘]’
‘[‘ 2 -ne 2 ‘]’
++ grep MYSQL_ARK_MANAGER_DB_USERNAME= /opt/soft/streaming/conf/config.properties
manager_db_username=MYSQL_ARK_MANAGER_DB_USERNAME=ark_admin
manager_db_username=ark_admin
++ grep MYSQL_ARK_MANAGER_DB_PASSWORD= /opt/soft/streaming/conf/config.properties
manager_db_password=MYSQL_ARK_MANAGER_DB_PASSWORD=ark_Admin@0927Da
manager_db_password=ark_Admin@0927Da
++ grep MYSQL_HOST= /opt/soft/streaming/conf/config.properties
mysql_host=MYSQL_HOST=ark1.analysys.xyz
mysql_host=ark1.analysys.xyz
enterprise_code=wByeDrLc
enterprise_id=1
enterprise_id=1
update_sql=’update ark_manager.ark_enterprise set enterprise_code = ‘’’wByeDrLc’’’ where id = 1’
mysql -uark_admin -park_Admin@0927Da -hark1.analysys.xyz -N ‘-eupdate ark_manager.ark_enterprise set enterprise_code = ‘’’wByeDrLc’’’ where id = 1’
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table ‘ark_manager.ark_enterprise’ doesn’t exist

2条回答
用户1579070951 2个月前

所有脚本执行完成,部署完成! 如果没有其它问题,请删除/opt/soft/analysys_installer.tar.gz压缩包!
Thank You !
开始导入License,请耐心等待
10:11:49,300 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
10:11:49,300 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
10:11:49,300 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/opt/soft/streaming-build-0.3.16.7/conf/logback.xml]
10:11:49,301 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
10:11:49,301 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/opt/soft/streaming-build-0.3.16.7/jars/streaming-manager-0.3.16.7-proto3-pg.jar!/logback.xml]
10:11:49,301 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/opt/soft/streaming-build-0.3.16.7/conf/logback.xml]
10:11:49,410 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:11:49,418 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan for changes in [file:/opt/soft/streaming-build-0.3.16.7/conf/logback.xml]
10:11:49,418 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 2 minutes
10:11:49,420 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper] to WARN
10:11:49,420 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.hbase] to WARN
10:11:49,420 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.hadoop] to WARN
10:11:49,421 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:11:49,423 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
10:11:49,464 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [cn.analysys.ark.streaming.common.log.JobLogAppender]
10:11:49,466 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [JOBLOGFILE]
10:11:49,468 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,469 |-INFO in cn.analysys.ark.streaming.common.log.JobLogAppender[JOBLOGFILE] - File property is set to [/opt/soft/log/ark-streaming//{appKey}/{jobId}.log]
10:11:49,470 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,471 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [DumpSchedulerFile]
10:11:49,472 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@29:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,486 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1635985705 - No compression will be used
10:11:49,487 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1635985705 - Will use the pattern /opt/soft/log/ark-streaming//dump_scheduler.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,489 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29774679 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//dump_scheduler.%d{yyyy-MM-dd}.log.%i'.
10:11:49,489 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29774679 - Roll-over at midnight.
10:11:49,492 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29774679 - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,492 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29774679 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,492 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@29774679 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,494 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,495 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[DumpSchedulerFile] - Active log file name: /opt/soft/log/ark-streaming//dump_scheduler.log
10:11:49,495 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[DumpSchedulerFile] - File property is set to [/opt/soft/log/ark-streaming//dump_scheduler.log]
10:11:49,495 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,495 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [RpcServerFile]
10:11:49,496 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@48:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,497 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1073502961 - No compression will be used
10:11:49,497 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1073502961 - Will use the pattern /opt/soft/log/ark-streaming//rpc_server.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,498 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5e5792a0 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//rpc_server.%d{yyyy-MM-dd}.log.%i'.
10:11:49,498 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5e5792a0 - Roll-over at midnight.
10:11:49,498 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5e5792a0 - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,498 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5e5792a0 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,498 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5e5792a0 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,498 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,499 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[RpcServerFile] - Active log file name: /opt/soft/log/ark-streaming//rpc_server.log
10:11:49,499 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[RpcServerFile] - File property is set to [/opt/soft/log/ark-streaming//rpc_server.log]
10:11:49,499 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,499 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [MergeSchedulerFile]
10:11:49,500 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@66:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,501 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@644166178 - No compression will be used
10:11:49,501 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@644166178 - Will use the pattern /opt/soft/log/ark-streaming//merge_scheduler.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,501 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3532ec19 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//merge_scheduler.%d{yyyy-MM-dd}.log.%i'.
10:11:49,501 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3532ec19 - Roll-over at midnight.
10:11:49,502 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3532ec19 - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,502 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3532ec19 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,502 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@3532ec19 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,502 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,503 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[MergeSchedulerFile] - Active log file name: /opt/soft/log/ark-streaming//merge_scheduler.log
10:11:49,503 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[MergeSchedulerFile] - File property is set to [/opt/soft/log/ark-streaming//merge_scheduler.log]
10:11:49,503 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,503 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [METRICSFILE]
10:11:49,503 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@84:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,504 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1757676444 - No compression will be used
10:11:49,504 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1757676444 - Will use the pattern /opt/soft/log/ark-streaming//streaming_metrics.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,505 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@ae45eb6 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//streaming_metrics.%d{yyyy-MM-dd}.log.%i'.
10:11:49,505 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@ae45eb6 - Roll-over at midnight.
10:11:49,505 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@ae45eb6 - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,505 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@ae45eb6 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,505 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@ae45eb6 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,506 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,506 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[METRICSFILE] - Active log file name: /opt/soft/log/ark-streaming//streaming_metrics.log
10:11:49,506 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[METRICSFILE] - File property is set to [/opt/soft/log/ark-streaming//streaming_metrics.log]
10:11:49,506 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,506 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [JobSchedulerFile]
10:11:49,507 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@102:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,508 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@94345706 - No compression will be used
10:11:49,508 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@94345706 - Will use the pattern /opt/soft/log/ark-streaming//job_scheduler.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,511 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27efef64 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//job_scheduler.%d{yyyy-MM-dd}.log.%i'.
10:11:49,511 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27efef64 - Roll-over at midnight.
10:11:49,512 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27efef64 - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,512 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27efef64 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,512 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27efef64 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,512 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,512 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[JobSchedulerFile] - Active log file name: /opt/soft/log/ark-streaming//job_scheduler.log
10:11:49,512 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[JobSchedulerFile] - File property is set to [/opt/soft/log/ark-streaming//job_scheduler.log]
10:11:49,512 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,513 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [JobCommandScannerFile]
10:11:49,513 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@121:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,514 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1870647526 - No compression will be used
10:11:49,514 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1870647526 - Will use the pattern /opt/soft/log/ark-streaming//job_command_scanner.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,514 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@47c62251 - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//job_command_scanner.%d{yyyy-MM-dd}.log.%i'.
10:11:49,514 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@47c62251 - Roll-over at midnight.
10:11:49,515 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@47c62251 - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,515 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@47c62251 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,515 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@47c62251 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,515 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,516 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[JobCommandScannerFile] - Active log file name: /opt/soft/log/ark-streaming//job_command_scanner.log
10:11:49,516 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[JobCommandScannerFile] - File property is set to [/opt/soft/log/ark-streaming//job_command_scanner.log]
10:11:49,516 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,516 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [RestartAppLogFile]
10:11:49,516 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@139:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,517 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1047503754 - No compression will be used
10:11:49,517 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1047503754 - Will use the pattern /opt/soft/log/ark-streaming//RestartApp.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,518 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@66a3ffec - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//RestartApp.%d{yyyy-MM-dd}.log.%i'.
10:11:49,518 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@66a3ffec - Roll-over at midnight.
10:11:49,518 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@66a3ffec - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,518 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@66a3ffec - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,518 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@66a3ffec - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,518 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,519 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[RestartAppLogFile] - Active log file name: /opt/soft/log/ark-streaming//RestartApp.log
10:11:49,519 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[RestartAppLogFile] - File property is set to [/opt/soft/log/ark-streaming//RestartApp.log]
10:11:49,519 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:11:49,520 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [MANAGERLOGFILE]
10:11:49,520 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@157:11 - no applicable action for [level], current ElementPath is [[configuration][appender][filter][level]]
10:11:49,521 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2009787198 - No compression will be used
10:11:49,523 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2009787198 - Will use the pattern /opt/soft/log/ark-streaming//manager.%d{yyyy-MM-dd}.log.%i for the active file
10:11:49,524 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1e88b3c - The date pattern is 'yyyy-MM-dd' from file name pattern '/opt/soft/log/ark-streaming//manager.%d{yyyy-MM-dd}.log.%i'.
10:11:49,524 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1e88b3c - Roll-over at midnight.
10:11:49,524 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1e88b3c - Setting initial period to Thu Sep 12 10:11:49 CST 2019
10:11:49,524 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1e88b3c - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
10:11:49,524 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@1e88b3c - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
10:11:49,524 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:11:49,525 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[MANAGERLOGFILE] - Active log file name: /opt/soft/log/ark-streaming//manager.log
10:11:49,525 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[MANAGERLOGFILE] - File property is set to [/opt/soft/log/ark-streaming//manager.log]
10:11:49,525 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
10:11:49,525 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [JOBLOGFILE] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [DumpSchedulerFile] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [MergeSchedulerFile] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [JobSchedulerFile] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [JobCommandScannerFile] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [METRICSFILE] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [MANAGERLOGFILE] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [RestartAppLogFile] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [RpcServerFile] to Logger[ROOT]
10:11:49,526 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:11:49,527 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@42d80b78 - Registering current configuration as safe fallback point

2019-09-12 10:11:49.629 [manager-InitLicense] INFO c.a.ark.streaming.common.zk.ArkStreamingZKClient -zk地址:ark1.analysys.xyz:2181
2019-09-12 10:11:49.688 [manager-InitLicense] INFO c.a.a.m.r.o.a.c.f.imps.CuratorFrameworkImpl -Starting
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:host.name=ark1.analysys.xyz
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.version=1.8.0_151
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.vendor=Oracle Corporation
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.home=/opt/soft/jdk1.8.0_151/jre
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.class.path=/opt/soft/streaming/conf/:/opt/soft/streaming/sql/:/opt/soft/streaming/jars/streaming.jar
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.io.tmpdir=/tmp
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:java.compiler=
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:os.name=Linux
2019-09-12 10:11:49.694 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:os.arch=amd64
2019-09-12 10:11:49.695 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:os.version=3.10.0-957.12.2.el7.x86_64
2019-09-12 10:11:49.695 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:user.name=streaming
2019-09-12 10:11:49.695 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:user.home=/home/streaming
2019-09-12 10:11:49.695 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Client environment:user.dir=/home/streaming
2019-09-12 10:11:49.695 [manager-InitLicense] INFO c.a.a.m.runtime.org.apache.zookeeper.ZooKeeper -Initiating client connection, connectString=ark1.analysys.xyz:2181 sessionTimeout=60000 watcher=cn.analysys.ark.manager.runtime.org.apache.curator.ConnectionState@29176cc1
2019-09-12 10:11:49.710 [manager-InitLicense-SendThread(ark1.analysys.xyz:2181)] INFO c.a.a.m.runtime.org.apache.zookeeper.ClientCnxn -Opening socket connection to server ark1.analysys.xyz/10.231.134.18:2181. Will not attempt to authenticate using SASL (unknown error)
2019-09-12 10:11:49.756 [manager-InitLicense-SendThread(ark1.analysys.xyz:2181)] INFO c.a.a.m.runtime.org.apache.zookeeper.ClientCnxn -Socket connection established to ark1.analysys.xyz/10.231.134.18:2181, initiating session
2019-09-12 10:11:49.762 [manager-InitLicense-SendThread(ark1.analysys.xyz:2181)] INFO c.a.a.m.runtime.org.apache.zookeeper.ClientCnxn -Session establishment complete on server ark1.analysys.xyz/10.231.134.18:2181, sessionid = 0x100000f6bb90011, negotiated timeout = 40000
2019-09-12 10:11:49.766 [manager-InitLicense-EventThread] INFO c.a.a.m.r.o.a.c.f.state.ConnectionStateManager -State change: CONNECTED
2019-09-12 10:11:49.767 [Curator-ConnectionStateManager-0] INFO cn.analysys.ark.streaming.common.zk.a -state changed…CONNECTED
2019-09-12 10:11:50.774 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -准备开始创建节点/ark/streaming
2019-09-12 10:11:50.787 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -完成添加节点:/ark/streaming
2019-09-12 10:11:50.788 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -准备开始创建节点/ark/streaming/stop
2019-09-12 10:11:50.790 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -完成添加节点:/ark/streaming/stop
2019-09-12 10:11:50.791 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -准备开始创建节点/ark/streaming/needDump
2019-09-12 10:11:50.792 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -完成添加节点:/ark/streaming/needDump
2019-09-12 10:11:50.793 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -准备开始创建节点/ark/streaming/needMerge
2019-09-12 10:11:50.795 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -完成添加节点:/ark/streaming/needMerge
2019-09-12 10:11:50.796 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -准备开始创建节点/ark/streaming/running
2019-09-12 10:11:50.799 [manager-InitLicense] INFO cn.analysys.ark.streaming.common.zk.a -完成添加节点:/ark/streaming/running
url==jdbc:mysql://ark1.analysys.xyz:3306/ark_manager?useUnicode=true&rewriteBatchedStatements=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true&autoReconnectForPools=true
2019-09-12 10:11:50.827 [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog -MLog clients using slf4j logging.
2019-09-12 10:11:50.889 [manager-InitLicense] INFO com.mchange.v2.c3p0.C3P0Registry -Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2019-09-12 10:11:51.131 [manager-InitLicense] INFO c.m.v2.c3p0.impl.AbstractPoolBackedDataSource -Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> true, automaticTestTable -> c3p0test, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> ark_manager, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> 30x5hua59s0hq616le8xi|6a6cb05c, idleConnectionTestPeriod -> 180, initialPoolSize -> 1, jdbcUrl -> jdbc:mysql://ark1.analysys.xyz:3306/ark_manager?useUnicode=true&rewriteBatchedStatements=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true&autoReconnectForPools=true, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1, numHelperThreads -> 3, preferredTestQuery -> null, privilegeSpawnedThreads -> false, properties -> {user=, password=}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
2019-09-12 10:11:51.439 [manager-InitLicense] ERROR c.a.ark.streaming.dao.impl.ArkManagerDaoImpl -com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'ark_manager.ark_enterprise' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.Util.getInstance(Util.java:387)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:353)
at cn.analysys.ark.streaming.dao.impl.ArkManagerDaoImpl.checkEnterprise(ArkManagerDaoImpl.java:863)
at cn.analysys.ark.streaming.service.ArkManagerService.checkEnterprise(ArkManagerService.java:163)
at cn.analysys.ark.streaming.manager.shell.InitLicense.main(InitLicense.java:26)

Exception in thread "manager-InitLicense" java.lang.RuntimeException: sql: SELECT count(id) as cnt from ark_manager.ark_enterprise WHERE id = ?
at cn.analysys.ark.streaming.dao.impl.ArkManagerDaoImpl.checkEnterprise(ArkManagerDaoImpl.java:876)
at cn.analysys.ark.streaming.service.ArkManagerService.checkEnterprise(ArkManagerService.java:163)
at cn.analysys.ark.streaming.manager.shell.InitLicense.main(InitLicense.java:26)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'ark_manager.ark_enterprise' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.Util.getInstance(Util.java:387)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:941)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3806)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2470)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2617)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2550)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1962)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:353)
at cn.analysys.ark.streaming.dao.impl.ArkManagerDaoImpl.checkEnterprise(ArkManagerDaoImpl.java:863)
... 2 more
---------------------------------------------导入license成功---------------------------------------

  • set -e
  • '[' streaming '!=' streaming ']'
  • '[' 2 -ne 2 ']'
    ++ grep MYSQL_ARK_MANAGER_DB_USERNAME= /opt/soft/streaming/conf/config.properties
  • manager_db_username=MYSQL_ARK_MANAGER_DB_USERNAME=ark_admin
  • manager_db_username=ark_admin
    ++ grep MYSQL_ARK_MANAGER_DB_PASSWORD= /opt/soft/streaming/conf/config.properties
  • manager_db_password=MYSQL_ARK_MANAGER_DB_PASSWORD=ark_Admin@0927Da
  • manager_db_password=ark_Admin@0927Da
    ++ grep MYSQL_HOST= /opt/soft/streaming/conf/config.properties
  • mysql_host=MYSQL_HOST=ark1.analysys.xyz
  • mysql_host=ark1.analysys.xyz
  • enterprise_code=wByeDrLc
  • enterprise_id=1
  • enterprise_id=1
  • update_sql='update ark_manager.ark_enterprise set enterprise_code = '''wByeDrLc''' where id = 1'
  • mysql -uark_admin -park_Admin@0927Da -hark1.analysys.xyz -N '-eupdate ark_manager.ark_enterprise set enterprise_code = '''wByeDrLc''' where id = 1'
    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1146 (42S02) at line 1: Table 'ark_manager.ark_enterprise' doesn't exist
有用0 评论1
登录后可参与回答,请 登录注册
用户1579070951 2个月前

这个是因为部署时候ambari上有服务没有完成启动导致的,先在ambari界面上找到未成功启动的服务并启动。然后再从安装脚本里找到这几个初始化的脚本并执行。
`##导入license
echo -e "${c_yellow}开始导入License,请耐心等待${c_end}"
su - streaming -c "/opt/soft/streaming/bin/update_enterprise_code.sh wByeDrLc 1"
su - streaming -c "/opt/soft/streaming/bin/init_license_info.sh 1 495D220F07341C03B1FC7CB4F25455227B29990C9B7511C26FEE4C76D72E1D14477CC6AD54741B8414DE9BF2B787351FA2E2F4FC9DF24F19FBDD4395BB2CC0A645FC2E9749DEA34A09FB58378D758E0A9903E2642F10FC464F5AF8D7A6AC41B31065A6D0CF2EE9FD1B047C5B40B24C76848C3568C3ACE24E3C48C5796E7CC585D4587CA5D4F3FC17F6C45C71426E4867DDA80A10D26E79E95DA2437DC72A428193B728B51A9D77914C7C5437C6CFD1B3"
su - streaming -c "/opt/soft/streaming/bin/update_enterprise_name.sh 1 Argo"

##初始化数据
echo -e "${c_yellow}开始初始化数据,请耐心等待${c_end}"
su - streaming -c "/opt/soft/streaming/bin/init_data_entrance_url.sh http://${IP_out}:8089"

##初始化指标监控地址
echo -e "${c_yellow}开始初始化指标监控地址,请耐心等待${c_end}"
su - streaming -c "/opt/soft/streaming/bin/init_monitor_list_url.sh ${IP_out}/view/sign/index.html?referrer=${IP_out}%2Fproject-management%2Fmonitoring%3FmonitorTab%3D1%26projectType%3D{{appkey}}#/"

其中${IP_out}要换成你的机器的外网ip。其它不动
有用1 评论