Giter Site home page Giter Site logo

vagrant-kafka's People

Contributors

caddac avatar eladleev avatar eucuepo avatar imarios avatar luiscarlin avatar padawin avatar xtruan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vagrant-kafka's Issues

Cannot connect to zookeeper node with openjdk-jre

I was getting this error when trying to create a topic after starting the VMs.

[2017-01-15 18:49:40,997] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.
ClientCnxn)
java.net.NoRouteToHostException: No route to host
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

This initial issue was caused by zookeeper not being started when the VM came up. I fixed this by manually starting ZK on each VM. However, this led to a new issue- I was timing out after 30 seconds trying to create a topic.

After perusing some of the previously closed issues (specifically #5 and #6) I found that some fiddling had been done to the version of Java being installed. In issue #6 it was suggested to query the JVM using jps, a tool that is available with the JDK but not the JRE. I found that the JRE is installed when issuing -su -c "yum -y install java-1.8.0-openjdk". To get the JDK, you must append -devel.

After changing the yum installation to install the JDK, running a vagrant destroy and a vagrant up, and lastly manually starting the ZK nodes again, topic creation worked and I was able to query the JVM and see QuorumPeerMain.

Can't run scripts to create or list topics

I've succesfully ssh'd into one of the brokers, but when trying to run the script (or any of the scripts) /vagrant/scripts/create_topic.sh I get the error -bash: /vagrant/scripts/create_topic.sh: /bin/bash^M: bad interpreter: No such file or directory

I'm running this on Windows 10 in Powershell, but I've also tried in Cmd. Looks like a line ending issue?

broker2 installation fails

Tried installing vagrant-kafka on macOS Sierra using VirtualBox 5.1.30 r118389 (Qt5.6.3) and Guest Additions 5.0.16. Installation went smoothly until broker2. Seems to be a case of an incorrect or missing RPM. Pasting pertinent log section below:

==> broker2: Importing base box 'puppetlabs/centos-6.6-64-puppet'...
==> broker2: Matching MAC address for NAT networking...
==> broker2: Checking if box 'puppetlabs/centos-6.6-64-puppet' is up to date...
==> broker2: Setting the name of the VM: vagrant-kafka-master_broker2_1513063725650_57316
==> broker2: Fixed port collision for 22 => 2222. Now on port 2203.
==> broker2: Clearing any previously set network interfaces...
==> broker2: Preparing network interfaces based on configuration...
    broker2: Adapter 1: nat
    broker2: Adapter 2: intnet
==> broker2: Forwarding ports...
    broker2: 22 (guest) => 2203 (host) (adapter 1)
==> broker2: Running 'pre-boot' VM customizations...
==> broker2: Booting VM...
==> broker2: Waiting for machine to boot. This may take a few minutes...
    broker2: SSH address: 127.0.0.1:2203
    broker2: SSH username: vagrant
    broker2: SSH auth method: private key
==> broker2: Machine booted and ready!
==> broker2: Checking for guest additions in VM...
    broker2: The guest additions on this VM do not match the installed version of
    broker2: VirtualBox! In most cases this is fine, but in rare cases it can
    broker2: prevent things such as shared folders from working properly. If you see
    broker2: shared folder errors, please make sure the guest additions within the
    broker2: virtual machine match the version of VirtualBox you have installed on
    broker2: your host and reload your VM.
    broker2:
    broker2: Guest Additions Version: 5.0.16
    broker2: VirtualBox Version: 5.1
==> broker2: Setting hostname...
==> broker2: Configuring and enabling network interfaces...
    broker2: SSH address: 127.0.0.1:2203
    broker2: SSH username: vagrant
    broker2: SSH auth method: private key
==> broker2: Mounting shared folders...
    broker2: /vagrant => /Users/bdiego/CO/Projects/Kafka/vagrant-kafka-master
==> broker2: Running provisioner: shell...
    broker2: Running: /var/folders/rd/m7t7bhts30qf7dn782_s6lh80000gp/T/vagrant-shell20171212-1689-1nb2rx3.sh
    broker2: Downloading kafka...0.9.0.1
    broker2: iptables: Setting chains to policy ACCEPT: filter
    broker2: [  OK  ]
    broker2: iptables: Flushing firewall rules:
    broker2: [  OK  ]
    broker2: iptables: Unloading modules:
    broker2: [  OK  ]
    broker2: installing jdk and kafka ...
    broker2: error:
    broker2: not an rpm package
    broker2: error:
    broker2: /vagrant/rpm/jdk-8u73-linux-x64.rpm: not an rpm package (or package manifest):
    broker2:
    broker2: gzip:
    broker2: stdin: unexpected end of file
    broker2: tar: Child returned status 1
    broker2: tar: Error is not recoverable: exiting now
    broker2: chown:
    broker2: cannot access `kafka_2.10-0.9.0.1'
    broker2: : No such file or directory
    broker2: done installing jdk and Kafka
==> broker2: Running provisioner: shell...
    broker2: Running: /var/folders/rd/m7t7bhts30qf7dn782_s6lh80000gp/T/vagrant-shell20171212-1689-nqf6xf.sh
    broker2: /tmp/vagrant-shell: line 5: /home/vagrant/kafka_2.10-0.9.0.1/bin/kafka-server-start.sh: No such file or directory
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

zookeeper1: chmod: cannot access `/vagrant/scripts/*.sh': No such file or directory

Ran into this on Windows (two different machines). This one is 1809.

    zookeeper1: Installed:
    zookeeper1:   java-1.8.0-openjdk-devel.x86_64 1:1.8.0.222.b10-0.el6_10
    zookeeper1:
    zookeeper1: Dependency Installed:
    zookeeper1:   atk.x86_64 0:1.30.0-1.el6
[…]
    zookeeper1:   xorg-x11-fonts-Type1.noarch 0:7.2-11.el6
    zookeeper1:
    zookeeper1: Complete!
    zookeeper1: kafka_2.11-1.1.0/
    zookeeper1: kafka_2.11-1.1.0/LICENSE
    zookeeper1: kafka_2.11-1.1.0/NOTICE
    zookeeper1: kafka_2.11-1.1.0/bin/
    zookeeper1: kafka_2.11-1.1.0/bin/connect-distributed.sh
    zookeeper1: kafka_2.11-1.1.0/bin/connect-standalone.sh
    zookeeper1: kafka_2.11-1.1.0/bin/kafka-acls.sh
    zookeeper1: kafka_2.11-1.1.0/bin/kafka-broker-api-versions.sh
    zookeeper1: kafka_2.11-1.1.0/bin/kafka-configs.sh
[…]
    zookeeper1: kafka_2.11-1.1.0/libs/kafka-streams-examples-1.1.0.jar
    zookeeper1: done installing JDK and Kafka...
    zookeeper1: chmod: cannot access `/vagrant/scripts/*.sh': No such file or directory
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
C:\oss\vagrant-kafka>

Error during jdk install

Dear Eugenio,
first of all, thank you for this vagrant configuration.

Following issue occurred during installation on each broker:

Example broker:

==> broker2: iptables: Unloading modules:
==> broker2: [  OK  ]
==> broker2: installing jdk and kafka ...
==> broker2: error:
==> broker2: not an rpm package
==> broker2: error:
==> broker2: /vagrant/rpm/jdk-8u73-linux-x64.rpm: not an rpm package (or package manifest):
==> broker2: kafka_2.10-0.9.0.1/

Due to error in jdk installation new Kafka topic can't be created:

[vagrant@broker1 scripts]$ ./create_topic.sh test
/home/vagrant/kafka_2.10-0.9.0.1/bin/kafka-run-class.sh: line 167: exec: java: not found

Vagrant Version: 1.9.5
Windows 8.1
Oracle VirtualBox 5.1.22

Oracle lincense not accepted when downloading JDK

The license need to be accepted in order to download the JDK from Oracle.

To make that happen, just add this cookie to wget:
Cookie: oraclelicense=accept-securebackup-cookie

Resulting in:

wget -O /vagrant/rpm/jdk-7u45-linux-x64.rpm --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-x64.rpm"

Error 404 when downloading Kafka

The link https://poole.im/files/kafka-0.8.0-9.x86_64.rpm no longer works (that's right, https - since the http redirects here). Moreover, when it is https then it should have the --no-check-certificate parameter.

The java rpm is an empty file

I installed vagrant-kafka, but it logged

    broker3: installing JDK and Kafka...
    broker3: error: 
    broker3: not an rpm package
    broker3: error: 
    broker3: /vagrant/rpm/jdk-8u151-linux-x64.rpm: not an rpm package (or package manifest): 

None of the vms had java, so I got

$ vagrant ssh zookeeper1
[vagrant@zookeeper1 ~]$ /vagrant/scripts/create-topic.sh test-one
/home/vagrant/kafka_2.11-1.0.0/bin/kafka-run-class.sh: line 270: exec: java: not found

Getting error when create or listing topics

Running the create_topics.sh or list-topics.sh script give me the following error over and over until I ctrl + c to quit:

[vagrant@broker1 ~]$ /vagrant/scripts/create_topic.sh myTopic
[2017-01-15 18:49:40,997] WARN Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect (org.apache.zookeeper.
ClientCnxn)
java.net.NoRouteToHostException: No route to host
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.