You could check what it does, and do that instead of relying in the script.
It runs the kafka.admin.AclCommand class with some properties, and sets
some jvm settings.

On Thu, Mar 31, 2016 at 4:36 PM Kalpesh Jadhav <
kalpesh.jad...@citiustech.com> wrote:

> Hi,
>
> Is there any java api available to give access to kafka topic??
>
> As we does through kafka-acls.sh.
> Just wanted to run below command through java api.
>
> kafka-acls.sh --add --allow-principals user:ctadmin --operation ALL
> --topic marchTesting --authorizer-properties
> zookeeper.connect={hostname}:2181
>
> ------------------------------------------------
> Kalpesh Jadhav
> Sr. Software Engineer | Development
> CitiusTech Inc.
> www.citiustech.com<http://www.citiustech.com>
>
>
>
>
>
>
>
>

Reply via email to