Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4792

Update documentation - FlinkML/QuickStart Guide

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • Documentation
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              neelesh77 Neelesh Srinivas Salian
              Thomas_F Thomas FOURNIER
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: