Write simple text into hdfs

classic Classic list List threaded Threaded
2 messages Options
hai
Reply | Threaded
Open this post in threaded view
|

Write simple text into hdfs

hai

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.

Reply | Threaded
Open this post in threaded view
|

Re: Write simple text into hdfs

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

— Ken

On Apr 29, 2019, at 8:00 AM, Hai <[hidden email]> 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