提交 1e1d7b10 编写于 作者: T TANG Wen-hui 提交者: Stefan Richter

[hotfix][docs] Fix example code of readSequenceFile in dev/batch/index.html.md

This closes #7806.
上级 d049d3a3
......@@ -1028,8 +1028,8 @@ val values = env.fromElements("Foo", "bar", "foobar", "fubar")
val numbers = env.generateSequence(1, 10000000)
// read a file from the specified path of type SequenceFileInputFormat
val tuples = env.readSequenceFile(classOf[IntWritable], classOf[Text],
"hdfs://nnHost:nnPort/path/to/file")
val tuples = env.createInput(HadoopInputs.readSequenceFile(classOf[IntWritable], classOf[Text],
"hdfs://nnHost:nnPort/path/to/file"))
{% endhighlight %}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册