Fork me on GitHub
#clojure-uk
<
2017-07-14
>
thomas07:07:40

morning 😼 mogge

Rachel Westmacott08:07:42

bit late, but there’s also the clojure.java.data ns @mccraigmccraig

yogidevbear09:07:42

Hello European Union 😉

maleghast10:07:24

Hi, I am sorry to bother you (again), but did you ever use spandex with authentication..? I drove out until I found a 4G signal today, grabbed the elasticsearch and kibana docker images and now I have them running but I can’t insert documents, getting this error:

{:error
 {:root_cause
  [{:type "security_exception",
    :reason
    "missing authentication token for REST request [/agriculture/rr-article/2e08148226c3a17b26d5555bbc10635a5fcbe1b0]",
    :header
    {:WWW-Authenticate "Basic realm=\"security\" charset=\"UTF-8\""}}],
  :type "security_exception",
  :reason
  "missing authentication token for REST request [/agriculture/rr-article/2e08148226c3a17b26d5555bbc10635a5fcbe1b0]",
  :header
  {:WWW-Authenticate "Basic realm=\"security\" charset=\"UTF-8\""}},
 :status 401}

mccraigmccraig10:07:11

no, sry @maleghast - i've only ever used ES behind a firewall with no auth

maleghast10:07:50

I am configuring my client (spandex) with basic-auth, but the error seems to suggest that I need to do an auth transaction first and then send request with a token

maleghast10:07:02

@mccraigmccraig - Ah no worries then - thanks anyway 🙂

maleghast11:07:43

Turns out that is easy 🙂

-e "xpack.security.enabled=false"

thomas11:07:56

security is overrated anyway 😉

maleghast11:07:03

@thomas - Aye, that it is! 😉

maleghast11:07:15

Now if only I could get Kibana working as well…

maleghast11:07:23

My code is doing what it should, which is lovely, throwing data into ES with Gay abandon, but I intend to let my intern have Kibana as a “window” onto the data and I don’t seem to be able to get it working at the moment…

maleghast12:07:41

I could chance my arm and just deploy everything and hope that AWS Elasticsearch-as-a-service will solve this problem for me, but I was kinda hoping that I could see it working locally first…

maleghast12:07:23

Erm… I asked in #docker but it seems to be rather quiet__ in there… I was wondering if anyone knows if there is a way to run “docker-compose up” and make Docker use the local images that I already have locally

maleghast12:07:41

(I have Googled to no avail…)

jonpither13:07:10

Hey. Happy friday

maleghast13:07:31

Happy Friday to you too, Sir 🙂

maleghast13:07:47

There is a “Happy Friday” Highland Cow up there ^^ if you scroll back 😉

dominicm15:07:41

Burned Friday 🔴