[
https://issues.apache.org/jira/browse/HDFS-5935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13898618#comment-13898618
]
Travis Thompson commented on HDFS-5935:
---------------------------------------
It's actually returning a 403, not a 404. I'll have to test with webhdfs off
to see what it throws, but I suspect it's not a 403. Here's the curl output of
that url:
{noformat}
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
> OpenSSL/0.9.8y zlib/1.2.5
> Host: eat1-fiasconn01.grid.linkedin.com:50070
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Cache-Control: no-cache
< Expires: Thu, 01-Jan-1970 00:00:00 GMT
< Date: Wed, 12 Feb 2014 01:18:25 GMT
< Pragma: no-cache
< Date: Wed, 12 Feb 2014 01:18:25 GMT
< Pragma: no-cache
< Content-Type: application/json
< WWW-Authenticate: Negotiate
YGoGCSqGSIb3EgECAgIAb1swWaADAgEFoQMCAQ+iTTBLoAMCARKiRARCRpa0/L2wNWawS8JZNkCuV/5IpHw3A87DxqA/m2N7yk5Q6cj5N0FwEtFLrL1AGoV5dP0bqoXK53HF3W2YoGxGQJ5b
< Set-Cookie:
hadoop.auth="u=tthompso&[email protected]&t=kerberos&e=1392203905735&s=6aXfyTZu5ebuUgZ/OqTZTJWPlwA=";Path=/
< Transfer-Encoding: chunked
< Server: Jetty(6.1.26)
<
* Connection #0 to host (nil) left intact
{"RemoteException":{"exception":"AccessControlException","javaClassName":"org.apache.hadoop.security.AccessControlException","message":"Permission
denied: user=tthompso, access=READ_EXECUTE,
inode=\"/system\":hdfs:yarn:drwxr-x--x"}}* Closing connection #0
{noformat}
I've found where this going on in the source code and I can take a look at it
in the next few days. It doesn't look like it'll be too hard to add smarter
error handling.
> New Namenode UI FS browser should throw smarter error messages
> --------------------------------------------------------------
>
> Key: HDFS-5935
> URL: https://issues.apache.org/jira/browse/HDFS-5935
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 2.3.0
> Reporter: Travis Thompson
> Priority: Minor
>
> When browsing using the new FS browser in the namenode, if I try to browse a
> folder that I don't have permission to view, it throws the error:
> {noformat}
> Failed to retreive data from /webhdfs/v1/system?op=LISTSTATUS, cause:
> Forbidden
> WebHDFS might be disabled. WebHDFS is required to browse the filesystem.
> {noformat}
> The reason I'm not allowed to see /system is because I don't have permission,
> not because WebHDFS is disabled.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)