Apache spark 火花结构化流式点火连接故障

Apache spark 火花结构化流式点火连接故障,apache-spark,ignite,spark-structured-streaming,Apache Spark,Ignite,Spark Structured Streaming,我正在尝试将ignite集成到spark结构化流媒体应用程序中。 以下是我为ignite提供的依赖项 -点火芯, -点燃火花, -点火弹簧, -缓存api 点火的火花配置 private static final String CONFIG = "C:\\apache-ignite-2.7.6-bin\\config\\default-config.xml"; spark.read().format(IgniteDataFrameSettings.FORMAT_IGNITE()) .option

我正在尝试将ignite集成到spark结构化流媒体应用程序中。
以下是我为ignite提供的依赖项
-点火芯,
-点燃火花,
-点火弹簧,
-缓存api

点火的火花配置

private static final String CONFIG = "C:\\apache-ignite-2.7.6-bin\\config\\default-config.xml";
spark.read().format(IgniteDataFrameSettings.FORMAT_IGNITE())
.option(IgniteDataFrameSettings.OPTION_CONFIG_FILE(), CONFIG)
.option(IgniteDataFrameSettings.OPTION_TABLE(), "person")
.load();
完全不知道如何解决下面的错误,因为配置是二进制文件中提供的默认配置。包含所有依赖项。
-点燃2.7.6
-Spark 2.4.0

 ERROR StpMain: Error
class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUrl=file:/C:/apache-ignite-2.7.6-bin/config/default-config.xml, err=Line 26 in XML document from URL [file:/C:/apache-ignite-2.7.6-bin/config/default-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 72; cvc-elt.1: Cannot find the declaration of element 'beans'.]
default config.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
        <property name="cacheConfiguration">
            <!-- SharedRDD cache example configuration (Atomic mode). -->
            <bean class="org.apache.ignite.configuration.CacheConfiguration">
                <!-- Set a cache name. -->
                <property name="name" value="sharedRDD"/>
                <!-- Set a cache mode. -->
                <property name="cacheMode" value="PARTITIONED"/>
                <!-- Index Integer pairs used in the example. -->
                <property name="indexedTypes">
                    <list>
                        <value>java.lang.Integer</value>
                        <value>java.lang.Integer</value>
                    </list>
                </property>
                <!-- Set atomicity mode. -->
                <property name="atomicityMode" value="ATOMIC"/>
                <!-- Configure a number of backups. -->
                <property name="backups" value="1"/>
            </bean>
        </property>

        <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. -->
        <property name="discoverySpi">
            <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    <!--
                        Ignite provides several options for automatic discovery that can be used
                        instead os static IP based discovery. For information on all options refer
                        to our documentation: http://apacheignite.readme.io/docs/cluster-config
                    -->
                    <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. -->
                    <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">-->
                    <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                        <property name="addresses">
                            <list>
                                <!-- In distributed environment, replace with actual host IP address. -->
                                <value>localhost:10800</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>
</beans>

java.lang.Integer
java.lang.Integer
本地主机:10800

请查看此线程。看起来那个人也有同样的问题:

我想您应该在XML旁边添加:

<beans xmlns="http://www.springframework.org/schema/beans" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-**[MAYOR.MINOR]**.xsd"

还应说明Spark 2.4尚不受支持


这是Apache Ignite JIRA上的票证,您可以在这里跟踪状态

请发布有问题的XML文件。首先,我注意到
“C:\\pct\\Apache-Ignite-2.7.6-bin\\config\\deafolt config.XML”
不同于
C:/Apache-Ignite-2.7.6-bin/config/default config.XML
,也许你应该这样挖掘。@alamar..包含了xmlfile@VladimirPligin..path错配是我提出问题时的错误。使用正确的路径和default-config.xml更新了问题