如何像其他Linux用户一样提交hadoop作业

如何像其他Linux用户一样提交hadoop作业,第1张

概述用户“hadoop”是集群上的runnnig jobtracker和tasktracker,但是如果其他 Linux用户想要提交他们的工作呢? 我已经按照这个文档,http://hadoop.apache.org/docs/r1.0.4/service_level_auth.html#Hadoop+Services+and+Configuration+Properties 将以下内容添加到“cor 用户“hadoop”是集群上的runnnig jobtracker和tasktracker,但是如果其他 Linux用户想要提交他们的工作呢?

我已经按照这个文档,http://hadoop.apache.org/docs/r1.0.4/service_level_auth.html#Hadoop+Services+and+Configuration+Properties
将以下内容添加到“core-site.xml”中:

<property>            <name>hadoop.security.authorization</name>            <value>true</value>    </property>

对于conf文件“hadoop-policy.xml”,我将“hadoopGroup”添加到“security.job.submission.protocol.acl”,我的帐户“qingya.shu”属于该组.
但当我运行hadoop作为qingya.shu时,遇到如下错误:

12/11/09 12:57:29 INFO util.NativeCodeLoader: Loaded the native-hadoop library12/11/09 12:57:29 INFO input.fileinputFormat: Total input paths to process : 112/11/09 12:57:29 WARN snappy.LoadSnappy: Snappy native library not loaded12/11/09 12:57:29 INFO mapred.JobClIEnt: Cleaning up the staging area file:/lustre/hadoop/user/qingya.shu/.staging/job_201211082024_000812/11/09 12:57:29 ERROR security.UserGroupinformation: PriviledgedActionException as:qingya.shu cause:org.apache.hadoop.ipc.remoteexception: java.io.IOException: java.io.fileNotFoundException: file file:/lustre/hadoop/user/qingya.shu/.staging/job_201211082024_0008/job.xml does not exist.    at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3943)    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:601)    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1388)    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1384)    at java.security.AccessController.doPrivileged(Native Method)    at javax.security.auth.Subject.doAs(Subject.java:415)    at org.apache.hadoop.security.UserGroupinformation.doAs(UserGroupinformation.java:1121)    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)Caused by: java.io.fileNotFoundException: file file:/lustre/hadoop/user/qingya.shu/.staging/job_201211082024_0008/job.xml does not exist.    at org.apache.hadoop.fs.RawLocalfileSystem.getfileStatus(RawLocalfileSystem.java:397)    at org.apache.hadoop.fs.FilterfileSystem.getfileStatus(FilterfileSystem.java:251)    at org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:406)    at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3941)    ... 11 moreorg.apache.hadoop.ipc.remoteexception: java.io.IOException: java.io.fileNotFoundException: file file:/lustre/hadoop/user/qingya.shu/.staging/job_201211082024_0008/job.xml does not exist.    at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3943)    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:601)    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563)    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1388)    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1384)    at java.security.AccessController.doPrivileged(Native Method)    at javax.security.auth.Subject.doAs(Subject.java:415)    at org.apache.hadoop.security.UserGroupinformation.doAs(UserGroupinformation.java:1121)    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)Caused by: java.io.fileNotFoundException: file file:/lustre/hadoop/user/qingya.shu/.staging/job_201211082024_0008/job.xml does not exist.    at org.apache.hadoop.fs.RawLocalfileSystem.getfileStatus(RawLocalfileSystem.java:397)    at org.apache.hadoop.fs.FilterfileSystem.getfileStatus(FilterfileSystem.java:251)    at org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:406)    at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3941)    ... 11 more    at org.apache.hadoop.ipc.ClIEnt.call(ClIEnt.java:1070)    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)    at org.apache.hadoop.mapred.$Proxy1.submitJob(UnkNown Source)    at org.apache.hadoop.mapred.JobClIEnt.run(JobClIEnt.java:921)    at org.apache.hadoop.mapred.JobClIEnt.run(JobClIEnt.java:850)    at java.security.AccessController.doPrivileged(Native Method)    at javax.security.auth.Subject.doAs(Subject.java:415)    at org.apache.hadoop.security.UserGroupinformation.doAs(UserGroupinformation.java:1121)    at org.apache.hadoop.mapred.JobClIEnt.submitJobInternal(JobClIEnt.java:850)    at org.apache.hadoop.mapreduce.Job.submit(Job.java:500)    at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)    at org.apache.hadoop.examples.WordCount.main(WordCount.java:67)    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:601)    at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)    at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64)    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:601)    at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

请注意,lustre用作分布式文件系统而不是HDFS.

谁能帮我?

解决方法 试试这个:
<property>    <name>hadoop.security.authorization</name>    <value>simple</value>  </property>
总结

以上是内存溢出为你收集整理的如何像其他Linux用户一样提交hadoop作业全部内容,希望文章能够帮你解决如何像其他Linux用户一样提交hadoop作业所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1047680.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存