Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad request (error 400) #3

Closed
guitmz opened this issue Jan 6, 2016 · 2 comments
Closed

Bad request (error 400) #3

guitmz opened this issue Jan 6, 2016 · 2 comments

Comments

@guitmz
Copy link

guitmz commented Jan 6, 2016

Hi there!

Great to see a connector for ElasticSearch (this should be something native from Tableau, of course but well..).

Sorry to bother but...

I'm having issues with the connector. I enter a valid cluster node URL, a valid index name and a valid type but I always get a Bad request response. Even using a custom query. The query works fine in the same URL via cURL. The error is the following, without custom query (big, so it's on pastebin): http://pastebin.com/fMDvCBx0
Is there anything I can do here to get more information on how to proceed?

My ES version: 1.6.0
Tableau Desktop is on latest.

Thanks

@mradamlacey
Copy link
Owner

Looks like here's the root cause of the issue (from the error you logs you provided):

 ScriptException[scripts of type [inline], operation [search] and lang [groovy] are disabled

The connector uses a server side script to format the date in the format that Tableau expects. This could be done client side I'm thinking with moment without too much difficulty.

Need to add a note about that in the README...

Can you try enabling scripts and see what the results are?

@guitmz
Copy link
Author

guitmz commented Jan 6, 2016

Awesome, it worked! I added the following to elasticsearch.yml (v1.6, on each cluster node):

script.inline: on
script.indexed: on
script.file: on
script.search: on

After a cluster restart I was able to connect in Tableau Desktop. You should add this to the README :)

Very impressive work sir, keep it up!

Thanks

@guitmz guitmz closed this as completed Jan 6, 2016
plinde added a commit to plinde/elasticsearch-tableau-connector that referenced this issue Jan 28, 2016
changed Dockerfile to point to plinde/elasticsearch-tableau-connector

changed tableauwdc.js to use local resource + Dockerfile

Closes mradamlacey#3 - add note in README about enabling scripting in Elasticsearch cluster

changed Dockerfile to pull from 'master' branch of plinde/elasticsearch-tableau-conncetor on github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants