点燃火花

时间:2017-02-06 06:39:47

标签: apache-spark ignite

我正在尝试将点火缓存加载到spark中。但我得到java.sql.SQLException:不支持的类型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();

0 个答案:

没有答案