配置单元脚本/操作工作流失败:启动器异常:java.lang.runtimeexception

guz6ccqo  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(358)

我在cloudera5.6上尝试运行简单的配置单元脚本工作流。但我失败了,除了下面的例外。有什么问题吗?我将脚本文件和hive-site.xml复制到hdfs文件夹。
这里是工作流定义

<workflow-app name="Add_table_partitions" xmlns="uri:oozie:workflow:0.5">
    <start to="hive-7bc5"/>
    <kill name="Kill">
        <message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
    </kill>
    <action name="hive-7bc5" cred="hcat">
        <hive xmlns="uri:oozie:hive-action:0.2">
            <job-tracker>${jobTracker}</job-tracker>
            <name-node>${nameNode}</name-node>
              <job-xml>/user/hive/workflow/hive-site.xml</job-xml>
            <script>/user/hive/workflow/add_partitions.sql</script>
        </hive>
        <ok to="End"/>
        <error to="Kill"/>
    </action>
    <end name="End"/>
</workflow-app>

提前谢谢。

2016-04-22 17:25:39,084 WARN org.apache.oozie.action.hadoop.HiveActionExecutor: SERVER[hadoop1.localdomain] USER[admin] GROUP[-] TOKEN[] APP[Add_igortest_tweets_table_partitions] JOB[0000234-160416142003812-oozie-oozi-W] ACTION[0000234-160416142003812-oozie-oozi-W@hive-7bc5] Launcher exception: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
    java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:510)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
        at org.apache.oozie.action.hadoop.HiveMain.runHive(HiveMain.java:325)
        at org.apache.oozie.action.hadoop.HiveMain.run(HiveMain.java:302)
        at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:49)
        at org.apache.oozie.action.hadoop.HiveMain.main(HiveMain.java:69)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:236)
        at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54)
        at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:343)
        at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.runSubtask(LocalContainerLauncher.java:388)
        at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.runTask(LocalContainerLauncher.java:302)
        at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler.access$200(LocalContainerLauncher.java:187)
        at org.apache.hadoop.mapred.LocalContainerLauncher$EventHandler$1.run(LocalContainerLauncher.java:230)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
        at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1492)
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:64)
        at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:74)
        at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2931)
        at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2950)
fcg9iug3

fcg9iug31#

看起来版本与metastore和hivelibraries不匹配
试试这个
http://www.cloudera.com/documentation/cdh/5-0-x/cdh5-installation-guide/cdh5ig_hive_schema_tool.html

相关问题