Ignite for Spark

℡╲_俬逩灬. 提交于 2019-12-23 04:52:16

问题


I am trying to load ignite cache into spark . But I am getting java.sql.SQLException : Unsupported type 1111

SparkSession spark = SparkSession.builder()
                .appName("Java Spark SQL data sources example")
                .config("spark.master", "spark://10.104.146.199:7077")
                .getOrCreate();

     Dataset<Row> df = spark.read().format("jdbc")
    .option("url", "jdbc:ignite:cfg://cache=DEVICE_CACHE:distributedJoins=false@file:///C:/Users/IBM_ADMIN/Desktop/ignite-client-config-with-timeout.xml") 
    .option("driver", "org.apache.ignite.IgniteJdbcDriver") 
    .option("dbtable", "DEVICE")
    .load();
     df.count();

来源:https://stackoverflow.com/questions/42061729/ignite-for-spark

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!