MaxwellMetrics - Metrics will not be exposed: metricsReportingType not configured.

异常信息

[root@Bing-Data-node1 maxwell]# 
[root@Bing-Data-node1 maxwell]# /usr/local/maxwell/maxwell-1.27.1/bin/maxwell --user='maxwell' --password='maxwell' --host='127.0.0.1'    --producer=kafka --kafka.bootstrap.servers=Bing-Data-node1:9092,Bing-Data-node2:9092,Bing-Data-node3:9092 --kafka_topic=test
Using kafka version: 1.0.0
11:43:56,396 WARN  MaxwellMetrics - Metrics will not be exposed: metricsReportingType not configured.
11:43:57,647 ERROR Maxwell - SQLException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
[root@Bing-Data-node1 maxwell]# 
[root@Bing-Data-node1 maxwell]# 

原因 – host 错误 不是本机指的是元数据库的地址

解决 --host=‘127.0.0.1’ 改为 --host=‘Bing-Data-node2’

[root@Bing-Data-node1 maxwell]# /usr/local/maxwell/maxwell-1.27.1/bin/maxwell --user='maxwell' --password='maxwell' --host='Bing-Data-node2' \
>    --producer=kafka --kafka.bootstrap.servers=Bing-Data-node1:9092,Bing-Data-node2:9092,Bing-Data-node3:9092 --kafka_topic=test
Using kafka version: 1.0.0
   11:52:00,653 WARN  MaxwellMetrics - Metrics will not be exposed: metricsReportingType not configured.
11:52:01,130 INFO  SchemaStoreSchema - Creating maxwell database
11:52:01,485 INFO  ProducerConfig - ProducerConfig values: 
        acks = 1
        batch.size = 16384
        bootstrap.servers = [Bing-Data-node1:9092, Bing-Data-node2:9092, Bing-Data-node3:9092]
        buffer.memory = 33554432
        client.id = 
        compression.type = snappy
        connections.max.idle.ms = 540000
        enable.idempotence = false
        interceptor.classes = null
        key.serializer = class org.apache.kafka.common.serialization.StringSerializer
        linger.ms = 0
        max.block.ms = 60000
        max.in.flight.requests.per.connection = 5
        max.request.size = 1048576
        metadata.max.age.ms = 300000
        metric.reporters = []
        metrics.num.samples = 2
        metrics.recording.level = INFO
        metrics.sample.window.ms = 30000
        partitioner.class = class org.apache.kafka.clients.producer.internals.DefaultPartitioner
        receive.buffer.bytes = 32768
        reconnect.backoff.max.ms = 1000
        reconnect.backoff.ms = 50
        request.timeout.ms = 30000
        retries = 0
        retry.backoff.ms = 100
        sasl.jaas.config = null
        sasl.kerberos.kinit.cmd = /usr/bin/kinit
        sasl.kerberos.min.time.before.relogin = 60000
        sasl.kerberos.service.name = null
        sasl.kerberos.ticket.renew.jitter = 0.05
        sasl.kerberos.ticket.renew.window.factor = 0.8
        sasl.mechanism = GSSAPI
        security.protocol = PLAINTEXT
        send.buffer.bytes = 131072
        ssl.cipher.suites = null
        ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
        ssl.endpoint.identification.algorithm = null
        ssl.key.password = null
        ssl.keymanager.algorithm = SunX509
        ssl.keystore.location = null
        ssl.keystore.password = null
        ssl.keystore.type = JKS
        ssl.protocol = TLS
        ssl.provider = null
        ssl.secure.random.implementation = null
        ssl.trustmanager.algorithm = PKIX
        ssl.truststore.location = null
        ssl.truststore.password = null
        ssl.truststore.type = JKS
        transaction.timeout.ms = 60000
        transactional.id = null
        value.serializer = class org.apache.kafka.common.serialization.StringSerializer

11:52:01,550 INFO  AppInfoParser - Kafka version : 1.0.0
11:52:01,550 INFO  AppInfoParser - Kafka commitId : aaa7af6d4a11b29d
11:52:01,593 INFO  Maxwell - Maxwell v1.27.1 is booting (MaxwellKafkaProducer), starting at Position[BinlogPosition[mysql-bin.000014:61426911], lastHeartbeat=0]
11:52:01,776 INFO  AbstractSchemaStore - Maxwell is capturing initial schema
11:52:02,399 INFO  BinlogConnectorReplicator - Setting initial binlog pos to: mysql-bin.000014:61426911
11:52:02,416 INFO  BinaryLogClient - Connected to Bing-Data-node2:3306 at mysql-bin.000014/61426911 (sid:6379, cid:201669)
11:52:02,416 INFO  BinlogConnectorReplicator - Binlog connected.

你可能感兴趣的:(工具)