Dilli,
Can you add the detail about using ldapsearch as a potential diagnostic tool.
Kevin.

On 11/20/13 5:47 PM, Dilli Arumugam (JIRA) wrote:
     [ 
https://issues.apache.org/jira/browse/KNOX-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828233#comment-13828233
 ]

Dilli Arumugam commented on KNOX-201:
-------------------------------------

Noting test observations with ldap server down:

Using groovy DSL:

java -jar bin/shell.jar samples/ExampleWebHdfsLs.groovy
Caught: org.apache.hadoop.gateway.shell.HadoopException: 
org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 401 Unauthorized
org.apache.hadoop.gateway.shell.HadoopException: 
org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 401 Unauthorized
        at 
org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:72)
        at org.apache.hadoop.gateway.shell.AbstractRequest$now.call(Unknown 
Source)
        at ExampleWebHdfsLs.run(ExampleWebHdfsLs.groovy:28)
        at org.apache.hadoop.gateway.shell.Shell.main(Shell.java:40)
        at 
org.apache.hadoop.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:64)
        at org.apache.hadoop.gateway.launcher.Invoker.invoke(Invoker.java:37)
        at org.apache.hadoop.gateway.launcher.Command.run(Command.java:101)
        at org.apache.hadoop.gateway.launcher.Launcher.run(Launcher.java:70)
        at org.apache.hadoop.gateway.launcher.Launcher.main(Launcher.java:49)
Caused by: org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 401 
Unauthorized
        at org.apache.hadoop.gateway.shell.Hadoop.executeNow(Hadoop.java:107)
        at 
org.apache.hadoop.gateway.shell.AbstractRequest.execute(AbstractRequest.java:47)
        at 
org.apache.hadoop.gateway.shell.hdfs.Ls$Request.access$200(Ls.java:31)
        at org.apache.hadoop.gateway.shell.hdfs.Ls$Request$1.call(Ls.java:51)
        at org.apache.hadoop.gateway.shell.hdfs.Ls$Request$1.call(Ls.java:45)
        at 
org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:70)

Using Curl:
curl -i -k -u guest:guest-password  -X GET 
https://localhost:8443/gateway/sandbox/webhdfs/v1?op=GETHOMEDIRECTORY
HTTP/1.1 401 Unauthorized
WWW-Authenticate: BASIC realm="application"
Content-Length: 0
Server: Jetty(8.1.12.v20130726)



add troubleshooting notes on checking ldap connectivity
-------------------------------------------------------

                 Key: KNOX-201
                 URL: https://issues.apache.org/jira/browse/KNOX-201
             Project: Apache Knox
          Issue Type: Task
          Components: Server
    Affects Versions: 0.3.0
            Reporter: Dilli Arumugam
            Assignee: Dilli Arumugam
             Fix For: 0.3.1


We should add troubleshooting notes on checking ldap connectivity.
Otherwise,  user could be left in dark if the authentication to Knox fails.


--
This message was sent by Atlassian JIRA
(v6.1#6144)


--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.

Reply via email to