Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cluster computing Flink群集中Ignite用户定义函数的ClassNotFound错误_Cluster Computing_Apache Flink_Ignite_Flink Streaming - Fatal编程技术网

Cluster computing Flink群集中Ignite用户定义函数的ClassNotFound错误

Cluster computing Flink群集中Ignite用户定义函数的ClassNotFound错误,cluster-computing,apache-flink,ignite,flink-streaming,Cluster Computing,Apache Flink,Ignite,Flink Streaming,我正试图将由ApacheFlink传输的数据缓存到ApacheIgnite缓存中。我还想运行使用用户定义函数的查询。根据Ignite,我在声明缓存时使用了cacheConf.setSqlFunctionClasses(GetCacheKey.class)设置。类声明如下: public static class GetCacheKey implements Serializable{ @QuerySqlFunction public static long getCacheKey

我正试图将由ApacheFlink传输的数据缓存到ApacheIgnite缓存中。我还想运行使用用户定义函数的查询。根据Ignite,我在声明缓存时使用了
cacheConf.setSqlFunctionClasses(GetCacheKey.class)
设置。类声明如下:

public static class GetCacheKey implements Serializable{

   @QuerySqlFunction
    public static long getCacheKey(int mac, long local) {            
        long key=(local << 5) + mac; 
        return key;
    } 
公共静态类GetCacheKey实现可序列化{
@QuerySqlFunction
公共静态长getCacheKey(int mac,长本地){

long key=(本地请检查GetCacheKey.class是否在ignite nodes类路径中。

同一路径下的每个工作进程上都必须有Flink目录。您可以使用共享NFS目录,或将整个Flink目录复制到每个工作进程节点

还要确保Ignite LIB存在于工作节点类路径中