Scriptis安装(基于Linkis开发的数据分析工具)
Scriptis是基于Linkis開發(fā)的數(shù)據(jù)分析工具,部署Scriptis前需要先將Linkis進行部署,Linkis的部署手冊見:Linkis部署手冊
1、準(zhǔn)備工作
2、部署
分為兩種部署方式,自動化部署和手動部署
2.1 自動化部署
進入前端目錄wedatasphere-scriptis 在該目錄下編輯 vi config.sh更改前端端口和后端接口地址,后端接口地址為linkis的gateway地址
# Configuring front-end ports scriptis_port="8088"# URL of the backend linkis gateway linkis_url="http://localhost:20401"# Scriptis ip address scriptis_ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')修改完后在該目錄下執(zhí)行:sudo sh install.sh > install.log 2>&1
執(zhí)行完后可以直接通過在谷歌瀏覽器訪問:http://scriptis_ipaddr:scriptis_port 其中scriptis_port為config.sh里面配置的端口,scriptis_ipaddr為安裝機器的IP
如果訪問失敗:可以通過查看 install.log的日志查看哪一步出錯
2.2 手動部署
1.安裝Nginx:sudo yum install nginx -y
2.修改配置文件:sudo vi /etc/nginx/conf.d/scriptis.conf 添加如下內(nèi)容:
server {listen 8080;# 訪問端口server_name localhost;#charset koi8-r;#access_log /var/log/nginx/host.access.log main;location / {root /appcom/Install/scriptis/ROOT; # 前端包解壓的目錄index index.html index.html;}location /ws {#webSocket配置支持proxy_pass http://192.168.xxx.xxx:9001;#linkis-gateway服務(wù)的ip端口proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";}location /api {proxy_pass http://192.168.xxx.xxx:9001; # linkis-gateway服務(wù)的ip端口proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header x_real_ipP $remote_addr;proxy_set_header remote_addr $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_http_version 1.1;proxy_connect_timeout 4s;proxy_read_timeout 600s;proxy_send_timeout 12s;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection upgrade;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location = /50x.html {root /usr/share/nginx/html;}}3.將前端包拷貝到對應(yīng)的目錄:/appcom/Install/scriptis/ROOT; # 前端包解壓的目錄
4.啟動服務(wù)sudo systemctl restart nginx
5.執(zhí)行完后可以直接通過在谷歌瀏覽器訪問:http://nginx_ip:nginx_port
3、常見問題
(1)上傳文件大小限制
sudo vi /etc/nginx/nginx.conf更改上傳大小
client_max_body_size 200m(2)接口超時
sudo vi /etc/nginx/conf.d/scriptis.conf更改接口超時時間
proxy_read_timeout 600shttps://github.com/WeBankFinTech/Scriptis/blob/master/docs/zh_CN/ch1/%E5%89%8D%E5%8F%B0%E9%83%A8%E7%BD%B2%E6%96%87%E6%A1%A3.md
總結(jié)
以上是生活随笔為你收集整理的Scriptis安装(基于Linkis开发的数据分析工具)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linkis源码目录结构详解
- 下一篇: 【收藏】解决关闭Hadoop时no na