Github user kylerichardson commented on the issue:
https://github.com/apache/incubator-metron/pull/393
@merrimanr Thanks for pointing out the location of the storm logs. I think
it would be worth adding that to the README.
I have a fix for the kafkazk image running on local docker-engine (using
unix socket). It requires an additional ARG in the Dockerfile (and
docker-compose.yml) and an extra sed statement when producing the
advertised.listeners parameter.
docker-compose.yml
```
...
kafkazk:
build:
context: ./kafkazk
args:
DOCKER_HOST: $DOCKER_HOST
+ BROKER_IP_ADDR: $BROKER_IP_ADDR
METRON_VERSION: $METRON_VERSION
...
```
kafkazk/Dockerfile
```
...
+ARG DOCKER_HOST
+ARG BROKER_IP_ADDR
ARG METRON_VERSION
...
RUN echo -n 'advertised.listeners=PLAINTEXT://' >>
/opt/kafka_2.11-0.10.0.0/config/server.properties
+RUN echo $DOCKER_HOST | sed "s/^$/"$BROKER_IP_ADDR":/g" | sed
"s/tcp:\\/\\///g" | sed "s/:.*/:9092/g" >>
/opt/kafka_2.11-0.10.0.0/config/server.properties
...
```
I would also suggest a note in the documentation. In the Setup section of
the README, maybe something along the lines of... If you wish to use a local
docker-engine install, please set an environment variable BROKER_IP_ADDR to the
IP address of your host machine. This cannot be the loopback address.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---