Folks I really hate to do this, but I need advice on the 'Kafka.pm' modules (interface to Apache Kafka Messaging). They do not install because of multiple failed tests.

I an working on RHEL7 (new OS for me), and have all the needed support packages installed. But the Kafka module is not installed due to numerous failed tests!

There is a mysterious statement in the README:

The following environment variable changes the way Kafka Benchmark tes +t behave: # The root directory of the installation Kafka 0.8+ KAFKA_BASE_DIR
Nothing more. Is that just an empty directory? is this the only inference that 'kafka' is expected to be installed on all system where this Perl module is installed?
Well, without this set, final testing fails because that ENV is not set. Why not just say that the ENV is required? I pointed that ENV to '/opt/kafkaEmptyDir', and made it to test 07_cluster.t which failed, as did all the following tests

There is no Apache Kafka installed on this client system, the Kafka is installed on a separate Server system.

---Update------------

I have things working, and I thought that if you called up this thread, you might like a tip on testing that your code really works. I installed Kafka with a 'walk-through' blog entry, so I am not at all familiar with Kafka itself. But, in order to get things talking, the Kafka configuration file "server.properties" needs to have the 2 'hostname' related items:

host.name=kafka advertised.host.name=kafka
And then I set /etc/hosts (on both machines) so that 'kafka' resolved to the IP of the Kafka server. Set it to some name resolvable by either the DNS or the /etc/hosts file on both the remote Kafka and the Perl client machine.

Good luck

It is always better to have seen your target for yourself, rather than depend upon someone else's description.


In reply to Experience with the Kafka interface modules by Wiggins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.