Hive查询文件执行失败,通过oozie

时间:2014-05-30 13:56:49

标签: hive oozie

我有一个具有UDF功能的配置单元查询文件。当我使用" hive -f myqfile.q"运行此查询文件时,它正在正确执行,并且数据填充在我的最终表中。

但是当同一个查询文件正在通过oozie工作流程执行时,它会失败,并显示以下错误消息,

FAILED: SemanticException: [Error: 10014]: Line: 29:17 Wrong arguments '"start"': No method matching for class com.abc.xyz.hive.udf.GetRowKeyRange with (string, string, string, string). Possible choices: _FUNC_(string, string, string, string, string)
Intercepting System.exit(10014)
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [10014]

在上面的错误消息" start"是我的hive udf的参数之一的值。

存在q文件的jar路径是正确的(手动执行正在工作),hive udf名称在side q文件中创建,类com.abc.xyz.hive.udf.GetRowKeyRange具有evaluate方法只有4个参数。

我不确定这个错误是怎么出现的,我试图弄清楚,最后我无法找出原因。有人可以帮我这个。

1 个答案:

答案 0 :(得分:1)

包含此UDF的.jar是否也位于HDFS上?如果它是本地的,Oozie可能无法遵循jar路径。

相关问题