[ https://issues.apache.org/jira/browse/HDFS-5532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886456#comment-13886456 ]
Steve Loughran commented on HDFS-5532: -------------------------------------- This stopped my secure cluster from working as I hadn't defined {{dfs.web.authentication.kerberos.principal}}, enabling webhdfs requires this conf option to be set, so instead of getting a namenode, I got a stack trace {code} 2014-01-29 15:42:58,630 ERROR org.apache.hadoop.http.HttpServer2: WebHDFS and security are enabled, but configuration proper ty 'dfs.web.authentication.kerberos.principal' is not set. 2014-01-29 15:42:58,630 INFO org.apache.hadoop.http.HttpServer2: Added filter 'SPNEGO' (class=org.apache.hadoop.hdfs.web.Aut hFilter) 2014-01-29 15:42:58,631 INFO org.apache.hadoop.http.HttpServer2: addJerseyResourcePackage: packageName=org.apache.hadoop.hdf s.server.namenode.web.resources;org.apache.hadoop.hdfs.web.resources, pathSpec=/webhdfs/v1/* 2014-01-29 15:42:58,658 INFO org.apache.hadoop.http.HttpServer2: Adding Kerberos (SPNEGO) filter to getDelegationToken 2014-01-29 15:42:58,662 INFO org.apache.hadoop.http.HttpServer2: Adding Kerberos (SPNEGO) filter to renewDelegationToken 2014-01-29 15:42:58,663 INFO org.apache.hadoop.http.HttpServer2: Adding Kerberos (SPNEGO) filter to cancelDelegationToken 2014-01-29 15:42:58,663 INFO org.apache.hadoop.http.HttpServer2: Adding Kerberos (SPNEGO) filter to fsck 2014-01-29 15:42:58,671 INFO org.apache.hadoop.http.HttpServer2: Adding Kerberos (SPNEGO) filter to getimage 2014-01-29 15:42:58,748 INFO org.apache.hadoop.http.HttpServer2: Jetty bound to port 50070 2014-01-29 15:42:58,748 INFO org.mortbay.log: jetty-6.1.26 2014-01-29 15:42:58,941 INFO org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler: Login using key tab /home/stevel/conf/hdfs.keytab, for principal HTTP/ubuntu@COTHAM 2014-01-29 15:42:58,981 INFO org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler: Initialized, pr incipal [HTTP/ubuntu@COTHAM] from keytab [/home/stevel/conf/hdfs.keytab] 2014-01-29 15:42:58,981 WARN org.apache.hadoop.security.authentication.server.AuthenticationFilter: 'signature.secret' confi guration not set, using a random value as secret 2014-01-29 15:42:58,982 WARN org.mortbay.log: failed SPNEGO: javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration 2014-01-29 15:42:58,982 WARN org.mortbay.log: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@167a465{/,fil e:/home/stevel/hadoop/share/hadoop/hdfs/webapps/hdfs} javax.servlet.ServletException: javax.servlet.ServletException: Principal not defined in configuration at org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler.init(KerberosAuthenticationHandler .java:203) {code} > Enable the webhdfs by default to support new HDFS web UI > -------------------------------------------------------- > > Key: HDFS-5532 > URL: https://issues.apache.org/jira/browse/HDFS-5532 > Project: Hadoop HDFS > Issue Type: Improvement > Components: webhdfs > Affects Versions: 3.0.0 > Reporter: Vinay > Assignee: Vinay > Fix For: 2.3.0 > > Attachments: HDFS-5532.patch, HDFS-5532.patch > > > Recently in HDFS-5444, new HDFS web UI is made as default. > but this needs webhdfs to be enabled. > WebHDFS is disabled by default. Lets enable it by default to support new > really cool web UI. -- This message was sent by Atlassian JIRA (v6.1.5#6160)