Comments (9)
Thanks @macfly1202
It's resolve since last day. I had a problem with my proxy. I use localhost instead of host IP.
from superset.
So this message seems to point in the direction that you didn't install the dependencies.
sudo pip install -r requirements.txt
from superset.
Hi @mistercrunch,
I was able to install everything and after doing "Refresh Metadata" I've loaded all data sources and dimensions.
Now Metrics are not automatically loaded so I've added some but every time I use it into the query I've this result (below) and Druid never receive any query:
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
return f(self, *args, **kwargs)
File "/usr/local/panoramix/app/views.py", line 86, in datasource
form_data=request.args, view=self)
File "/usr/local/panoramix/app/viz.py", line 79, in __init__
self.df = self.bake_query()
File "/usr/local/panoramix/app/viz.py", line 168, in bake_query
client.groupby(**self.query_obj())
File "/usr/local/panoramix/app/viz.py", line 132, in query_obj
for m in ds.metrics if m.metric_name in self.metrics
File "/usr/local/panoramix/app/viz.py", line 132, in <dictcomp>
for m in ds.metrics if m.metric_name in self.metrics
File "/usr/local/panoramix/app/models.py", line 118, in json_obj
return json.loads(self.json)
File "/usr/local/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
Can you please explain how Metrics must be setup
Thanks
Maurizio
from superset.
Metrics follow the druid aggregation documentation, using json.
http://druid.io/docs/latest/querying/aggregations.html
You can also generate them dynamically from the columns checkboxes. If you check count_distinct, sum, ... on these columns, metrics will get generated the next time you click "Refresh Metadata".
Though I'll push a PR with error handling around the json in there.
from superset.
This should help:
#8
from superset.
Hi,
I read all your conversation. I have same problem but it's when i'm trying to connect to druid cluster. I have same error "No JSON object could be decoded". I entered Druid cluster connection information and when i refresh Metadata i have this.
"Error while processing cluster 'druid cluster' No JSON object could be decoded"
Can you please tell me if any more conf is necessary to best connect to druid?
Thanks in advance!
from superset.
Pretty sure this is unrelated to this 2 year old issue @amoussoubaruch. You should probably open a new issue.
from superset.
ok!
from superset.
@amoussoubaruch : We are using superset with druid on 1 host (dev env) and no issue conection.
Connection is something like this :
from superset.
Related Issues (20)
- Graph and pie chart is not displayed properly HOT 2
- Query Timeout Error in SQL Lab for Long Queries HOT 2
- deck.gl Multiple Layers chart not rendering
- Failure to connecto to Trino HOT 4
- HTML attributes being eliminated - Customizing Colors in Markdown Widgets not working HOT 1
- The subtotal in the pivot table doesn't correct or the row item doesn't happen due to the pagination feature
- `generator-superset` plugin uses deprecated and out of sync packages with the rest of Superset
- Export to pivoted .csv: internal server error 500 (Apache Superset version 3.0.1)
- Sorting by last modified date doesn't always return the correct sorting order HOT 2
- Time comparison does not always capture the correct data when the result set is limited HOT 11
- Dashboards is not created and return to welcome page HOT 1
- Using Filter per value of Column of type BIGINT breaks UI when the value is long(16 digits)
- Apache Superset 3.0.2 Scheduled reports didn't run as expected as per the Report Schedule
- Unable to create database connection, error: "GENERIC_DB_ENGINE_ERROR"
- API call (csstemplateasyncmodelview/api/read) fails with 401 in "Embedded Dashboard/IFrame" for token obtain by Admin User or any other user
- Disabled SSH_TUNNELING creating periodically many "idle in transaction" PGSQL connections
- Export to PDF leaves charts empty on first export
- local Superset with Helm HOT 2
- Export to Excel is not working for deck.gl charts
- [SIP-WIP] Proposal for Metrics Comparison base on the Temporal Dimension or/and Textual Dimension
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 superset.