Then you will want to consider the Client library from the first link.
You can look in the {GATEWAY_HOME}/samples directory for examples of it's
use.
The groovy scripts are a great way to do it or you can use the underlying
java classes that groovy uses.
The latter will require you to dig into the source a bit more to see how to
use them.You can also use Apache HttpClient and there are samples of that as well. On Sat, Jul 4, 2015 at 12:04 PM, Aneela Saleem <[email protected]> wrote: > Thanks Larry. > > Actually I need some client API like java so that I authenticate / > authorize my users programmatically through Knox. > > On Sat, Jul 4, 2015 at 8:50 PM, larry mccay <[email protected]> wrote: > >> Hi Aneela - >> >> I assume that you mean that you would like to add support for a Hadoop >> API that Knox currently lacks. >> My suggestion is that you find one that your organization or your >> personal interests require. >> >> There are lots of Jira's filed for bug fixes and other >> features/enhancements as well. >> >> Feel free to start a discussion regarding any contribution that you would >> like to make. >> >> As far as the links that you referenced: >> >> 1. The first is a client library for scripting interactions with Hadoop >> services through Knox - there are some really interesting and powerful >> capabilities there. >> 2. The second is actually pointing to a section the dev guide that needs >> to be completed. We have what we call Gateway Services in the kernel of the >> Knox server that provide implementations for core server interfaces - >> crypto, SSL, credential aliasing, etc. I don't think that you want to work >> in that space. If you want to work on adding new API support for services >> then you should refer to the Services section - >> https://knox.apache.org/books/knox-0-6-0/dev-guide.html#Services. >> >> Note that the link that I provided above is for the 0.6.0 dev guide. >> There is a new configuration driven way to add API support to Knox that was >> added in the 0.6.0 release. >> >> Thanks for your interest in contributing to Apache Knox! >> >> --larry >> >> >> On Sat, Jul 4, 2015 at 10:56 AM, Aneela Saleem <[email protected]> >> wrote: >> >>> Hi Everyone, >>> >>> I'm going to start development for Hadoop security through Apache Knox. >>> Can anyone please suggest me some good API for Knox. >>> >>> So far i have found following: >>> >>> https://cwiki.apache.org/confluence/display/KNOX/Client+Usage >>> >>> https://knox.apache.org/books/knox-0-5-0/dev-guide.html#Gateway+Services >>> >> >> >
