You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/12/16 07:39:40 UTC

[GitHub] [pulsar] vishalananth07 edited a comment on issue #5749: Bookie does not start because of UnknownHostException

vishalananth07 edited a comment on issue #5749: Bookie does not start because of UnknownHostException
URL: https://github.com/apache/pulsar/issues/5749#issuecomment-565940538
 
 
   @jiazhai  I tried to connect to this cluster from an external system using the pulsar-client tool, I modified the conf/client.conf as follows
   ```
   webServiceUrl=http://10.6.8.14:8080,10.6.8.13:8080,10.6.8.15:8080
   brokerServiceUrl=pulsar://10.6.8.14:6650,10.6.8.13:6650,10.6.8.15:6650
   ```
   But I am not able to produce or consumer and getting this error
   ```
   bin/pulsar-client produce   persistent://public/default/test   -n 1   -m "Hello Pulsar"
   12:53:28.369 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0xc48e6140, L:/10.6.8.16:57588 - R:10.6.8.15/10.6.8.15:6650]] Connected to server
   12:53:28.553 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerStatsRecorderImpl - Starting Pulsar producer perf with config: {
     "topicName" : "persistent://public/default/test",
     "producerName" : null,
     "sendTimeoutMs" : 30000,
     "blockIfQueueFull" : false,
     "maxPendingMessages" : 1000,
     "maxPendingMessagesAcrossPartitions" : 50000,
     "messageRoutingMode" : "RoundRobinPartition",
     "hashingScheme" : "JavaStringHash",
     "cryptoFailureAction" : "FAIL",
     "batchingMaxPublishDelayMicros" : 1000,
     "batchingMaxMessages" : 1000,
     "batchingEnabled" : true,
     "compressionType" : "NONE",
     "initialSequenceId" : null,
     "autoUpdatePartitions" : true,
     "properties" : { }
   }
   12:53:28.562 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerStatsRecorderImpl - Pulsar client config: {
     "serviceUrl" : "pulsar://10.6.8.14:6650,10.6.8.13:6650,10.6.8.15:6650",
     "authPluginClassName" : null,
     "authParams" : null,
     "operationTimeoutMs" : 30000,
     "statsIntervalSeconds" : 60,
     "numIoThreads" : 1,
     "numListenerThreads" : 1,
     "connectionsPerBroker" : 1,
     "useTcpNoDelay" : true,
     "useTls" : false,
     "tlsTrustCertsFilePath" : "",
     "tlsAllowInsecureConnection" : false,
     "tlsHostnameVerificationEnable" : false,
     "concurrentLookupRequest" : 5000,
     "maxLookupRequest" : 50000,
     "maxNumberOfRejectedRequestPerConnection" : 50,
     "keepAliveIntervalSeconds" : 30,
     "connectionTimeoutMs" : 10000,
     "requestTimeoutMs" : 60000,
     "defaultBackoffIntervalNanos" : 100000000,
     "maxBackoffIntervalNanos" : 30000000000
   }
   12:53:28.570 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x1d9c4ae7, L:/10.6.8.16:37992 - R:10.6.8.14/10.6.8.14:6650]] Connected to server
   12:53:28.737 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ConnectionPool - Failed to open connection to masterfyp-HP-Compaq-Pro-6305-SFF:6650 : java.net.UnknownHostException: failed to resolve 'masterfyp-HP-Compaq-Pro-6305-SFF' after 2 queries 
   12:53:28.738 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/test] [null] Error connecting to broker: org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.CompletionException: java.net.UnknownHostException: failed to resolve 'masterfyp-HP-Compaq-Pro-6305-SFF' after 2 queries 
   12:53:28.739 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/test] [null] Could not get connection to broker: org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.CompletionException: java.net.UnknownHostException: failed to resolve 'masterfyp-HP-Compaq-Pro-6305-SFF' after 2 queries  -- Will try again in 0.1 s
   12:53:28.841 [pulsar-timer-4-1] INFO  org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/test] [null] Reconnecting after connection was closed
   12:53:28.843 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ConnectionPool - [[id: 0xa4498898, L:/10.6.8.16:57586 - R:10.6.8.13/10.6.8.13:6650]] Connected to server
   12:53:28.873 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ConnectionPool - Failed to open connection to masterfyp-HP-Compaq-Pro-6305-SFF:6650 : java.net.UnknownHostException: failed to resolve 'masterfyp-HP-Compaq-Pro-6305-SFF' after 2 queries 
   12:53:28.873 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/test] [null] Error connecting to broker: org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.CompletionException: java.net.UnknownHostException: failed to resolve 'masterfyp-HP-Compaq-Pro-6305-SFF' after 2 queries 
   12:53:28.873 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/test] [null] Could not get connection to broker: org.apache.pulsar.client.api.PulsarClientException: java.util.concurrent.CompletionException: java.net.UnknownHostException: failed to resolve 'masterfyp-HP-Compaq-Pro-6305-SFF' after 2 queries  -- Will try again in 0.194 s
   12:53:29.068 [pulsar-timer-4-1] INFO  org.apache.pulsar.client.impl.ConnectionHandler - [persistent://public/default/test] [null] Reconnecting after connection was closed
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services