DataSet.writeAsText(hdfs://<path to destination directory>) should work.

— Ken

> On Apr 29, 2019, at 8:00 AM, Hai <h...@magicsoho.com> wrote:
> 
> Hi, 
> 
> Could anyone give a simple way to write a DataSet<String> into hdfs using a 
> simple way?
> 
> I look up the official document, and didn’t find that, am I missing some 
> thing ?
> 
> Many thanks.

--------------------------
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
Custom big data solutions & training
Flink, Solr, Hadoop, Cascading & Cassandra

Reply via email to