|
|
@ -1,7 +1,5 @@ |
|
|
|
package com.fanbin; |
|
|
|
|
|
|
|
import java.util.concurrent.TimeoutException; |
|
|
|
|
|
|
|
import org.apache.spark.sql.Dataset; |
|
|
|
import org.apache.spark.sql.Row; |
|
|
|
import org.apache.spark.sql.SparkSession; |
|
|
@ -9,8 +7,8 @@ import org.apache.spark.sql.streaming.StreamingQuery; |
|
|
|
import org.apache.spark.sql.streaming.StreamingQueryException; |
|
|
|
import org.apache.spark.sql.types.DataTypes; |
|
|
|
import org.apache.spark.sql.types.StructType; |
|
|
|
import org.apache.spark.sql.types.DataTypes; |
|
|
|
import org.apache.spark.sql.types.StructType; |
|
|
|
|
|
|
|
import java.util.concurrent.TimeoutException; |
|
|
|
|
|
|
|
public class SparkFileStreamingReader { |
|
|
|
public static void main(String[] args) throws StreamingQueryException, TimeoutException { |
|
|
|