[jira] [Commented] (KAFKA-3091) Broker with an invalid id would not start when its id is updated to a new valid one
[ https://issues.apache.org/jira/browse/KAFKA-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15134977#comment-15134977 ] Grant Henke commented on KAFKA-3091: [~vahid] Just remove any files in the configured log.dirs directories. There should be a meta.properties file. > Broker with an invalid id would not start when its id is updated to a new > valid one > --- > > Key: KAFKA-3091 > URL: https://issues.apache.org/jira/browse/KAFKA-3091 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.0 >Reporter: Vahid Hashemian >Assignee: Grant Henke >Priority: Minor > Fix For: 0.9.1.0 > > > Setup being used: > - Kafka 0.9.0 > - Two servers: > -- server 1: zookeeper and 3 brokers (ids: 0, 1, 2) > -- server 2: 2 brokers (ids: 10 and 1 -> 11) > When on server 2 the second broker with initial id of 1 is started an error > returned indicating the id 1 is in use. When the corresponding > servers.properties file is updated and id is changed to 11 the broker would > no longer start. The following error is returned: > [2016-01-12 13:40:22,145] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,147] INFO shutting down (kafka.server.KafkaServer) > [2016-01-12 13:40:22,148] INFO Shutting down. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Shutdown complete. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Terminate ZkClient event thread. > (org.I0Itec.zkclient.ZkEventThread) > [2016-01-12 13:40:22,155] INFO Session: 0x15237b0b6270014 closed > (org.apache.zookeeper.ZooKeeper) > [2016-01-12 13:40:22,155] INFO EventThread shut down > (org.apache.zookeeper.ClientCnxn) > [2016-01-12 13:40:22,156] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-12 13:40:22,156] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,157] INFO shutting down (kafka.server.KafkaServer) > I looked at existing JIRA tickets referencing this error but none seemed to > describe the exact scenario as the one here. Restarting brokers or the > zookeeper would not seem to help. > And upon further testing it appears the number of servers is irrelevant here, > and the same issue would surface in a one server setup too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KAFKA-3091) Broker with an invalid id would not start when its id is updated to a new valid one
[ https://issues.apache.org/jira/browse/KAFKA-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15134963#comment-15134963 ] Vahid Hashemian commented on KAFKA-3091: If I have version 0.9.0 running and run into this issue, what is the easiest way to manually work around it? Thanks. > Broker with an invalid id would not start when its id is updated to a new > valid one > --- > > Key: KAFKA-3091 > URL: https://issues.apache.org/jira/browse/KAFKA-3091 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.0 >Reporter: Vahid Hashemian >Assignee: Grant Henke >Priority: Minor > Fix For: 0.9.1.0 > > > Setup being used: > - Kafka 0.9.0 > - Two servers: > -- server 1: zookeeper and 3 brokers (ids: 0, 1, 2) > -- server 2: 2 brokers (ids: 10 and 1 -> 11) > When on server 2 the second broker with initial id of 1 is started an error > returned indicating the id 1 is in use. When the corresponding > servers.properties file is updated and id is changed to 11 the broker would > no longer start. The following error is returned: > [2016-01-12 13:40:22,145] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,147] INFO shutting down (kafka.server.KafkaServer) > [2016-01-12 13:40:22,148] INFO Shutting down. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Shutdown complete. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Terminate ZkClient event thread. > (org.I0Itec.zkclient.ZkEventThread) > [2016-01-12 13:40:22,155] INFO Session: 0x15237b0b6270014 closed > (org.apache.zookeeper.ZooKeeper) > [2016-01-12 13:40:22,155] INFO EventThread shut down > (org.apache.zookeeper.ClientCnxn) > [2016-01-12 13:40:22,156] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-12 13:40:22,156] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,157] INFO shutting down (kafka.server.KafkaServer) > I looked at existing JIRA tickets referencing this error but none seemed to > describe the exact scenario as the one here. Restarting brokers or the > zookeeper would not seem to help. > And upon further testing it appears the number of servers is irrelevant here, > and the same issue would surface in a one server setup too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KAFKA-3091) Broker with an invalid id would not start when its id is updated to a new valid one
[ https://issues.apache.org/jira/browse/KAFKA-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15134993#comment-15134993 ] Vahid Hashemian commented on KAFKA-3091: Never mind. I updated the {{broker.id}} property in the file {{kafka-logs/meta.properties}} to the right broker id, and were able to start the broker. > Broker with an invalid id would not start when its id is updated to a new > valid one > --- > > Key: KAFKA-3091 > URL: https://issues.apache.org/jira/browse/KAFKA-3091 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.0 >Reporter: Vahid Hashemian >Assignee: Grant Henke >Priority: Minor > Fix For: 0.9.1.0 > > > Setup being used: > - Kafka 0.9.0 > - Two servers: > -- server 1: zookeeper and 3 brokers (ids: 0, 1, 2) > -- server 2: 2 brokers (ids: 10 and 1 -> 11) > When on server 2 the second broker with initial id of 1 is started an error > returned indicating the id 1 is in use. When the corresponding > servers.properties file is updated and id is changed to 11 the broker would > no longer start. The following error is returned: > [2016-01-12 13:40:22,145] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,147] INFO shutting down (kafka.server.KafkaServer) > [2016-01-12 13:40:22,148] INFO Shutting down. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Shutdown complete. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Terminate ZkClient event thread. > (org.I0Itec.zkclient.ZkEventThread) > [2016-01-12 13:40:22,155] INFO Session: 0x15237b0b6270014 closed > (org.apache.zookeeper.ZooKeeper) > [2016-01-12 13:40:22,155] INFO EventThread shut down > (org.apache.zookeeper.ClientCnxn) > [2016-01-12 13:40:22,156] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-12 13:40:22,156] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,157] INFO shutting down (kafka.server.KafkaServer) > I looked at existing JIRA tickets referencing this error but none seemed to > describe the exact scenario as the one here. Restarting brokers or the > zookeeper would not seem to help. > And upon further testing it appears the number of servers is irrelevant here, > and the same issue would surface in a one server setup too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KAFKA-3091) Broker with an invalid id would not start when its id is updated to a new valid one
[ https://issues.apache.org/jira/browse/KAFKA-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15134995#comment-15134995 ] Vahid Hashemian commented on KAFKA-3091: [~granthenke] Just saw your note after my second message. Thanks for the pointer anyway. > Broker with an invalid id would not start when its id is updated to a new > valid one > --- > > Key: KAFKA-3091 > URL: https://issues.apache.org/jira/browse/KAFKA-3091 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.0 >Reporter: Vahid Hashemian >Assignee: Grant Henke >Priority: Minor > Fix For: 0.9.1.0 > > > Setup being used: > - Kafka 0.9.0 > - Two servers: > -- server 1: zookeeper and 3 brokers (ids: 0, 1, 2) > -- server 2: 2 brokers (ids: 10 and 1 -> 11) > When on server 2 the second broker with initial id of 1 is started an error > returned indicating the id 1 is in use. When the corresponding > servers.properties file is updated and id is changed to 11 the broker would > no longer start. The following error is returned: > [2016-01-12 13:40:22,145] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,147] INFO shutting down (kafka.server.KafkaServer) > [2016-01-12 13:40:22,148] INFO Shutting down. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Shutdown complete. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Terminate ZkClient event thread. > (org.I0Itec.zkclient.ZkEventThread) > [2016-01-12 13:40:22,155] INFO Session: 0x15237b0b6270014 closed > (org.apache.zookeeper.ZooKeeper) > [2016-01-12 13:40:22,155] INFO EventThread shut down > (org.apache.zookeeper.ClientCnxn) > [2016-01-12 13:40:22,156] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-12 13:40:22,156] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,157] INFO shutting down (kafka.server.KafkaServer) > I looked at existing JIRA tickets referencing this error but none seemed to > describe the exact scenario as the one here. Restarting brokers or the > zookeeper would not seem to help. > And upon further testing it appears the number of servers is irrelevant here, > and the same issue would surface in a one server setup too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KAFKA-3091) Broker with an invalid id would not start when its id is updated to a new valid one
[ https://issues.apache.org/jira/browse/KAFKA-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15106168#comment-15106168 ] ASF GitHub Bot commented on KAFKA-3091: --- Github user asfgit closed the pull request at: https://github.com/apache/kafka/pull/763 > Broker with an invalid id would not start when its id is updated to a new > valid one > --- > > Key: KAFKA-3091 > URL: https://issues.apache.org/jira/browse/KAFKA-3091 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.0 >Reporter: Vahid Hashemian >Assignee: Grant Henke >Priority: Minor > Fix For: 0.9.1.0 > > > Setup being used: > - Kafka 0.9.0 > - Two servers: > -- server 1: zookeeper and 3 brokers (ids: 0, 1, 2) > -- server 2: 2 brokers (ids: 10 and 1 -> 11) > When on server 2 the second broker with initial id of 1 is started an error > returned indicating the id 1 is in use. When the corresponding > servers.properties file is updated and id is changed to 11 the broker would > no longer start. The following error is returned: > [2016-01-12 13:40:22,145] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,147] INFO shutting down (kafka.server.KafkaServer) > [2016-01-12 13:40:22,148] INFO Shutting down. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Shutdown complete. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Terminate ZkClient event thread. > (org.I0Itec.zkclient.ZkEventThread) > [2016-01-12 13:40:22,155] INFO Session: 0x15237b0b6270014 closed > (org.apache.zookeeper.ZooKeeper) > [2016-01-12 13:40:22,155] INFO EventThread shut down > (org.apache.zookeeper.ClientCnxn) > [2016-01-12 13:40:22,156] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-12 13:40:22,156] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,157] INFO shutting down (kafka.server.KafkaServer) > I looked at existing JIRA tickets referencing this error but none seemed to > describe the exact scenario as the one here. Restarting brokers or the > zookeeper would not seem to help. > And upon further testing it appears the number of servers is irrelevant here, > and the same issue would surface in a one server setup too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (KAFKA-3091) Broker with an invalid id would not start when its id is updated to a new valid one
[ https://issues.apache.org/jira/browse/KAFKA-3091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15095644#comment-15095644 ] ASF GitHub Bot commented on KAFKA-3091: --- GitHub user granthenke opened a pull request: https://github.com/apache/kafka/pull/763 KAFKA-3091: Broker with an invalid id would not start when its id is … …updated to a new valid one You can merge this pull request into a Git repository by running: $ git pull https://github.com/granthenke/kafka id-start-failure Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/763.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #763 commit ba409ae96450d9517cf321557ff5940d6924a9a1 Author: Grant HenkeDate: 2016-01-13T05:11:10Z KAFKA-3091: Broker with an invalid id would not start when its id is updated to a new valid one > Broker with an invalid id would not start when its id is updated to a new > valid one > --- > > Key: KAFKA-3091 > URL: https://issues.apache.org/jira/browse/KAFKA-3091 > Project: Kafka > Issue Type: Bug >Affects Versions: 0.9.0.0 >Reporter: Vahid Hashemian >Assignee: Grant Henke >Priority: Minor > > Setup being used: > - Kafka 0.9.0 > - Two servers: > -- server 1: zookeeper and 3 brokers (ids: 0, 1, 2) > -- server 2: 2 brokers (ids: 10 and 1 -> 11) > When on server 2 the second broker with initial id of 1 is started an error > returned indicating the id 1 is in use. When the corresponding > servers.properties file is updated and id is changed to 11 the broker would > no longer start. The following error is returned: > [2016-01-12 13:40:22,145] FATAL Fatal error during KafkaServer startup. > Prepare to shutdown (kafka.server.KafkaServer) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,147] INFO shutting down (kafka.server.KafkaServer) > [2016-01-12 13:40:22,148] INFO Shutting down. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Shutdown complete. (kafka.log.LogManager) > [2016-01-12 13:40:22,153] INFO Terminate ZkClient event thread. > (org.I0Itec.zkclient.ZkEventThread) > [2016-01-12 13:40:22,155] INFO Session: 0x15237b0b6270014 closed > (org.apache.zookeeper.ZooKeeper) > [2016-01-12 13:40:22,155] INFO EventThread shut down > (org.apache.zookeeper.ClientCnxn) > [2016-01-12 13:40:22,156] INFO shut down completed (kafka.server.KafkaServer) > [2016-01-12 13:40:22,156] FATAL Fatal error during KafkaServerStartable > startup. Prepare to shutdown (kafka.server.KafkaServerStartable) > kafka.common.InconsistentBrokerIdException: Configured brokerId 11 doesn't > match stored brokerId 1 in meta.properties > at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:630) > at kafka.server.KafkaServer.startup(KafkaServer.scala:175) > at > kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37) > at kafka.Kafka$.main(Kafka.scala:67) > at kafka.Kafka.main(Kafka.scala) > [2016-01-12 13:40:22,157] INFO shutting down (kafka.server.KafkaServer) > I looked at existing JIRA tickets referencing this error but none seemed to > describe the exact scenario as the one here. Restarting brokers or the > zookeeper would not seem to help. > And upon further testing it appears the number of servers is irrelevant here, > and the same issue would surface in a one server setup too. -- This message was sent by Atlassian JIRA (v6.3.4#6332)