开发者社区 > PolarDB开源 > PolarDB 分布式版 > 正文

您好,我exec进入docker容器内部, 把polardb的日志拷贝出来可以吗?

问题一:您好,我exec进入docker容器内部, 把polardb的日志拷贝出来可以吗?但比较奇怪的是,刚安装的时候都可以正常启动和运行,重启服务器之后,PolarDB就可能无法正常启动。 问题二:1dc2b53c9218580a284361bb4b35516.png大佬,我刚看了日志,报了这个错误1dc2b53c9218580a284361bb4b35516.png 问题三:239cf85a09117c9851c86955dacef0a.png 显示的是这些进程 问题四:531c36a6b65e16734d2f1605bc6bc5e.png1399b1cdb972d8187387f52f03a50df.png2023-05-19 00:00:03.599 [Scheduled-Jobs-Worker-Thread-27-thread-27] ERROR c.a.p.o.planmanager.PolarDbXSystemTableBaselineInfo - [] [TDDL] persist baseline_info error, BASELINE_IN = -578786680, tddl version: 5.4.15-20230419 java.sql.SQLException: Field 'tables_hashcode' doesn't have a default value at com.alibaba.polardbx.rpc.result.XResult.internalFetchOneObject(XResult.java:941) at com.alibaba.polardbx.rpc.result.XResult.internalFetchOneObject(XResult.java:557) at com.alibaba.polardbx.rpc.result.XResult.finishBlockMode(XResult.java:165) at com.alibaba.polardbx.rpc.client.XSession.execUpdate(XSession.java:1894) at com.alibaba.polardbx.rpc.pool.XConnection.execUpdate(XConnection.java:432) at com.alibaba.polardbx.rpc.compatible.XPreparedStatement.executeUpdateX(XPreparedStatement.java:302) at com.alibaba.polardbx.rpc.compatible.XPreparedStatement.executeUpdateX(XPreparedStatement.java:285) at com.alibaba.polardbx.rpc.compatible.XPreparedStatement.executeUpdate(XPreparedStatement.java:352) at com.alibaba.polardbx.optimizer.planmanager.PolarDbXSystemTableBaselineInfo.innerPersist(PolarDbXSystemTableBaselineInfo.java:421) at com.alibaba.polardbx.optimizer.planmanager.PolarDbXSystemTableBaselineInfo.persist(PolarDbXSystemTableBaselineInfo.java:367) at com.alibaba.polardbx.executor.scheduler.executor.spm.SPMBaseLineSyncScheduledJob.lambda$execute$0(SPMBaseLineSyncScheduledJob.java:120) at java.base/java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4770) at com.alibaba.polardbx.executor.scheduler.executor.spm.SPMBaseLineSyncScheduledJob.execute(SPMBaseLineSyncScheduledJob.java:120) at com.alibaba.polardbx.executor.scheduler.ScheduledJobsManager$SchedulerExecutorRunner.executeByWaitPolicy(ScheduledJobsManager.java:500) at com.alibaba.polardbx.executor.scheduler.ScheduledJobsManager$SchedulerExecutorRunner.executeBySkipPolicy(ScheduledJobsManager.java:513) at com.alibaba.polardbx.executor.scheduler.ScheduledJobsManager$SchedulerExecutorRunner.call(ScheduledJobsManager.java:472) at com.alibaba.polardbx.executor.scheduler.ScheduledJobsManager$SchedulerExecutorRunner.call(ScheduledJobsManager.java:451) at com.alibaba.polardbx.common.async.AsyncCallableTask.call(AsyncCallableTask.java:54) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) 2023-05-19 00:00:04.519 [TsoFetcher] ERROR com.alibaba.polardbx.rpc.result.XResult - [] [TDDL] Prev unfinished: SET autocommit=1 status: XResultStart now: get_tso() status: XResultStart, tddl version: 5.4.15-20230419 2023-05-19 00:57:38.377 [main] WARN com.alibaba.polardbx.gms.ha.impl.StorageHaManager - [] [TDDL] register the learner info for [[]], add the [[]], remove the [[]], tddl version: 5.4.15-20230419 2023-05-19 00:57:38.555 [main] INFO com.alibaba.polardbx.config.loader.ServerLoader - [] Server Properties: {PATH=/home/polarx/polardbx/build/run/polardbx-engine/u01/mysql/bin:/home/polarx/polardbx/build/run/bin:/home/polarx/polardbx/build/run/polardbx-engine/u01/mysql/bin:/home/polarx/polardbx/build/run/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, java.specification.version=11, forceCleanup=false, sun.cpu.isalist=, mpp_notifyBlockedQueryMemory=16777216, sun.arch.data.model=64, processCclTriggerPeriod=2, maxAllowedPacket=16777216, socketSendBuffer=65536, java.vendor.url=https://www.redhat.com/, LD_LIBRARY_PATH=../lib/native, mpp_statusRefreshMaxWait=300000, sun.boot.library.path=/usr/lib/jvm/java-11-openjdk-11.0.18.0.10-1.el7_9.x86_64/lib, sun.java.command=com.alibaba.polardbx.server.TddlLauncher --port=, jdk.debug=release, initializeGms=false, LESSOPEN=||/usr/bin/lesspipe.sh %s, mpp_tpTaskWorkerThreadsRatio=4, metaDbRootPasswd=, java.specification.vendor=Oracle Corporation, mpp_queryDelayCount=3, java.version.date=2023-01-17, java.home=/usr/lib/jvm/java-11-openjdk-11.0.18.0.10-1.el7_9.x86_64, enableBucketExecutor=true, mpp_exchangeMaxResponseSize=1000000, apHaMode=RESERVE_ONE_SLAVE, supportSingleDbMultiTbs=false, java.specification.name=Java Platform API Specification, java.vm.specification.vendor=Oracle Corporation, mpp_apPriority=3, mpp_cpuCfsMinQuota=5, mpp_taskWorkerThreadsRatio=4, galaxyXProtocol=2, mpp_httpServerMaxThreads=200, dnPasswordKey=asdf1234ghjk5678, mpp_httpServerMinThreads=2, mpp_maxWorkerThreads=1024, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, java.runtime.version=11.0.18+10-LTS, masterInstanceId=polardbx-polardbx, file.encoding=UTF-8, clusterName=NULL, java.vendor.version=(Red_Hat-11.0.18.0.10-1.el7_9), enableMppWorker=true, mpp_remoteTaskMaxCallbackThreads=100, _=/usr/bin/java, timerTaskExecutor=8, java.io.tmpdir=/tmp, mpp_memoryRevokingTarget=0.75, secretKey=NULL, java.version=11.0.18, balanceWindow=NULL, java.vm.specification.name=Java Virtual Machine Specification, java.awt.printerjob=sun.print.PSPrinterJob, mpp_httpClientMaxConnections=1024, java.library.path=../lib/native:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, java.vendor=Red Hat, Inc., metaDbProp=allowMultiQueries=true&autoReconnect=false&characterEncoding=utf8&connectTimeout=10000&failOverReadOnly=false&rewriteBatchedStatements=true&socketTimeout=900000&useServerPrepStmts=false&useSSL=false&useUnicode=true, sun.io.unicode.encoding=UnicodeLittle, enableBalancer=false, maxConnection=20000, logicalDbWarmmingUpExecutorPoolSize=4, propertyFile=classpath:server.properties, TZ=Asia/Shanghai, managerExecutor=256, mpp_taskYieldThreads=1, shardDbCountEachStorageInst=8, user.timezone=Asia/Shanghai, timerExecutor=8, os.name=Linux, java.vm.specification.version=11, LOGNAME=polarx, allowSimpleSequence=false, unitName=NULL, user.home=/home/polarx, OLDPWD=/home/polarx, mpp_taskNotificationThreads=16, sslEnable=false, port=8527, mpp_cpuCfsMaxQuota=95, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.awt.headless=true, logback.configurationFile=/home/polarx/polardbx/build/run/polardbx-sql/bin/../conf/logback.xml, passwordRuleConfig=NULL, mpp_queryMaxDelayTime=1000, storageDbXprotoPort=0, enableRemoteRPC=false, polarxRootUser=polardbx_root, mpp_exchangeClientThreads=50, java.net.preferIPv4Stack=true, mpp_taskMaxRunTime=1800000, mpp_maxAvaliableSpaceThreshold=0.9, path.separator=:, metaDbExecutor=8, os.version=3.10.0-957.axs7.x86_64, BASE=/home/polarx/polardbx/build/run/polardbx-sql/bin/.., mpp_exchangeMaxErrorDuration=180000, mpp_exchangeMinErrorDuration=60000, engine=NULL, slowSqlTime=1000, java.vm.name=OpenJDK 64-Bit Server VM, mpp_taskInfoCacheMaxAliveMillis=60000, serverExecutor=1024, metaDbAddr=127.0.0.1:4886, appName=tddl, os.arch=amd64, metaDbUser=my_polarx, enableMpp=true, java.vm.info=mixed mode, sharing, HOSTNAME=0bb7bfdb3677, idleTimeout=28800000, mpp_httpClientMaxConnectionsPerServer=250, processorHandler=16, java.class.version=55.0, HOME=/home/polarx, enableApLimitRate=false, awt.toolkit=sun.awt.X11.XToolkit, mpp_splitRunQuanta=1000, HISTCONTROL=ignoredups, sun.jnu.encoding=UTF-8, polarxRootPasswd=, processors=4, mem_size=4096, mpp_minQueryExpireTime=0, PWD=/home/polarx/polardbx/build/run/polardbx-sql/bin, dropOldDataBaseAfterSwitchDataSource=true, parserCommentVersion=50148, com.alibaba.java.net.VTOAEnabled=true, mpp_httpClientMaxThreads=200, txc.vip.skip=true, mpp_globalMemoryLimitRatio=1, mpp_maxQueryExpiredReservationTime=864000000, enableMasterMpp=false, mpp_queryExecutionThreadPoolSize=128, mpp_queryManagerThreadPoolSize=1, file.separator=/, enableScaleout=false, slowSqlSizeThresold=16384, java.vm.compressedOopsMode=32-bit, mpp_exchangeConcurrentRequestMultiplier=3, line.separator= , rpcPort=9090, processorKillExecutor=128, mpp_httpTimeoutThreads=3, mpp_maxSpillSpaceThreshold=0.1, SHLVL=4, charset=utf-8, enableCollectorAllTables=false, HISTSIZE=1000, user.name=polarx, serverPort=8527, mpp_blockSize=131072, deadLockCheckPeriod=500, mpp_taskExecutorLowPriorityEnabled=false, mpp_infoUpdateInterval=3000, instanceId=polardbx-polardbx, mpp_httpMaxRequestsPerDestination=50000, enableKill=false, vpcId=, fileUri=NULL, mpp_httpClientMinThreads=8, sqlRecordCount=100, workloadType=NULL, versionPrefix=5.6.29, processorCheckPeriod=15000, instanceType=NULL, sun.os.patch.level=unknown, sqlSimpleMaxLen=16000, endPoint=NULL, trustedIps=127.0.0.1, mpp_schemaMaxMemory=9223372036854775807, mpp_lessRevokeBytes=33554432, socketRecvBuffer=32768, mpp_taskFutureCallbackThreads=16, mpp_maxSpillThreads=8, coronaMode=0, mpp_memoryRevokingThreshold=0.85, dataNodeList=NULL, mpp_taskClientTimeout=60000, java.class.path=.:/home/polarx/polardbx/build/run/polardbx-sql/bin/../conf:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-calcite-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/accessors-smart-2.4.7.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aether-api-1.13.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aether-connector-asynchttpclient-1.13.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aether-connector-file-1.13.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aether-impl-1.13.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aether-spi-1.13.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aether-util-1.13.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aggdesigner-algorithm-6.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aircompressor-0.16.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aliyun-java-sdk-core-3.4.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aliyun-java-sdk-ecs-4.2.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aliyun-java-sdk-kms-2.7.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aliyun-java-sdk-ram-3.0.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aliyun-java-sdk-sts-3.0.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aliyun-sdk-oss-3.10.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/animal-sniffer-annotations-1.18.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/annotations-23.0.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/annotations-4.1.1.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/aopalliance-1.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/asm-9.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/async-http-client-1.6.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/avalon-framework-4.1.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/avatica-core-1.10.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/avatica-metrics-1.10.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/avro-1.7.7.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/bcprov-jdk15on-1.69.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/bootstrap-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/bval-jsr-2.0.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/byte-buddy-1.10.22.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/calcite-linq4j-1.14.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/checker-qual-3.8.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-beanutils-1.9.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-cli-1.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-codec-1.11.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-collections-3.2.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-compiler-3.0.8.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-compress-1.21.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-configuration2-2.1.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-dbcp-1.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-io-2.7.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-lang-2.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-lang3-3.8.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-logging-1.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-math3-3.1.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-net-3.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/commons-text-1.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/concurrent-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/configuration-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/cron-utils-9.1.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/curator-client-2.13.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/curator-framework-2.13.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/curator-recipes-2.13.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/discovery-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/discovery-server-1.30.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/dnsjava-2.1.7.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/druid-1.2.8.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/error_prone_annotations-2.5.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/esri-geometry-api-2.0.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/event-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/event-http-0.193.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/failsafe-2.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/failureaccess-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/fastjson-1.2.67.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/fastutil-7.0.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/groovy-all-2.4.21.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-api-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-context-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-core-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-netty-shaded-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-protobuf-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-protobuf-lite-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/grpc-stub-1.30.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/gson-2.9.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/guava-30.1.1-jre.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/guice-5.1.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-annotations-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-auth-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-client-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-common-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-hdfs-client-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-mapreduce-client-common-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-mapreduce-client-core-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-mapreduce-client-jobclient-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-yarn-api-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-yarn-client-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hadoop-yarn-common-3.2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/HdrHistogram-2.1.9.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hive-storage-api-2.7.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hk2-api-2.5.0-b42.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hk2-locator-2.5.0-b42.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/hk2-utils-2.5.0-b42.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/htrace-core4-4.1.0-incubating.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http2-client-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http2-common-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http2-hpack-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http2-http-client-transport-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http2-server-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http-client-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/httpclient-4.4.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/httpcore-4.4.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/http-server-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/j2objc-annotations-1.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-annotations-2.13.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-core-2.13.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-core-asl-1.9.13.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-databind-2.13.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-dataformat-smile-2.11.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-datatype-guava-2.11.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-datatype-jdk8-2.13.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-datatype-joda-2.11.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-datatype-jsr310-2.11.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-jaxrs-base-2.10.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-jaxrs-json-provider-2.10.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-mapper-asl-1.9.13.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-module-jaxb-annotations-2.10.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jackson-module-parameter-names-2.11.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jakarta.activation-api-1.2.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jakarta.xml.bind-api-2.3.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/janino-3.0.8.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/java-ipv6-0.17.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javassist-3.27.0-GA.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javax.activation-api-1.2.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javax.annotation-api-1.3.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javax.el-3.0.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javax.inject-1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javax.servlet-api-4.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/javax.ws.rs-api-2.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jaxb-api-2.2.11.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jaxrs-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jcip-annotations-1.0-1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jcl-over-slf4j-1.7.21.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jdom2-2.0.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-client-1.19.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-client-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-common-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-container-servlet-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-container-servlet-core-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-core-1.19.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-hk2-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-media-jaxb-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-server-2.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jersey-servlet-1.19.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jettison-1.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-alpn-client-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-alpn-java-client-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-client-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-http-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-io-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-jmx-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-security-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-server-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-servlet-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-util-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-util-ajax-9.4.40.v20210413.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-webapp-9.4.43.v20210629.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jetty-xml-9.4.43.v20210629.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jgrapht-core-0.9.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jmx-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jmx-http-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jmx-http-rpc-0.193.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jmxutils-1.21.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/joda-time-2.10.9.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jol-core-0.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/json-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/json-smart-2.4.7.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jsp-api-2.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jsr305-1.3.9.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jsr311-api-1.1.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/jul-to-slf4j-1.7.26.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-admin-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-client-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-common-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-core-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-crypto-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-identity-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-server-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-simplekdc-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerb-util-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerby-asn1-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerby-config-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerby-pkix-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerby-util-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/kerby-xdr-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/leveldb-0.12.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/leveldb-api-0.12.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/log-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/log4j-1.2.16.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/logback-classic-1.2.8.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/logback-core-1.2.8.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/logkit-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/log-manager-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/lombok-1.18.10.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-aether-provider-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-artifact-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-compat-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-core-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-embedder-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-model-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-model-builder-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-plugin-api-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-repository-metadata-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-settings-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/maven-settings-builder-3.0.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/memory-0.9.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/mysql-connector-java-5.1.49.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/netty-3.6.2.Final.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/nfs-client-1.1.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/nimbus-jose-jwt-9.8.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/node-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/okhttp-2.7.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/okio-1.6.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/orc-shims-1.6.9.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/osgi-resource-locator-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/paranamer-2.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/perfmark-api-0.19.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-cipher-1.7.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-classworlds-2.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-component-annotations-1.5.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-container-default-1.5.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-interpolation-1.14.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-sec-dispatcher-1.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/plexus-utils-2.0.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-common-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-executor-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-gms-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-net-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-optimizer-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-orc-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-parser-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-rpc-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-rule-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-server-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/polardbx-transaction-5.4.15-SNAPSHOT.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/protobuf-java-3.11.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/protobuf-java-format-1.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/proto-google-common-protos-1.17.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/re2j-1.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/reload4j-1.2.18.3.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/resolver-1.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/security-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/sigar-1.6.4.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/sketches-core-0.9.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/slf4j-api-1.7.21.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/snakeyaml-1.31.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/snappy-java-1.0.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/stats-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/stax2-api-4.2.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/stax-api-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/stream-2.9.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/threetenbp-1.3.5.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/threeten-extra-1.5.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/token-provider-1.0.1.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/trace-token-206.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/units-1.6.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/validation-api-2.0.1.Final.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/wagon-provider-api-2.2.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/woodstox-core-5.3.0.jar:/home/polarx/polardbx/build/run/polardbx-sql/bin/../lib/xbean-reflect-3.4.jar:, pid=362, enablePrimaryZoneMaintain=false, java.vm.vendor=Red Hat, Inc., mpp_maxQuerySpillSpaceThreshold=0.3, metaDbName=polardbx_meta_db_polardbx, MAIL=/var/spool/mail/polarx, managerPort=3406, sun.java.launcher=SUN_STANDARD, user.country=US, supportDropAutoSeq=false, sun.cpu.endian=little, user.language=en, ipAddress=172.20.0.2, mpp_clientTimeout=7200000, mpp_tablescanConnectionStrategy=0, whiteIps=NULL, tddl.conf=/home/polarx/polardbx/build/run/polardbx-sql/bin/../conf/server.properties, metaDbRootUser=root, accessKey=NULL, mpp_httpResponseThreads=100, mpp_queryMaxDelayPendingRatio=10, enableMppServer=true, mpp_cpuCfsQuota=0, cclRescheduleTimeoutCheckPeriod=5, defaultPartitionMode=drds, mpp_queryMinDelayPendingRatio=2, mpp_remoteTaskMaxErrorDuration=180000, druid.logType=slf4j, LANG=en_US.UTF-8, mpp_defaultCluster=DEFAULT, java.runtime.name=OpenJDK Runtime Environment, allowManagerLogin=1, blackIps=NULL, BUILD_PATH=/home/polarx/polardbx/build, mpp_spillPaths=[../spill], allowCrossDbQuery=true, mpp_maxQueryHistory=10, mpp_tablescanDsMaxSize=-1, mpp_cpuCfsPeriodUs=100000, mpp_queryMinDelayTime=100, metaDbXprotoPort=34886, java.vendor.url.bug=https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=java-11-openjdk, mpp_maxSpillFdThreshold=10000, mpp_remoteTaskMinErrorDuration=30000, retryErrorSqlOnOldServer=true, user.dir=/home/polarx/polardbx/build/run/polardbx-sql/bin, USER=polarx, enableForbidPushDmlWithHint=true, enableLogicalDbWarmmingUp=false, java.vm.version=11.0.18+10-LTS, metaDbPasswd=1a3P7z0atSRhp3qrkUa+kJV51p4Yo8KQrmQzZHzjOKeh+1DlWNrojT9ZX0lxPDr2, globalMemoryLimit=1073741824} 2023-05-19 00:57:38.574 [main] INFO com.alibaba.polardbx.config.loader.ServerLoader - [] Global memory pool size: 1 GB 2023-05-19 00:57:39.945 [main] WARN com.alibaba.polardbx.optimizer.planmanager.PlanManager - [] [TDDL] PlanManager init consuming 0.029 seconds, tddl version: 5.4.15-20230419问题五: bde1b70c29b651e1a349fc2aa0c83b0.png 还是显示无法启动 问题六:您是启动之后,大概过了多久重启了机器呢,重启之前有先docker stop容器吗? 问题七:/home/polarx/polardbx/build/run/polardbx-sql/bin/tddl.pid 这个文件删掉

展开
收起
圆葱猪肉包 2023-05-23 13:37:15 47779 2
7 条回答
写回答
取消 提交回答
  • 您好,如果您在重启服务器后发现PolarDB无法正常启动,可能是由于PolarDB服务没有自动启动导致的。您可以使用systemctl enable polardb命令将PolarDB服务添加到启动项中,以确保在服务器重启后PolarDB服务能够自动启动。

    此外,您也可以尝试检查Polardb数据库的数据文件是否存在损坏。在Polardb数据库容器内部,Polardb数据库的数据文件通常位于/var/lib/polardb目录下。您可以使用ls -lh /var/lib/polardb命令来查看数据文件的大小和修改时间。

    2023-08-28 16:10:45
    赞同 展开评论 打赏
  • 可以的。也可以不进入docker容器,直接宿主机上使用docker cp命令copy出来。建议直接映射到宿主机,这样历史的数据都能保存,也方便查看。

    2023-06-09 20:02:33
    赞同 1 展开评论 打赏
  • 让世界因你而不同

    可以使用以下命令进入Docker容器内部:

    docker exec -it <container_name> /bin/bash
    

    请将 <container_name> 替换为您需要进入的Docker容器的名称。

    进入容器后,您可以使用以下命令来拷贝Polardb的程序日志文件:

    docker cp <container_name>:/path/to/log/file /path/on/host
    

    请将 <container_name> 替换为您需要拷贝日志文件的Docker容器的名称,/path/to/log/file 替换为Polardb程序日志文件的路径,/path/on/host 替换为您希望将日志文件拷贝到的主机路径。

    如果您不确定Polardb程序日志文件的路径,可以在容器内部使用 find 命令进行查找。

    2023-06-02 19:24:18
    赞同 1 展开评论 打赏
  • 您好,可以通过 exec 进入 Docker 容器内部,然后将 PolarDB 的日志拷贝出来。具体步骤如下:

    1. 使用 docker exec 命令进入容器内部,例如:

      docker exec -it <container-id> /bin/bash
      

      其中 <container-id> 是容器的 ID。

    2. 在容器内部,使用 cp 命令将 PolarDB 的日志拷贝到宿主机上,例如:

      cp /path/to/polardb/log /path/to/host
      

      其中 /path/to/polardb/log 是 PolarDB 的日志路径,/path/to/host 是宿主机的路径。

    3. 退出容器,使用 exit 命令退出容器内部。

    注意事项: - 如果您需要拷贝整个目录,可以使用 -r 参数,例如:cp -r /path/to/polardb/logs /path/to/host - 如果在进入容器时指定了用户,请确保容器内该用户有读取 PolarDB 日志的权限。 - 如果在拷贝日志时遇到权限不足的问题,请确认宿主机的目录权限是否正确。

    2023-05-23 17:12:07
    赞同 展开评论 打赏
  • 是可以的。

    如果您已经使用 exec 命令进入到 Polardb 的 Docker 容器内部,那么您可以通过以下命令将 Polardb 的日志拷贝出来:

    docker cp <container_id>:/path/to/polardb/log /host/path
    

    其中 <container_id> 是 Polardb 容器的 ID,/path/to/polardb/log 是 Polardb 日志文件的路径,/host/path 是本地主机上保存日志文件的路径。在运行此命令之前,请确保您已在本地主机上创建了目标文件夹,并具有写入权限。

    另外,需要注意的是,在 Docker 容器中,Polardb 的日志通常位于 /usr/local/polardb/logs 目录下,根据实际情况进行选择。同时,为了保证数据安全和隐私性,建议您仅拷贝必要的日志文件,并采取相应的安全措施,如加密、备份等。

    总之,通过执行 docker cp 命令,您可以方便地将 Polardb 的日志文件从容器内部拷贝至本地主机,以备后续分析和处理。

    2023-05-23 16:56:44
    赞同 展开评论 打赏
  • 针对问题一的回答:无回答。 针对问题二的回答: 进容器之后,ps -ef看看都有什么进程 针对问题三的回答:你进去的是dn,你去看看cn容器,到polardbx/build/run/polardbx-sql/logs/tddl/tddl.log看看为什么cn起不来,同一个目录下的meta-db.log也可以看看 针对问题四的回答:/home/polarx/polardbx/build/run/polardbx-sql/bin/startup.sh -P asdf1234ghjk5678容器里试试直接执行这个,强行启动一下cn,看行不行 针对问题五的回答:我们这个一体化的镜像, 主要是初步体验功能使用的,可能对于重复restart的场景没有适配好。如果是生产上使用,或者进行功能性能压测,推荐使用pxd或k8s的部署方式呢。针对问题六的回答:提示先shutdown,但是shutdown时,提示tddl没有运行,大概过了一夜重启机器,重启之前没有docker stop 针对问题七的回答:我们就是为了防止出现突然断电这种情况,所以才直接重启服务器的此回答整理自微信群“阿里云 PolarDB-X开源交流2号群”

    2023-05-23 14:35:42
    赞同 展开评论 打赏
  • 问题一:

    是的,您可以使用 docker cp 命令将 Polardb 容器内部的日志文件拷贝到本地。具体操作步骤如下:

    1. 使用 docker ps 命令查看 Polardb 容器的 ID 或名称。

    2. 使用 docker exec 命令进入 Polardb 容器内部。例如:

    docker exec -it <container_id_or_name> /bin/bash
    
    1. 在 Polardb 容器内部,您可以查看 Polardb 数据库的日志文件,通常位于 /var/log/polardb 目录下。您可以使用以下命令来查看日志文件:
    tail -f /var/log/polardb/polardb.log
    
    1. 在本地计算机上打开一个新的终端窗口,使用 docker cp 命令将日志文件从 Polardb 容器内部拷贝到本地。例如:
    docker cp <container_id_or_name>:/var/log/polardb/polardb.log /path/to/local/folder
    

    请注意,以上命令中需要将 <container_id_or_name> 替换为实际的 Polardb 容器 ID 或名称,/path/to/local/folder 替换为本地文件夹的路径。

    如果 Polardb 在安装后可以正常启动和运行,但在重启服务器后无法正常启动,则可能是由于 Polardb 服务没有自动启动导致的。您可以使用 systemctl enable polardb 命令将 Polardb 服务添加到启动项中,以确保在服务器重启后 Polardb 服务能够自动启动。如果问题仍然存在,请检查 Polardb 的日志文件以获取更多信息,以便确定问题所在。

    2023-05-23 14:12:13
    赞同 展开评论 打赏
滑动查看更多

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 是阿里云自主设计研发的高性能云原生分布式数据库产品,为用户提供高吞吐、大存储、低延时、易扩展和超高可用的云时代数据库服务。

相关电子书

更多
阿里云文件存储 NAS 在容器场景的最佳实践 立即下载
何种数据存储才能助力容器计算 立即下载
《容器网络文件系统CNFS》 立即下载