我在使用oozie运行hive2动作时遇到问题 . 我需要添加自己的 jar 的路径,为此我已经使用过了 .

oozie.use.system.libpath=true

oozie.libpath=path of my jar file.

但是现在我的hive2动作失败了以下日志 .

SLF4J:类路径包含多个SLF4J绑定 . SLF4J:在[jar:file:/opt/cloudera/parcels/CDH-5.13.1-1.cdh5.13.1.p0.2/jars/slf4j-log4j12-1.7.5.jar!/ org / slf4j /中找到绑定impl / StaticLoggerBinder.class] SLF4J:在[jar:file:/home2/yarn/nm/filecache/14568728/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J中找到绑定:有关说明,请参见http://www.slf4j.org/codes.html#multiple_bindings . SLF4J:实际绑定的类型为[org.slf4j.impl.Log4jLoggerFactory]连接到jdbc:hive2://node5.roamware.com:10000 / singleUser Apr 30,20188 11:55:13 AM com.facebook.presto.jdbc .internal.jetty.util.log.JavaUtilLog info INFO:Logging initialized @ 3901ms连接到:Apache Hive(版本1.1.0-cdh5.13.1)驱动程序:Hive JDBC(版本1.1.0-cdh5.13.1)事务隔离:TRANSACTION_REPEATABLE_READ org.apache.hive.service.cli.thrift.TExecuteStatementReq.setQueryTimeout(J)V Closing:0:jdbc:hive2://node5.roamware.com:10000 / singleUser拦截System.exit(2)Oozie Launcher失败,Main class [org.apache.oozie.action.hadoop.Hive2Main],退出代码[2]

我也试过制作

oozie.use.system.libpath = FALSE

oozie.libpath =我的jar文件的路径

在job.properties文件中,并在workflow.xml中为hive2操作添加了以下配置,但我的配置单元操作仍然失败 .

<configuration>
                <property>
                    <name>oozie.use.system.libpath</name>
                    <value>true</value>
                </property>
                 <property>
                    <name>oozie.libpath</name>
                    <value>${nameNode}/user/oozie/share/lib/lib_20180221193512/hive2</value>
                </property>

</configuration>