textFileStream

Create an input stream that monitors a Hadoop-compatible filesystem for new files and reads them as text files (using a key as LongWritable, value as Text, and input format as TextInputFormat). Files must be written to the monitored directory by moving them from another location within the same filesystem. File names starting with . are ignored:

def textFileStream(directory: String): DStream[String]
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.54.239