hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakesh Radhakrishnan <rake...@apache.org>
Subject Re: How to setup local environment to run kerberos test cases.
Date Thu, 29 Sep 2016 10:01:00 GMT
May be its due to file permission issues or something else. The test uses
MiniKdc, which is based on Apache Directory Server and is embedded in test
cases. Could you share the complete logs of the failed test, I think you
can look at the your machine/env location:

$HADOOP_HOME/hadoop-hdfs-project/hadoop-hdfs/target/surefire-reports/org.apache.hadoop.hdfs.server.namenode.TestSecureNameNode-output.txt

Thanks,
Rakesh

On Thu, Sep 29, 2016 at 1:13 PM, Yuanbo Liu <liuyuanbo92@gmail.com> wrote:

> Hi, Rakesh
> Thanks for your response. Those docs are helpful but not what I'm asking. I
> was running test cases in my local machine, some test cases threw
> exception.
> For example:
>     mvn clean package -Dtest=TestSecureNameNode
> it threw:
>
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 50.024 sec
> <<< FAILURE! - in org.apache.hadoop.hdfs.server.
> namenode.TestSecureNameNode
> testName(org.apache.hadoop.hdfs.server.namenode.TestSecureNameNode)  Time
> elapsed: 48.552 sec  <<< ERROR!
> java.io.IOException: Failed on local exception: java.io.IOException:
> Couldn't setup connection for hdfs/localhost@EXAMPLE.COM to
> localhost.localdomain/127.0.0.1:43815; Host Details : local host is:
> "localhost.localdomain/127.0.0.1"; destination host is:
> "localhost.localdomain":43815;
> at sun.security.krb5.KdcComm.send(KdcComm.java:242)
> at sun.security.krb5.KdcComm.send(KdcComm.java:200)
> at sun.security.krb5.KrbTgsReq.send(KrbTgsReq.java:254)
> at sun.security.krb5.KrbTgsReq.sendAndGetCreds(KrbTgsReq.java:269)
> at
> sun.security.krb5.internal.CredentialsUtil.serviceCreds(
> CredentialsUtil.java:302)
> at
> sun.security.krb5.internal.CredentialsUtil.acquireServiceCreds(
> CredentialsUtil.java:120)
> at sun.security.krb5.Credentials.acquireServiceCreds(Credentials.java:458)
> at sun.security.jgss.krb5.Krb5Context.initSecContext(Krb5Context.java:693)
> at sun.security.jgss.GSSContextImpl.initSecContext(
> GSSContextImpl.java:248)
>
> This test case is related to Kerberos. I guess I need to setup something
> before I run it, but I don't know how to do it. Any thoughts?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message