我想在 Vertica 中创建 R 功能,我收到了错误消息。 任何帮助或线索都会被高度关注
dbadmin=> create transform function pred as language 'R' name 'pred' library predLb;
ROLLBACK 3399: Failure in UDx RPC call InvokeGetUdxType(): Error calling getUdxType() in User Defined Object [predict] at [/scratch_a/release/16125/vbuild/vertica/OSS/UDxFence/vertica-udx-R.cpp:209], error code: 0, message: Error happened in getUdxType : Exception in processing required attribute udxtype in the factory function : no applicable method for 'predict' applied to an object of class "NULL"
#dbLog错误
Starting UDxSideProcess for language R
with command line: /opt/vertica/bin/vertica-udx-R 3 node-32420:0x61c5 debug-log-off /home/dbadmin/stream/v_stream_node0001_catalog/UDxLogs
来自UDx日志的#Error
/home/dbadmin/stream/v_stream_node0001_catalog/UDxLogs/UDxFencedProcesses.log
2015-06-24 11:15:55.922 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 UDx side process started
11:15:55.922 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 My port: 46526
11:15:55.922 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 My address: 0.0.0.0
11:15:55.922 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 Vertica port: 37765
11:15:55.922 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 Vertica address: 127.0.0.1
11:15:55.922 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 Vertica address family: 2
11:15:55.946 [R-node-32420:0x61c5-2309] 0x7f3c460457a0 UDx_ereport: Exception in processing required attribute udxtype in the factory function : no applicable method for 'predict' applied to an object of class "NULL"
11:15:55.946 [R-node-32420:0x61c5-2309] 0x7f3c460457a0 UDx_ereport: Error happened in getUdxType : Exception in processing required attribute udxtype in the factory function : no applicable method for 'predict' applied to an object of class "NULL"
11:15:55.946 [R-node-32420:0x61c5-2309] 0x7f3c460457a0 Error in recv(): Vertica process has exited abnormally
11:15:58.003 [R-node-32420:0x61c5-2308] 0x7f3c460457a0 Received SIGTERM, exiting
答案 0 :(得分:0)
找到答案! 实际上R libs没有任何问题,它只是一个拼写问题! :(而不是我自己。我不会审查R Udx代码。 R函数名称是pred不同。