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)
- Create Dashboard API not working HOT 1
- Permalinks doesn't work: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte HOT 1
- [SIP] Hide inactive users
- Unable to retrieve Datasets from SST Api HOT 8
- Alerts & Reports - CSV as Message Content resulting HTTP 500 HOT 1
- Can't access database in SQL lab HOT 6
- When requesting a Guest Token API, error code 422 is reported HOT 1
- Fatal error while saving query as dataset with Doris and {{ from_dttm }} & {{ to_dttm }} HOT 2
- Query saved paramters HOT 4
- "View as table" option on graphs/slices does not bypass the cache HOT 1
- [SIP] Proposal for aggregate dimensions
- Error in Add Alert form when upgrading to version 4.0.1 HOT 4
- how to edit dd.mm.yyyy dateformat in apache superset-ui-chart-controls HOT 1
- Pivot Table (legacy) sum issues HOT 1
- Login shows endless loading HOT 1
- Superset 4.0.1 uses again outdated setuptools 58.1.0 with CVE HOT 2
- missing redis-update in superset 4.0.1 => redis 4.6.0 HOT 2
- superset 4.0.1 uses Gunicorn 21.2.0 with CVE => should update to 22.0.0 HOT 6
- superset 4.0.1 uses werkzeug 3.0.1 with CVE => should update to 3.0.3 or newer HOT 2
- superset 4.0.1 uses sqlparse 0.4.4 with two high CVE findings => update to 0.5.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 superset.