superset

#简介
python 大数据多维可视化分析工具,以flask appbuilder框架+sqlalchemy为基础
曾用名Caravel, Panoramix,
一款开源OLAP+数据可视化分析前端工具,支持Druid和Kylin
官网; http://airbnb.io/projects/superset/
源码:https://github.com/apache/incubator-superset
文档:http://superset.apache.org/installation.html#getting-started


#参考
https://segmentfault.com/a/1190000005083953


superset 安装
#安装3.6环境
tar -xzvf Python-3.6.0.tgz -C  /tmp
cd  /tmp/Python-3.6.0/
#把Python3.6安装到 /usr/local 目录
./configure --prefix=/usr/local


make
make all
make altinstall


###删除符号链接
rm -rf /usr/bin/python


#创建符号链接
ln -s /usr/local/lib/python3.6 /usr/bin/python


#安装oracle python引用模块
pip install cx_Oracle


#重装SQLAlchemy
#SQLAlchemy安装最新模块
https://bitbucket.org/zzzeek/sqlalchemy/downloads/
#解压后进入文件目录中安装setup.py文件
python setup.py install


#在superset根目录下执行python setup.py install 或  在线安装


sudo pip install superset==0.20.5 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com


#创建管理用户
fabmanager create-admin --app superset


# Initialize the database
superset db upgrade


# Load some data to play with
superset load_examples


# Create default roles and permissions
superset init


# Start the web server on port 8088, use -p to bind to another port
superset runserver


#连接Oracle


#配置SQLAlchemy URI
oracle://jqkj2017:[email protected]:1521/C3MVIDE
#




问题1:
get_password_masked_url_from_uri
解决:
找到报错python代码位置,注释掉无用的python代码


问题2:
DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: 64-bit Oracle Client library cannot be loaded: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help
解决:
#下载oracle客户端
#https://jingyan.baidu.com/article/5225f26b7c7e46e6fa0908f2.html
oracle-instantclient12.2-basiclite-12.2.0.1.0-1.x86_64.rpm
#rpm 安装 http://blog.csdn.net/samxx8/article/details/46739005
rpm -ivh your-package.rpm
#配置路径
/etc/ld.so.conf.d下新增oracle.conf文件
#oracle.conf文件内容
/usr/lib/oracle/12.2/client64/lib
#https://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html
sudo ldconfig


#kylin与superset集成实现数据可视化
http://bigdata.51cto.com/art/201703/535777.htm?mobile

你可能感兴趣的:(软件)