title: how to reload externally renewed kerberos ticket cache into jvm
body: <p>I am suffering from this issue a lot. Any help will be of great importance.</p>
  <p>I am using <a href="https://github.com/danielwegener/logback-kafka-appender" rel="nofollow noreferrer">kafka appender</a> library to push logs to logstash.<br />
  I am using kerberos authentication method to connect to kafka broker.
  At the start of my app, everything works fine and I am able to connect to kafka brokers.
  Below are few producer configs I am providing.</p>
  <pre><code> &lt;producerConfig&gt;sasl.jaas.config=com.sun.security.auth.module.krb5LoginModule
  required
  ticketCache=&quot;path-to-my-ticket-cache&quot;
  useTicketCache=&quot;true&quot;
  refreshKrb5Config=&quot;true&quot;
  doNotPrompt=&quot;true&quot;
  principal=&quot;myprincipal@realm&quot;;
  &lt;/producerConfig&gt;
  </code></pre>
  <ul>
  <li>When I hit this command - <code>klist -c path-to-my-ticket-cache</code> , I see it's getting renewed after every 2 hours but the same renewed time is not reflecting in my java app. The app still shows the initial expiry time loaded at startup and it destroys the ticket after expiry and authentication starts failing.</li>
  </ul>
  <p>Few Things I tried,</p>
  <ul>
  <li>Added <strong>renewTgt</strong> property to producer config, it tried to renew but failed with error- cannot find /tmp/krb5cc123 cache to renew the ticket.</li>
  </ul>
  <p>How we can force the app to read the ticket from the main cache which is getting renewed but JVM seems not aware of it?</p>