I want to use use fileStream in spark streaming to monitor multi hdfs
directories, such as:

val list_join_action_stream = ssc.fileStream[LongWritable, Text,
TextInputFormat]("/user/root/*/*", check_valid_file(_),
false).map(_._2.toString).print


Buy the way, i could not under the meaning of the three class :
LongWritable, Text, TextInputFormat

but it doesn't work...



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/how-to-monitor-multi-directories-in-spark-streaming-task-tp22863.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to