0

I have installed knox server and done all the steps mentioned on hortonworks site. When i ran the below command on the sandbox , it gives me the proper output.

curl http://sandbox:50070/webhdfs/v1?op=GETHOMEDIRECTORY

Now i have another VM running fedora . I am assuming it as external client and trying to do external access but getting no output:-

 curl -k https://<sandbox-ip>:8443/gateway/sandbox/webhdfs/v1?op=GETHOMEDIRECTORY

Can someone point me whats wrong with my settings.

anwaar_hell
  • 756
  • 5
  • 23

1 Answers1

1

Not sure about your topology but if you are using the default one (sandbox) you probably need to add basic auth e.g.

curl -k -u guest:guest-password -X GET https://<sandbox-  ip>:8443/gateway/sandbox/webhdfs/v1?op=GETHOMEDIRECTORY

Also check the logs at

<knox_install>/logs/gateway.log

They should tell you more about what went wrong.

Good luck !

Sandeep More
  • 655
  • 1
  • 6
  • 22
  • ..it helped..but have one question..once knox is running why the dafault login is still working..!connect jdbc:hive2://sandbox:10001/default;transportMode=http;httpPath=cliservice...ideally it should not..all traffic should go over knox...or i need to enable something at hive server2.. – anwaar_hell Oct 11 '16 at 06:29
  • Glad it worked ! the reason your default login (I am assuming you mean direct connection) works is because you need to lock it down by preventing connections other than Knox. – Sandeep More Oct 11 '16 at 13:41
  • ..yes i mean direct connection via port 10001 ..without user and password ...by locking what you mean...and what methods... – anwaar_hell Oct 11 '16 at 14:52
  • Make sure you enabled demo LDAP server for knox – Nithin Dec 16 '16 at 12:09