flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iemejia <...@git.apache.org>
Subject [GitHub] flink issue #2176: [FLINK-4118] The docker-flink image is outdated (1.0.2) a...
Date Fri, 01 Jul 2016 11:26:51 GMT
Github user iemejia commented on the issue:

    https://github.com/apache/flink/pull/2176
  
    Hi, I tested it with the basic word count and with the beam pipeline example that @ecesena
put for his flink/beam demo.
    
    I don't know if your case is maybe because you are running on docker for mac, but check
two things.
    1. docker assigns an internal IP to each running container (the one corresponding to the
jobmanager is the one to put in the -m argument).
    2. The path you pass in the examples must be accesible from the container, e.g. you must
copy the file in all the nodes (as I mention in the README), or mount them with a volume (-v
on docker).
    e.g.
    ```
    $FLINK_HOME/bin/flink run -m 172.18.0.2:6123 examples/batch/WordCount.jar --input file:///tmp/kinglear.txt
    ```
    The kinglear file must be in all the nodes. I copy those like this:
    ```
    for i in $(docker ps --filter name=flink --format={{.ID}}); do                       
        
        docker cp ~/Desktop/flink-beam/kinglear.txt $i:/tmp/
    done
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message