hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-3062) Fail to submit mapred job on a secured-HA-HDFS: logic URI cannot be picked up by job submission.
Date Thu, 15 Mar 2012 22:52:38 GMT

    [ https://issues.apache.org/jira/browse/HDFS-3062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230672#comment-13230672
] 

Hadoop QA commented on HDFS-3062:
---------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12517984/HDFS-3062-trunk-2.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit
warnings.

    -1 core tests.  The patch failed these unit tests:
                  org.apache.hadoop.cli.TestHDFSCLI

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/2020//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2020//console

This message is automatically generated.
                
> Fail to submit mapred job on a secured-HA-HDFS: logic URI cannot be picked up by job
submission.
> ------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-3062
>                 URL: https://issues.apache.org/jira/browse/HDFS-3062
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: ha, security
>    Affects Versions: 0.24.0
>            Reporter: Mingjie Lai
>            Assignee: Mingjie Lai
>            Priority: Critical
>         Attachments: HDFS-3062-trunk-2.patch, HDFS-3062-trunk.patch
>
>
> When testing the combination of NN HA + security + yarn, I found that the mapred job
submission cannot pick up the logic URI of a nameservice. 
> I have logic URI configured in core-site.xml
> {code}
> <property>
>  <name>fs.defaultFS</name>
>  <value>hdfs://ns1</value>
> </property>
> {code}
> HDFS client can work with the HA deployment/configs:
> {code}
> [root@nn1 hadoop]# hdfs dfs -ls /
> Found 6 items
> drwxr-xr-x   - hbase  hadoop          0 2012-03-07 20:42 /hbase
> drwxrwxrwx   - yarn   hadoop          0 2012-03-07 20:42 /logs
> drwxr-xr-x   - mapred hadoop          0 2012-03-07 20:42 /mapred
> drwxr-xr-x   - mapred hadoop          0 2012-03-07 20:42 /mr-history
> drwxrwxrwt   - hdfs   hadoop          0 2012-03-07 21:57 /tmp
> drwxr-xr-x   - hdfs   hadoop          0 2012-03-07 20:42 /user
> {code}
> but cannot submit a mapred job with security turned on
> {code}
> [root@nn1 hadoop]# /usr/lib/hadoop/bin/yarn --config ./conf jar share/hadoop/mapreduce/hadoop-mapreduce-examples-0.24.0-SNAPSHOT.jar
randomwriter out
> Running 0 maps.
> Job started: Wed Mar 07 23:28:23 UTC 2012
> java.lang.IllegalArgumentException: java.net.UnknownHostException: ns1
> 	at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:431)
> 	at org.apache.hadoop.security.SecurityUtil.buildDTServiceName(SecurityUtil.java:312)
> 	at org.apache.hadoop.fs.FileSystem.getCanonicalServiceName(FileSystem.java:217)
> 	at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:119)
> 	at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:97)
> 	at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodes(TokenCache.java:80)
> 	at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:137)
> 	at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:411)
> 	at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:326)
> 	at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1221)
> 	at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1218)
> ....
> {code}0.24

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message