Giter VIP home page Giter VIP logo

Comments (9)

amoussoubaruch avatar amoussoubaruch commented on May 5, 2024 1

Thanks @macfly1202

It's resolve since last day. I had a problem with my proxy. I use localhost instead of host IP.

from superset.

mistercrunch avatar mistercrunch commented on May 5, 2024

So this message seems to point in the direction that you didn't install the dependencies.
sudo pip install -r requirements.txt

from superset.

tutunci avatar tutunci commented on May 5, 2024

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.

mistercrunch avatar mistercrunch commented on May 5, 2024

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.

mistercrunch avatar mistercrunch commented on May 5, 2024

This should help:
#8

from superset.

amoussoubaruch avatar amoussoubaruch commented on May 5, 2024

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.

mistercrunch avatar mistercrunch commented on May 5, 2024

Pretty sure this is unrelated to this 2 year old issue @amoussoubaruch. You should probably open a new issue.

from superset.

amoussoubaruch avatar amoussoubaruch commented on May 5, 2024

ok!

from superset.

macfly1202 avatar macfly1202 commented on May 5, 2024

@amoussoubaruch : We are using superset with druid on 1 host (dev env) and no issue conection.
Connection is something like this :
capture d ecran_2017-07-28_11-22-18

from superset.

Related Issues (20)

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.