ASF GitHub Bot commented on FLINK-4792:

GitHub user nssalian opened a pull request:


    [FLINK-4792] [Docs] Update documentation - FlinkML/QuickStart Guide

    Thanks for contributing to Apache Flink. Before you open your pull request, 
please take the following check list into consideration.
    If your changes take all of the items into account, feel free to open your 
pull request. For more information and/or questions please refer to the [How To 
Contribute guide](http://flink.apache.org/how-to-contribute.html).
    In addition to going through the list, please provide a meaningful 
description of your changes.
    - [ ] General
      - The pull request references the related JIRA issue ("[FLINK-4792] 
Update documentation - FlinkML/QuickStart Guide")
    - [ ] Documentation
      - Modified the example to correct the import statement in Loading Data
    - [ ] Tests & Build
      - Functionality added by the pull request is covered by tests
      - `mvn clean verify` has been executed successfully locally or a Travis 
build has passed

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nssalian/flink FLINK-4792-code

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2641
commit 65b3ff78f100ed1b13ec2fcc727f4869823b5918
Author: Neelesh Srinivas Salian <nsal...@cloudera.com>
Date:   2016-09-12T22:38:06Z

    FLINK-4614: Changed the version from 1.2-SNAPSHOT to 1.2 to help correct 
docs in 1.2.0

commit f07e5bfaea21b6c3bf562d1f167c3ec50948773c
Author: Neelesh Srinivas Salian <nsal...@cloudera.com>
Date:   2016-10-17T00:54:20Z

    FLINK-4792: Changed the import statement for the Loading data example


> Update documentation - FlinkML/QuickStart Guide
> -----------------------------------------------
>                 Key: FLINK-4792
>                 URL: https://issues.apache.org/jira/browse/FLINK-4792
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Thomas FOURNIER
>            Priority: Trivial
> Hi,
> I'm going through the first steps of FlinkML/QuickStart guide: 
> https://ci.apache.org/projects/flink/flink-docs-release-1.2/dev/libs/ml/quickstart.html
> When using env.readCsvFile:
> val env = ExecutionEnvironment.getExecutionEnvironment
> val survival = env.readCsvFile[(String, String, String, String)]("path/data")
> I encounter the following error:
> Error:(17, 69) could not find implicit value for evidence parameter of type 
> org.apache.flink.api.common.typeinfo.TypeInformation[(String, String, String, 
> String)]
> Error occurred in an application involving default arguments.
> val survival = env.readCsvFile[(String, String, String, String)]("path/data")
> To solve this issue, you need to do the following imports:
> import org.apache.flink.api.scala._  ( instead of import 
> org.apache.flink.api.scala.ExecutionEnvironment as documented).
> I think it would be relevant to update the documentation, even if this point 
> is mentioned in FAQ.
> Thanks
> Best
> Thomas

This message was sent by Atlassian JIRA

Reply via email to