Webä¸ã§SQLãè¨è¿°ã»ä¿åã§ãã¦æ°è»½ã«ãã¼ã¿ã®å¯è¦åã§ããã¹ã°ã¬ã¢ãRedashã
Redashã¯ã·ã³ãã«ãªãããååãªæ©è½ãããã®ã ãã ä¸æ¹ã§ä½¿ãè¾¼ãã§ããã¨ããå°ãã°ã©ãã«è¡¨ç¾åãããã°ã»ã»ã»ã¨ãã ããã·ã¥ãã¼ãã®é ç½®ããã£ã¨æè»ãªãã»ã»ã»ã¨ãæã£ããããå ´é¢ãããã
ããã§ä»£æ¿ã«ãªããããªã®ãAirbnbçRedashã¨ã§ãããã¹ãSupersetã
(以åã®ã¾ã ãCaravelãã¨ããååã ã£ãé ãã試ãã¦ã¿ããã¨ã¯æãã¤ã¤æéãåããªãã§ãããã ãã¤ã®éã«ãååãå¤ãã£ã¦ãã)
ä»åã¯ã²ã¨ã¾ãDockerã§å°å ¥ãè¡ã£ã¦ã¿ãã
ããããã¯æé ã¯å ¬å¼ã®ããã¥ã¡ã³ãã«å¾ãã°ããã®ã ãã ããã¤ããã®ã¾ã¾ã§ã¯ãããªãè¡ããªãç¹ããã£ãã
Installation & Configuration — Superset's documentation documentation
- ç°å¢ã«ãã£ã¦ã¯ãgcc-c++ããå ¥ããå¿ è¦ããã
- pipã§ãflask-sqlalchemy==2.0ããå ¥ããå¿ è¦ãããï¼ä»¥éã®ãã¼ã¸ã§ã³ã§ã¯ã³ãã³ãã失æããï¼
ããããçãè¾¼ãã§Dockerfileãè¨è¿°ããã¨ä»¥ä¸ã®ããã«ãªãã
ï¼æ¬æ¥ã¯Alpineãããã¦Debianã使ãã®ãã¤ã¡ã¼ã¸ãµã¤ãºçã«ãã¿ã¼ãªãã ãã諸è¬ã®äºæ ã§CentOSã§ï¼
FROM centos:7 RUN yum update -y RUN yum upgrade python-setuptools RUN yum install -y gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel mysql-devel postgresql-devel RUN curl -kL https://bootstrap.pypa.io/get-pip.py | python RUN pip install --upgrade setuptools pip RUN pip install flask-sqlalchemy==2.0 superset # å¿ è¦ã«å¿ãã¦è²ã å°å ¥ãã RUN pip install mysqlclient psycopg2 #pyhive cx_Oracle sqlalchemy-redshift impylapy mssql RUN fabmanager create-admin --app superset --username admin --firstname admin --lastname admin --email [email protected] --password admin RUN superset db upgrade RUN superset load_examples RUN superset init CMD ["superset", "runserver", "-p", "80"]
ä¸è¨ãDockerfileã¨ãã¦ä¿åãã ã¤ã¡ã¼ã¸ãçæãã¦ç«ã¡ä¸ããã°è¯ãã
$ docker build -t superset . $ docker run -it -p 80:80 superset
Webç»é¢ãç«ã¡ä¸ãã£ãããadmin/adminã§ãã°ã¤ã³ã§ããã
ç´ ã§ã¤ã³ã¹ãã¼ã«ããå ´åãDockerfileã®æé ããªããã°ã¾ãåé¡ãªãå°å ¥ã§ããã ããã
詳ãã使ãåæãªããã¯å¾æ¥ã«åãããã¨æãï¼ç ãï¼ãã ãµã¯ãã¨ããã£ã¦ã¿ãæ触ã§ã¯ã è¦ãç®ã¯ç¶ºéºãªã®ã ãã¡ãã£ã¨UIãç´æçã§ã¯ãªãã¦æ £ããè¦ããããªæãã
ï¼ããã¯åããAirbnb製ã®ã¯ã¼ã¯ããã¼ã¨ã³ã¸ã³Airflowã«ãå ±éããææ³ãï¼
ãã¼ã¿ã½ã¼ã¹æ¥ç¶ã¾ããã®è¨å®ãªãããRedashã«æ¯ã¹ãã¨ããããä¸è¦ªåãªæãããã
ãã¨ãBigqueryã«ç¹ããªãã®ã¯ãã¤ãã¹ç¹ã
ä¸æ¹ã§Redashããã表ç¾ã®é¸æè¢ãå¤ããããã·ã¥ãã¼ããã¨ã®ã«ã¹ã¿ã æ§ãé«ãããªæããªã®ã¯é¢ç½ãã
ä½ããå°å ¥ãç°¡åã§ããããã¨ãªãäºæ ã§DockerãUbuntuãã ããªä¼ç¤¾å¤ããªäººã§ãæ°è»½ã«è©¦ããããªã®ã¯è¯ãããã
- ä½è : KLabæ ªå¼ä¼ç¤¾è¶æºä¿®å¸,KLabæ ªå¼ä¼ç¤¾é«ç°æ¦å²
- åºç社/ã¡ã¼ã«ã¼: ã¤ã³ãã¬ã¹
- çºå£²æ¥: 2014/05/12
- ã¡ãã£ã¢: Kindleç
- ãã®ååãå«ãããã°ãè¦ã