Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/1299#discussion_r43560498
--- Diff: docs/apis/programming_guide.md ---
@@ -1923,6 +1943,12 @@ val values = env.fromElements("Foo", "bar",
"foobar", "fubar")
val numbers = env.generateSequence(1, 10000000);
{% endhighlight %}
+// read a file from the specified path of type TextInputFormat
+val tuples = env.readHadoopFile(new TextInputFormat, classOf[Text],
classOf[Text], "hdfs://nnHost:nnPort/path/to/file")
--- End diff --
first Text -> LongWritable
---
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.
---