Coder Social home page Coder Social logo

Comments (8)

danielcweeks avatar danielcweeks commented on July 22, 2024

Clusters are actually built up from available data within ElasticSearch (not what is in the config). If you run the index_cluster_stats.py just once, then it should show up in the dropdown.

from inviso.

alex-dot avatar alex-dot commented on July 22, 2024

Well I did ran it everytime I changed something (just to be throrough), so I probably miss something else. There is nothing interesting in the elasticsearch and tomcat logs. I have no experience with elastic search so I have no real idea where I can debug this problem.

from inviso.

danielcweeks avatar danielcweeks commented on July 22, 2024

This is the elasticsearch query used to get the cluster names that populate the list:
https://github.com/Netflix/inviso/blob/master/web-ui/public/js/cluster.js#L72

You can use to following curl command to see if there is any data:

curl -XGET 'http://<elasticsearch_host>:<port>/inviso-cluster/metrics/_search?q=*'

from inviso.

alex-dot avatar alex-dot commented on July 22, 2024

Thanks for your suggestion. That resulted in a fair looking output. I thought maybe the problem lies with tomcat so I delved into the logs, changed the user and group of the tomcat process. Since I've installed through my package system, I also fell for this bug:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1232258

Now diving into the log, this is what I am seeing and I think it points to the right direction:

May 03, 2015 5:19:20 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/inviso#mr2#v0/WEB-INF/lib/jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
May 03, 2015 5:19:20 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/inviso#mr2#v0/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class

Seems to me like the webapp isn't loaded properly. Any idea of how to remedy this?

from inviso.

othman-essabir avatar othman-essabir commented on July 22, 2024

It's a little bit late but it may help others.
Actually it's not a problem of inviso but rather a security config of elastic search.
You need to enable CORS in elastic search.
Add this config to the config file of elastic search:
http.cors.enabled:true
if it works then change it back to false, because this is a big security issue!
Let's do this properly, set the following param in the config file of elastic search:
http.cors.allow-origin:the ip or the domain name of the server that elastic search should trust
this should work.

from inviso.

synfinatic avatar synfinatic commented on July 22, 2024

@alex-dot I'm getting the exact same error. Did you ever figure out a fix?

from inviso.

danielcweeks avatar danielcweeks commented on July 22, 2024

@synfinatic If you're talking about the "jar not loaded" message, that isn't an error. What is the issue that you're seeing? If you can't access the data, it's possible that it's the issue @othman-essabir described.

from inviso.

synfinatic avatar synfinatic commented on July 22, 2024

@danielcweeks Issue is that the webapp shows no data. Elastic search seems to have a little info about my cluster, but no job history even though I'm running the two python scripts (no errors, seems to see my jobs).

Adding http.cors.enabled:true to my elasticsearch.yml prevents it from starting (no errors, just doesn't start) w/ ES 1.7.5. Adding 'http.cors.enabled: true' fixed my problem.

from inviso.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.