日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Scriptis安装(基于Linkis开发的数据分析工具)

發(fā)布時間:2025/1/21 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Scriptis安装(基于Linkis开发的数据分析工具) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

Scriptis是基于Linkis開發(fā)的數(shù)據(jù)分析工具,部署Scriptis前需要先將Linkis進行部署,Linkis的部署手冊見:Linkis部署手冊

1、準(zhǔn)備工作

  • 點擊release 選擇對應(yīng)的安裝包進行下載
  • 將下載下來的安裝包在安裝目錄進行解壓:unzip wedatasphere-scriptis-0.7.0-dist.zip
  • 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 600s

    https://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)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。