# Directions for installing gssapi to use logstash webhdfs plugin with kerberos

**URL:** <https://discuss.elastic.co/t/directions-for-installing-gssapi-to-use-logstash-webhdfs-plugin-with-kerberos/185049>\
**Category:** Logstash\
**Created:** [June 10, 2019, 8:28pm UTC](https://discuss.elastic.co/t/directions-for-installing-gssapi-to-use-logstash-webhdfs-plugin-with-kerberos/185049 "2019-06-10T20:28:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![preddy75](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@preddy75](https://discuss.elastic.co/u/preddy75)\
**Post date:** [June 13, 2019, 4:10pm UTC](https://discuss.elastic.co/t/directions-for-installing-gssapi-to-use-logstash-webhdfs-plugin-with-kerberos/185049/2 "2019-06-13T16:10:05Z")

</div>

Here is an update -\> I have the following modifications (yes its still messy, but you will get the idea) to get me to the point where I get another known error:

Dockerfile:

FROM [docker.elastic.co/logstash/logstash:6.4.2](http://docker.elastic.co/logstash/logstash:6.4.2)

ARG GIT\_SHA  
ENV GIT\_SHA=${GIT\_SHA}

USER 0

WORKDIR /usr/share/logstash  
ENV PATH=/usr/share/logstash/bin:$PATH

# Ensure Logstash has a UTF-8 locale available.

# RUN locale-gen en\_US.UTF-8

# ENV LANG='en\_US.UTF-8' LC\_ALL='en\_US.UTF-8'

ENV LANG=en\_US.UTF-8   
LANGUAGE=en\_US.UTF-8   
LC\_CTYPE=en\_US.UTF-8   
LC\_ALL=en\_US.UTF-8

COPY gssapi-1.3.0.gem gssapi-1.3.0.gem

COPY ffi-1.11.1.gem ffi-1.11.1.gem

RUN cat /etc/resolv.conf &&   
yum clean all &&  
yum update -y && yum install sudo gcc make -y &&   
yum clean all &&  
curl [https://curl.haxx.se/download/curl-7.61.0.tar.gz](https://curl.haxx.se/download/curl-7.61.0.tar.gz) -o curl-7.61.0.tar.gz &&   
tar xvzf curl-7.61.0.tar.gz && cd curl-7.61.0 &&   
export GEM\_HOME=/usr/share/logstash/vendor/bundle/jruby/2.3.0 &&   
/usr/share/logstash/vendor/jruby/bin/jruby /usr/share/logstash/vendor/jruby/bin/gem install -V /usr/share/logstash/ffi-1.11.1.gem &&   
/usr/share/logstash/vendor/jruby/bin/jruby /usr/share/logstash/vendor/jruby/bin/gem install -V /usr/share/logstash/gssapi-1.3.0.gem

RUN cat Gemfile \> Gemfile2

RUN printf 'gem "ffi"\ngem "gssapi"' \>\> Gemfile2

RUN cp Gemfile2 Gemfile

# ./configure --with-darwinssl && make && \

# echo "Running make install! " && make install

RUN echo "logstash ALL=(ALL) NOPASSWD:ALL" \>\> /etc/sudoers

USER logstash

* * *

And now when I run the webhdfs plugin I get the same error as this [post](https://discuss.elastic.co/t/logstash-webhdfs-example-with-kerberos-enabled-hadoop-cluster/51941) (that has an _interesting_ solution that I am trying now. If this does not work I have to punt, and would advise logstash staff to include this thread in their docs (in some different format), because this is not working with defined gssapi directions.

---

_[View the full topic](https://discuss.elastic.co/t/directions-for-installing-gssapi-to-use-logstash-webhdfs-plugin-with-kerberos/185049)._
