Comments (8)
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.
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.
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.
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.
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.
@alex-dot I'm getting the exact same error. Did you ever figure out a fix?
from inviso.
@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.
@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)
- Error Walking through the README quick start HOT 3
- Documentation for Search and Profiler HOT 5
- Can't run inviso with elastic search 2.3.2 HOT 2
- Document project roadmap and contribution stance HOT 3
- too many data points HOT 1
- How does this work with the docker container? HOT 1
- Error with index_cluster_stats.py HOT 22
- does inviso require genie and aws? HOT 1
- Missing jobs' information HOT 1
- "Open Logs" doesnt work with dfs.nameservices name HOT 5
- Cluster charts doesn't work HOT 4
- cannot compile with 2.6.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inviso.