Thanks. This worked. I had to use the Docker desktop app, not docker-machine, with which it gave errors around permissions setting up /etc/hosts.
On Mon, Jun 29, 2020 at 10:24 AM Nikolay Izhikov <nizhi...@apache.org> wrote: > Hello, > > I successfully run system tests on Mac with Docker. > I followed the instruction on [1] and it works like a charm. > > [1] > https://github.com/apache/kafka/tree/trunk/tests#running-tests-using-docker > > > > 29 июня 2020 г., в 12:14, Gokul Ramanan Subramanian < > gokul24...@gmail.com> написал(а): > > > > Hi. > > > > Has anyone had luck running Kafka system tests on a Mac. I have a MacOS > > Mojave 10.14.6. I got Python 3.6.9 using pyenv. However, the command > > *ducktape tests/kafkatest/tests* yields the following error, making it > look > > like some Python incompatibility issue. > > > > $ ducktape tests/kafkatest/tests > > Traceback (most recent call last): > > File "/Users/gokusubr/.pyenv/versions/3.6.9/bin/ducktape", line 11, in > > <module> > > load_entry_point('ducktape', 'console_scripts', 'ducktape')() > > File > > > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > > line 487, in load_entry_point > > return get_distribution(dist).load_entry_point(group, name) > > File > > > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > > line 2728, in load_entry_point > > return ep.load() > > File > > > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > > line 2346, in load > > return self.resolve() > > File > > > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > > line 2352, in resolve > > module = __import__(self.module_name, fromlist=['__name__'], level=0) > > File > > > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/ducktape-0.7.6-py3.6.egg/ducktape/command_line/main.py", > > line 127 > > print "parameters are not valid json: " + str(e.message) > > ^ > > SyntaxError: invalid syntax > > > > I followed the instructions in tests/README.md to setup a cluster of 9 > > worker machines. That worked well. When I ran *python setup.py develop* > to > > install the necessary dependencies (including ducktape), I got similar > > errors to above, but the overall command completed successfully. > > > > Any help appreciated. > > > > Thanks. > >