You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/01 11:27:11 UTC

[jira] [Commented] (FLINK-4118) The docker-flink image is outdated (1.0.2) and can be slimmed down

    [ https://issues.apache.org/jira/browse/FLINK-4118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15358823#comment-15358823 ] 

ASF GitHub Bot commented on FLINK-4118:
---------------------------------------

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
    ```


> The docker-flink image is outdated (1.0.2) and can be slimmed down
> ------------------------------------------------------------------
>
>                 Key: FLINK-4118
>                 URL: https://issues.apache.org/jira/browse/FLINK-4118
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Ismaël Mejía
>            Priority: Minor
>
> This issue is to upgrade the docker image and polish some details in it (e.g. it can be slimmed down if we remove some unneeded dependencies, and the code can be polished).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)