我正在尝试通过CDATA JDBC驱动程序与Facebook连接。我正在使用Apache Spark。但是获取空表记录。
我尝试了以下给出的链接-
https://www.cdata.com/kb/tech/facebook-jdbc-apache-spark.rst
val facebook_df=spark.sqlContext.read.format("jdbc").option("url", "jdbc:facebook:InitiateOAuth=GETANDREFRESH").option("User Name","User@gmail.com").option("Password","password").option("dbtable","Wall").option("driver","cdata.jdbc.facebook.InstagramDriver").load()
facebook_df.registerTempTable("Photos")
val result=sqlContext.sql("SELECT ID,Target,FromId,FromName,FromPicture,FromCategory,Link,Name FROM Photos")
result.show()