Oozie之Not able to cache shareLib

查看数: 24663 | 评论数: 10 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2014-8-22 10:00

正文摘要:

本帖最后由 pig2 于 2014-8-22 10:14 编辑 Oozie运行任务,报下图的错误,求教 not able to cache sharelib. admin need to issue oozlie cli command to update sharelib

回复

nettman 发表于 2014-8-22 15:40:37
jttsai 发表于 2014-8-22 15:15
这个用户怎么授权啊,我在linux下创建了一个oozie用户的,然后用oozie用户启动oozie服务,并提交作业。现 ...

oozie admin <OPTIONS> : admin operations
                  -auth <arg>         select authentication type [SIMPLE|KERBEROS]
                  -doas <arg>         doAs user, impersonates as the specified user.
                  -oozie <arg>        Oozie URL

jttsai 发表于 2014-8-22 15:15:46
nettman 发表于 2014-8-22 15:07
还是没用对,用户没有被授权。

这个用户怎么授权啊,我在linux下创建了一个oozie用户的,然后用oozie用户启动oozie服务,并提交作业。现在我也kill不了作业了!到底应该怎么改权限,改哪里的权限?
nettman 发表于 2014-8-22 15:07:41
jttsai 发表于 2014-8-22 14:51
也是不行啊,日志报这样的错误:2014-08-22 14:44:25,793  WARN V2JobServlet:542 - SERVER[master1.hado ...
还是没用对,用户没有被授权。
jttsai 发表于 2014-8-22 14:51:20
sstutu 发表于 2014-8-22 11:25
用户权限不正确,你换管理员用户试试

也是不行啊,日志报这样的错误:2014-08-22 14:44:25,793  WARN V2JobServlet:542 - SERVER[master1.hadoop] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[-] ACTION[-] URL[PUT http://master1.hadoop:11000/oozi ... -oozi-W?action=kill] error[E0508], E0508: User [?] not authorized for WF job [0000000-140822143453855-oozie-oozi-W]
org.apache.oozie.servlet.XServletException: E0508: User [?] not authorized for WF job [0000000-140822143453855-oozie-oozi-W]
        at org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:73)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
        at org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:287)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:126)
        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:384)
        at org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:131)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:84)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:724)
Caused by: org.apache.oozie.service.AuthorizationException: E0508: User [?] not authorized for WF job [0000000-140822143453855-oozie-oozi-W]
        at org.apache.oozie.service.AuthorizationService.authorizeForJob(AuthorizationService.java:449)
        at org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:70)
        ... 23 more

sstutu 发表于 2014-8-22 11:25:10
jttsai 发表于 2014-8-22 10:59
恩,如下所示:
oozie@master1:~/oozie5/bin> oozie admin -oozie http://master1.hadoop:11000/oozie/ -s ...
用户权限不正确,你换管理员用户试试
jttsai 发表于 2014-8-22 11:06:15
pig2 发表于 2014-8-22 10:25
找到运行Hue的节点,先停掉Hue,然后运行下面命令:

hue节点?哪里来的hue节点?这个不知道嘛,求再知道?
jttsai 发表于 2014-8-22 11:00:57
sstutu 发表于 2014-8-22 10:34
这个命令看看,会出什么现象
oozie admin -oozie http://localhost:11000/oozie -shareliblist pig

您方便给个QQ么,想请教您,我的qq号:2487324459
jttsai 发表于 2014-8-22 10:59:41
恩,如下所示:
oozie@master1:~/oozie5/bin> oozie admin -oozie http://master1.hadoop:11000/oozie/ -shareliblist pig
[Available ShareLib]
pig
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/ant-1.6.5.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/antlr-2.7.7.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/antlr-runtime-3.4.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/automaton-1.11-8.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/commons-collections-3.2.1.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/commons-el-1.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/commons-httpclient-3.1.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/commons-io-2.1.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/core-3.1.1.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/findbugs-annotations-1.3.9-1.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/guava-11.0.2.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/hbase-client-0.96.1.1-cdh5.0.0-tests.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/hbase-client-0.96.1.1-cdh5.0.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/hbase-common-0.96.1.1-cdh5.0.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/hbase-protocol-0.96.1.1-cdh5.0.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/hsqldb-1.8.0.10.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/htrace-core-2.01.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jansi-1.9.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jasper-compiler-5.5.23.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jasper-runtime-5.5.23.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jets3t-0.6.1.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jetty-6.1.14.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jetty-util-6.1.26.cloudera.2.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jline-0.9.94.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/joda-time-1.6.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jsch-0.1.42.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jsp-2.1-6.1.14.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jsp-api-2.1-6.1.14.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jsr305-1.3.9.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/jython-standalone-2.5.3.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/kfs-0.3.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/netty-3.6.6.Final.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/oozie-sharelib-pig-4.0.0-cdh5.0.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/oro-2.0.8.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/parquet-pig-bundle-1.2.5-cdh5.0.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/pig-0.12.0-cdh5.0.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/protobuf-java-2.5.0.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/servlet-api-2.5-6.1.14.jar
        hdfs://bch/user/oozie/share/lib/lib_20140813161742/pig/stringtemplate-3.2.1.jar

而我执行下面的操作,又报下面的错误:
oozie@master1:~/oozie5/bin> oozie admin -oozie http://master1.hadoop:11000/oozie/ -sharelibupdate
Error: E0503 : E0503: User [?] does not have admin privileges
sstutu 发表于 2014-8-22 10:34:58
这个命令看看,会出什么现象
oozie admin -oozie http://localhost:11000/oozie -shareliblist pig
关闭

推荐上一条 /2 下一条