Cluster computing Flink群集中Ignite用户定义函数的ClassNotFound错误
我正试图将由ApacheFlink传输的数据缓存到ApacheIgnite缓存中。我还想运行使用用户定义函数的查询。根据Ignite,我在声明缓存时使用了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
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存在于工作节点类路径中