美文网首页
Oozie:出错集锦

Oozie:出错集锦

作者: chengruru | 来源:发表于2018-08-16 10:52 被阅读0次

一、mysql 驱动jar包问题

       出错提示如下:

$ ./bin/ooziedb.sh create -sqlfile oozie.sql -run DB Connection
  setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"

Validate DB Connection

Error: Could not connect to the database: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Stack trace for the error was (for debug purposes):
--------------------------------------
java.lang.Exception: Could not connect to the database: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at org.apache.oozie.tools.OozieDBCLI.validateConnection(OozieDBCLI.java:915)
    at org.apache.oozie.tools.OozieDBCLI.createDB(OozieDBCLI.java:185)
    at org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:129)
    at org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:80)
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at org.apache.oozie.tools.OozieDBCLI.createConnection(OozieDBCLI.java:904)
    at org.apache.oozie.tools.OozieDBCLI.validateConnection(OozieDBCLI.java:911)
    ... 3 more
--------------------------------------

处理:
对于在oozie里放置Mysql驱动包,需要在多处放置:

1.  $OOZIE_HOME/libext
2.  $OOZIE_HOME/lib下 
3.  $OOZIE_HOME/oozie-server/lib

将mysql驱动jar包放在这三处,应该就没问题了!

二、hadoop 配置文件路径的配置问题

       出错提示如下:

21-oozie-hado-W] ACTION[0000000-180815195606821-oozie-hado-W@mr-node] Error starting action [mr-node]. ErrorType [FAILED], ErrorCode [It should n
ever happen], Message [File /user/hadoop/share/lib does not exist]
org.apache.oozie.action.ActionExecutorException: File /user/hadoop/share/lib does not exist
    at org.apache.oozie.action.hadoop.JavaActionExecutor.addSystemShareLibForAction(JavaActionExecutor.java:760)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.addAllShareLibs(JavaActionExecutor.java:843)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.setLibFilesArchives(JavaActionExecutor.java:829)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:1147)
    at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1410)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:232)
    at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:63)
    at org.apache.oozie.command.XCommand.call(XCommand.java:286)
    at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:332)
    at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:261)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:179)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

解决办法:修改oozie-site.xml文件,添加如下配置:

<property>
        <name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
        <value>*=/opt/cloudera/hadoop/etc/hadoop</value>
</property>

相关文章

  • Oozie:出错集锦

    一、mysql 驱动jar包问题 出错提示如下: 处理:对于在oozie里放置Mysql驱动包,需要在多处放置: ...

  • Sqoop出错集锦

    一、import命令第一次执行出错 命令如下: 错误如下: 解决办法:将hostname :hadoop 改成lo...

  • Hue出错集锦

    一、打开http://localhost:8888登陆界面出现报错信息 原因是:/usr/share/hue/de...

  • Oozie,打开Oozie Web UI

    Oozie,打开Oozie Web UI报错: Oozie web console is disabled. To...

  • 大数据组件之oozie

    一、oozie介绍 官网首页介绍:http://oozie.apache.org[http://oozie.apa...

  • ERROR: Stop Oozie first

    执行 bin/oozie-setup.sh prepare-war报错 删除$OOZIE_HOME/oozie-s...

  • CDH OOZIE时间存在时区差

    登录CM>Oozie>配置>高级>找到“oozie-site.xml 的 Oozie Server 高级配置代码段...

  • 任务调度引擎oozie

    oozie的一些知识点: oozie的工作流:workflow,Coordinator,Bundle oozie的...

  • 项目运行出错集锦

    一、项目运行不了Failed to initiate service connection to simulato...

  • Oozie4.2安装笔记

    下载oozie4.2版本 oozie4.2版本的release note:https://oozie.apache...

网友评论

      本文标题:Oozie:出错集锦

      本文链接:https://www.haomeiwen.com/subject/elynbftx.html