Ver código fonte

Add files via upload

chenxixian 6 anos atrás
commit
f50f955003
3 arquivos alterados com 375 adições e 0 exclusões
  1. 178 0
      README.md
  2. 72 0
      jupyterlab.yaml
  3. 125 0
      superset.yaml

+ 178 - 0
README.md

@@ -0,0 +1,178 @@
+# 开源BI工具安装配置文档
+
+本文档包含了[JupyterLab](#JupyterLab配置)、[SuperSet](#JupyterLab配置)、[Zeppelin](#SuperSet的配置)的安装配置
+
+## OS环境配置
+
+- 安装必要的系统组件
+
+``yum install -y nano net-tools wget bzip2 gcc gcc-c++ python-devel cyrus-sasl-devel cyrus-sasl-plain  cyrus-sasl-gssapi krb5-workstation krb5-libs krb5-auth-dialog ntp ntpdate``
+
+- 配置时钟同步
+
+``ntpdate cn.pool.ntp.org``
+
+``hwclock --systohc``
+
+- 关闭防火墙服务
+
+``systemctl stop firewalld.service``
+
+``systemctl disable firewalld.service``
+
+- krb客户端配置
+
+ 修改krb5.conf
+
+``nano /etc/krb5.conf``
+
+将以下配置文件内容粘贴到``/etc/krb5.conf``
+
+```
+ # Configuration snippets may be placed in this directory as well
+includedir /etc/krb5.conf.d/
+
+[logging]
+ default = FILE:/var/log/krb5libs.log
+ kdc = FILE:/var/log/krb5kdc.log
+ admin_server = FILE:/var/log/kadmind.log
+
+[libdefaults]
+ dns_lookup_realm = false
+ ticket_lifetime = 24h
+ renew_lifetime = 7d
+ forwardable = true
+ rdns = false
+# pkinit_anchors = /etc/pki/tls/certs/ca-bundle.crt
+ default_realm = SGMW.COM
+# default_ccache_name = KEYRING:persistent:%{uid}
+
+[realms]
+ SGMW.COM = {
+  kdc = cm.sgmw.com
+  admin_server = cm.sgmw.com
+ }
+
+[domain_realm]
+ .sgmw.com = SGMW.COM
+sgmw.com = SGMW.COM
+
+```
+
+  修改hosts
+
+``nano /etc/hosts``
+
+将以下配置文件内容粘贴到``nano /etc/hosts``
+
+``10.1.126.229    cm.sgmw.com``
+
+``10.1.126.235    cnwulcdhnode01``
+
+  测试krb配置
+  
+``kinit finance/remote@SGMW.COM``
+ 
+``klist``
+
+## Miniconda配置
+- 下载Miniconda3安装程序
+
+``wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh``
+
+- 运行Miniconda3安装程序
+
+``bash Miniconda3-latest-Linux-x86_64.sh``
+
+按回车继续,遇到问题回答yes,执行下面命令让配置生效:
+
+``source /root/.bashrc``
+
+- 添加conda国内镜像:
+
+``conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/``
+
+``conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/``
+
+``conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/``
+
+``conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/``
+
+``conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/``
+
+- 添加pip国内镜像
+
+```
+[root@localhost ~]# cd ~
+[root@localhost ~]# mkdir .pip
+[root@localhost ~]# cd .pip
+[root@localhost .pip]# nano pip.conf
+```
+
+```
+[global]
+index-url = https://pypi.tuna.tsinghua.edu.cn/simple
+```
+
+- 更新conda版本
+
+``conda update -n base -c defaults conda``
+
+## JupyterLab配置
+
+- 使用 [jupyterlab.yaml ](http://fs.chenxixian.cn:8888/files/doc/Jupyterlab%2BSuperset%2BZeppelin/jupyterlab.yaml)建立jupyterlab虚拟环境
+
+``conda env create -f jupyterlab.yaml``
+
+- 进入jupyterlab虚拟环境
+
+``conda activate jupyterlab``
+
+
+- 运行jupyterlab
+
+``LANG=zn jupyter lab --port 8888 --no-browser --allow-root --ip='192.168.2.220'``
+
+
+## SuperSet的配置
+
+- 使用 [superset.yaml](http://fs.chenxixian.cn:8888/files/doc/Jupyterlab%2BSuperset%2BZeppelin/superset.yaml)建立superset虚拟环境
+
+``conda env create -f superset.yaml``
+
+- 进入superset虚拟环境
+
+``conda activate superset``
+
+
+- 配置superset
+
+``fabmanager create-admin --app superset``
+
+``superset db upgrade``
+
+``superset load_examples``
+
+``superset init``
+
+- 运行superset
+
+``superset runserver -p 8388``
+
+## Zeppelin的配置
+
+``yum list installed | grep java``
+
+- 安装JDK
+
+``yum -y install java-1.8.0-openjdk*``
+
+- 安装Zeppelin
+
+``tar -zxvf zeppelin-0.8.1-bin-all.tgz``
+
+- 运行Zeppelin
+
+``cd zeppelin-0.8.1-bin-all``
+
+``bin/zeppelin-daemon.sh start``

+ 72 - 0
jupyterlab.yaml

@@ -0,0 +1,72 @@
+name: jupyterlab
+channels:
+  - defaults
+dependencies:
+  - ca-certificates=2019.1.23=0
+  - certifi=2018.11.29=py36_0
+  - libedit=3.1.20181209=hc058e9b_0
+  - libffi=3.2.1=hd88cf55_4
+  - libgcc-ng=8.2.0=hdf63c60_1
+  - libstdcxx-ng=8.2.0=hdf63c60_1
+  - ncurses=6.1=he6710b0_1
+  - openssl=1.1.1b=h7b6447c_0
+  - pip=19.0.3=py36_0
+  - python=3.6.7=h0371630_0
+  - readline=7.0=h7b6447c_5
+  - setuptools=40.8.0=py36_0
+  - sqlite=3.26.0=h7b6447c_0
+  - tk=8.6.8=hbc83047_0
+  - wheel=0.33.1=py36_0
+  - xz=5.2.4=h14c3975_4
+  - zlib=1.2.11=h7b6447c_3
+  - pip:
+    - attrs==19.1.0
+    - backcall==0.1.0
+    - bitarray==0.8.3
+    - bleach==3.1.0
+    - decorator==4.3.2
+    - defusedxml==0.5.0
+    - entrypoints==0.3
+    - impyla==0.14.2.2
+    - ipykernel==5.1.0
+    - ipython==7.3.0
+    - ipython-genutils==0.2.0
+    - jedi==0.13.3
+    - jinja2==2.10
+    - jsonschema==3.0.1
+    - jupyter-client==5.2.4
+    - jupyter-core==4.4.0
+    - jupyterlab==0.35.4
+    - jupyterlab-server==0.2.0
+    - markupsafe==1.1.1
+    - mistune==0.8.4
+    - nbconvert==5.4.1
+    - nbformat==4.4.0
+    - notebook==5.7.5
+    - numpy==1.16.2
+    - pandas==0.23.4
+    - pandocfilters==1.4.2
+    - parso==0.3.4
+    - pexpect==4.6.0
+    - pickleshare==0.7.5
+    - ply==3.11
+    - prometheus-client==0.6.0
+    - prompt-toolkit==2.0.9
+    - ptyprocess==0.6.0
+    - pygments==2.3.1
+    - pyrsistent==0.14.11
+    - python-dateutil==2.8.0
+    - pytz==2018.9
+    - pyzmq==18.0.1
+    - sasl==0.2.1
+    - send2trash==1.5.0
+    - six==1.12.0
+    - terminado==0.8.1
+    - testpath==0.4.2
+    - thrift-sasl==0.2.1
+    - thriftpy==0.3.9
+    - tornado==6.0.1
+    - traitlets==4.3.2
+    - wcwidth==0.1.7
+    - webencodings==0.5.1
+prefix: /root/miniconda3/envs/jupyterlab

+ 125 - 0
superset.yaml

@@ -0,0 +1,125 @@
+name: superset
+channels:
+  - defaults
+dependencies:
+  - bitarray=0.8.3=py36h14c3975_0
+  - blas=1.0=mkl
+  - ca-certificates=2019.1.23=0
+  - certifi=2018.11.29=py36_0
+  - cyrus-sasl=2.1.26=h82bf5a1_4
+  - impyla=0.14.1=py36_1
+  - intel-openmp=2019.1=144
+  - krb5=1.16.1=h173b8e3_7
+  - libdb=6.1.26=he6710b0_0
+  - libedit=3.1.20181209=hc058e9b_0
+  - libffi=3.2.1=hd88cf55_4
+  - libgcc-ng=8.2.0=hdf63c60_1
+  - libgfortran-ng=7.3.0=hdf63c60_0
+  - libntlm=1.4=h14c3975_2
+  - libstdcxx-ng=8.2.0=hdf63c60_1
+  - mkl=2019.1=144
+  - mkl_fft=1.0.10=py36ha843d7b_0
+  - mkl_random=1.0.2=py36hd81dba3_0
+  - ncurses=6.1=he6710b0_1
+  - numpy=1.15.4=py36h7e9f1db_0
+  - numpy-base=1.15.4=py36hde5b4d6_0
+  - openssl=1.1.1b=h7b6447c_0
+  - pandas=0.23.4=py36h04863e7_0
+  - pip=19.0.3=py36_0
+  - ply=3.11=py36_0
+  - python=3.6.7=h0371630_0
+  - python-dateutil=2.8.0=py36_0
+  - pytz=2018.9=py36_0
+  - readline=7.0=h7b6447c_5
+  - sasl=0.2.1=py36h779454e_1
+  - setuptools=40.8.0=py36_0
+  - six=1.12.0=py36_0
+  - sqlite=3.26.0=h7b6447c_0
+  - thrift_sasl=0.2.1=py36_0
+  - thriftpy=0.3.9=py36h14c3975_2
+  - tk=8.6.8=hbc83047_0
+  - wheel=0.33.1=py36_0
+  - xz=5.2.4=h14c3975_4
+  - zlib=1.2.11=h7b6447c_3
+  - pip:
+    - alembic==1.0.7
+    - amqp==2.4.1
+    - asn1crypto==0.24.0
+    - babel==2.6.0
+    - billiard==3.5.0.5
+    - bleach==3.1.0
+    - boto3==1.4.7
+    - botocore==1.7.48
+    - cchardet==2.1.4
+    - celery==4.2.1
+    - cffi==1.12.2
+    - chardet==3.0.4
+    - click==6.7
+    - colorama==0.3.9
+    - contextlib2==0.5.5
+    - cryptography==2.6.1
+    - defusedxml==0.5.0
+    - docutils==0.14
+    - et-xmlfile==1.0.1
+    - flask==0.12.4
+    - flask-appbuilder==1.12.3
+    - flask-babel==0.12.2
+    - flask-caching==1.5.0
+    - flask-compress==1.4.0
+    - flask-login==0.4.1
+    - flask-migrate==2.4.0
+    - flask-openid==1.2.5
+    - flask-sqlalchemy==2.3.2
+    - flask-wtf==0.14.2
+    - flower==0.9.2
+    - future==0.16.0
+    - geographiclib==1.49
+    - geopy==1.18.1
+    - gunicorn==19.9.0
+    - humanize==0.5.1
+    - idna==2.8
+    - ijson==2.3
+    - isodate==0.6.0
+    - itsdangerous==1.1.0
+    - jdcal==1.4
+    - jinja2==2.10
+    - jmespath==0.9.4
+    - jsonlines==1.2.0
+    - jsonschema==2.6.0
+    - kombu==4.3.0
+    - linear-tsv==1.1.0
+    - mako==1.0.7
+    - markdown==3.0.1
+    - markupsafe==1.1.1
+    - openpyxl==2.4.11
+    - parsedatetime==2.4
+    - pathlib2==2.3.3
+    - polyline==1.3.2
+    - pycparser==2.19
+    - pydruid==0.5.0
+    - pyhive==0.6.1
+    - python-editor==1.0.4
+    - python-geohash==0.8.5
+    - python3-openid==3.1.0
+    - pyyaml==3.13
+    - requests==2.21.0
+    - rfc3986==1.2.0
+    - s3transfer==0.1.13
+    - simplejson==3.16.0
+    - sqlalchemy==1.2.18
+    - sqlalchemy-utils==0.33.11
+    - sqlparse==0.2.4
+    - superset==0.28.1
+    - tableschema==1.3.0
+    - tabulator==1.19.0
+    - thrift==0.11.0
+    - tornado==5.1.1
+    - unicodecsv==0.14.1
+    - unidecode==1.0.23
+    - urllib3==1.24.1
+    - vine==1.2.0
+    - webencodings==0.5.1
+    - werkzeug==0.14.1
+    - wtforms==2.2.1
+    - xlrd==1.2.0
+prefix: /root/anaconda2/envs/superset