0

我正在尝试为 Mysql 5.7 安装 Tungsten Replicator 4.0 版本。我已经为 Mysql 5.7 使用二进制安装(tar.gz 文件安装)并在bash_profile.

./tools/tmp install命令已成功执行,但主从服务都处于脱机状态。服务状态命令出现以下错误。

[tungsten@beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl services

Processing services command...

NAME              VALUE
----              -----
appliedLastSeqno: -1
appliedLatency  : -1.0
role            : master
serviceName     : beta182_183
serviceType     : unknown
started         : true
state           : OFFLINE:ERROR

NAME              VALUE
----              -----
**appliedLastSeqno**:**** **Unknown**
**appliedLatency  **:**** **Unknown**
**role**            **:** **Unknown**
serviceName     : beta183_182
serviceType     : Unknown
started         : false
state           : Unknown

Finished services command...
[tungsten@beta-388 tungsten-replicator-4.0.0-18]$ /opt/continuent//tungsten/tungsten-replicator/bin/trepctl -service beta182_183 status

Processing status command...

NAME                     VALUE
----                     -----
appliedLastEventId     : NONE
appliedLastSeqno       : -1
appliedLatency         : -1.0
autoRecoveryEnabled    : true
autoRecoveryTotal      : 0
channels               : -1
clusterName            : beta182_183
currentEventId         : NONE
currentTimeMillis      : 1579684465335
dataServerHost         : beta-388.panterranetworks.net
extensions             :
host                   : beta-388.panterranetworks.net
latestEpochNumber      : -1
masterConnectUri       : thls://localhost:/
masterListenUri        : thls://beta-388.panterranetworks.net:12120/
maximumStoredSeqNo     : -1
minimumStoredSeqNo     : -1
offlineRequests        : NONE
pendingError           : Replicator unable to go online due to error
pendingErrorCode       : NONE
pendingErrorEventId    : NONE
pendingErrorSeqno      : -1
pendingExceptionMessage: **Unable to prepare plugin: class name=com.continuent.tungsten.replicator.thl.THL message=[Error while attempting to acquire file lock: /opt/continuent/thl/beta182_183/disklog.lck]**
pipelineSource         : UNKNOWN
relativeLatency        : -1.0
resourcePrecedence     : 99
rmiPort                : 10110
role                   : master
seqnoType              : java.lang.Long
serviceName            : beta182_183
serviceType            : unknown
simpleServiceName      : beta182_183
siteName               : default
sourceId               : beta-388.panterranetworks.net
state                  : OFFLINE:ERROR
timeInStateSeconds     : 15.744
timezone               : GMT
transitioningTo        :
uptimeSeconds          : 15.931
useSSLConnection       : true
version                : Tungsten Replicator 4.0.0 build 18

Finished status command...

任何人都可以分享如何解决错误吗?我已多次尝试授予该文件的所有权限,并且还卸载并重新安装了 tungsten。

4

1 回答 1

0

Mysql 5.7版本不支持tungsten 4.0版本, https://docs.continuent.com/tungsten-replicator-4.0/introduction.html

共享您的配置复制器!

于 2020-03-05T11:21:53.680 回答