Skip to content

Instantly share code, notes, and snippets.

@bijeshp
Forked from mayankcpdixit/install-kafka-mac.md
Created February 28, 2019 22:14
Show Gist options
  • Select an option

  • Save bijeshp/669e9b79ab70174b308a65a7ad5f5d66 to your computer and use it in GitHub Desktop.

Select an option

Save bijeshp/669e9b79ab70174b308a65a7ad5f5d66 to your computer and use it in GitHub Desktop.

Revisions

  1. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ mkdir -p /usr/local/var/lib/kafka-logs
    sudo chmod 777 /usr/local/var/lib/kafka-logs
    /usr/local/Cellar/kafka/2.1.0/libexec/bin/kafka-server-start.sh /usr/local/etc/kafka/server.properties
    ```
    Update:
    Uncomment:
    ```
    listeners=PLAINTEXT://localhost:9092
    advertised.listeners=PLAINTEXT://localhost:9092
  2. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -11,5 +11,12 @@ mkdir -p /usr/local/var/lib/kafka-logs
    sudo chmod 777 /usr/local/var/lib/kafka-logs
    /usr/local/Cellar/kafka/2.1.0/libexec/bin/kafka-server-start.sh /usr/local/etc/kafka/server.properties
    ```
    Update:
    ```
    listeners=PLAINTEXT://localhost:9092
    advertised.listeners=PLAINTEXT://localhost:9092
    ```
    in your `/usr/local/etc/kafka/server.properties`.

    PS: if it's not present in `/usr/local/Cellar/kafka/2.1.0/libexec/bin/kafka-server-start.sh` then try running `/usr/local/bin/kafka-server-start` it'll give the path.
    keywords: Install Kafka on OSX via Homebrew,
  3. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -3,9 +3,13 @@
    run following commands:
    ```
    brew install kafka
    sudo mkdir -p /usr/local/var/run/zookeeper/data
    sudo chmod 777 /usr/local/var/run/zookeeper/data
    brew service start kafka
    brew service start zookeeper
    ```
    zkServer start
    mkdir -p /usr/local/var/lib/kafka-logs
    sudo chmod 777 /usr/local/var/lib/kafka-logs
    /usr/local/Cellar/kafka/2.1.0/libexec/bin/kafka-server-start.sh /usr/local/etc/kafka/server.properties
    ```
    PS: if it's not present in `/usr/local/Cellar/kafka/2.1.0/libexec/bin/kafka-server-start.sh` then try running `/usr/local/bin/kafka-server-start` it'll give the path.
    keywords: Install Kafka on OSX via Homebrew,
  4. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,8 @@ run following commands:
    ```
    brew install kafka
    sudo chmod 777 /usr/local/var/run/zookeeper/data
    brew start kafka
    brew start zookeeper
    ```
    brew service start kafka
    brew service start zookeeper
    ```

    keywords: Install Kafka on OSX via Homebrew,
  5. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    # To install kafka in your local mac machine run following commands:
    # Install kafka in your local mac machine

    run following commands:
    ```
    brew install kafka
    sudo chmod 777 /usr/local/var/run/zookeeper/data
  6. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    To install kafka in your local mac machine run following commands:
    # To install kafka in your local mac machine run following commands:

    ```
    brew install kafka
  7. @mayankcpdixit mayankcpdixit revised this gist Dec 10, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    To install kafka in your local mac machine run following commands:

    ```
    brew install kafka
    sudo chmod 777 /usr/local/var/run/zookeeper/data
  8. @mayankcpdixit mayankcpdixit created this gist Dec 10, 2018.
    6 changes: 6 additions & 0 deletions install-kafka-mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    ```
    brew install kafka
    sudo chmod 777 /usr/local/var/run/zookeeper/data
    brew start kafka
    brew start zookeeper
    ```