You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/02/25 20:07:20 UTC

[GitHub] kirankumarpv commented on issue #1866: Fix hardcoded urls in python and template files.

kirankumarpv commented on issue #1866: Fix hardcoded urls in python and template files.
URL: https://github.com/apache/incubator-superset/pull/1866#issuecomment-467163228
 
 
   Hi,
   
   I wanted to run 'Superset' in complete serverless environment on AWS. Basically, want to run superset on AWS Lambda.
   
   I have tried different methods recommended and all of them resulted in some or other place break of functionality. Eventually what i did was the below to make it work:
   
   1. In config.py i have added another configuration variable and used this variable in locations where redirect or appbuilder.add_link has been used.
   2. In templates folder there are places where directly '/superset/' has been used. So, even if i did first step right, the templates are not rendering in right way. So, i have to go and change the template as well (As of now I have hard-coded this. I need to make it configurable)
   3. In front-end i have added a file called config.ts and I have used this config in locations wherever redirect was done in front-end. This has fixed up all my front-end links.
   4. Only thing remaining for me was fixing "Upload CSV to Database" Link.  When we click this link and enter the data, since Lambda doesn't allow any writes i tried to write to /tmp - but since we don't know whether the next request is going to be served by same lambda or not... so this is an issue as of now. The way I am planning to fix this is to write the files to s3 instead of local folder. I am still figuring out a way to do this.
   
   After above all are done, I have used AWS Aurora Serverless as my metadata database. This way I don't even need to pay for the database since Aurora is MySQL version.
   
   Hope this helps. Once i fix up the remaining this, I need to check how to make this available to all.
   
   Thanks
   Kiran

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org