其他分享
首页 > 其他分享> > datax datax-web 安装教程

datax datax-web 安装教程

作者:互联网

配置文件

admin 控制台  修改下 bootstrap.properties

 

#Database
DB_HOST=106.12.173.213
DB_PORT=3306

DB_USERNAME=root
DB_PASSWORD=123456
DB_DATABASE=datax_web

注意  SERVER_PORT 要一致

# environment variables

#JAVA_HOME=""

WEB_LOG_PATH=${BIN}/../logs
WEB_CONF_PATH=${BIN}/../conf

DATA_PATH=${BIN}/../data
SERVER_PORT=18080

#PID_FILE_PATH=${BIN}/dataxadmin.pid

执行器    application.yml   注意 

EXECUTOR_PORT 要一致
# web portapplication.yml 
server:
  port: 18081
  #port: 8081

# log config
logging:
  config: classpath:logback.xml
  path: ${data.path}/applogs
  #path: ./data/applogs/executor/jobhandler

datax:
  job:
    admin:
      ### datax admin address list, such as "http://address" or "http://address01,http://address02"
      #addresses: http://127.0.0.1:8080
      addresses: http://127.0.0.1:18080
    executor:
      appname: datax-executor
      ip:
      #port: 9999
      port: ${executor.port:9999}
      ### job log path
      #logpath: ./data/applogs/executor/jobhandler
      logpath: ${data.path}/applogs
      ### job log retention days
      logretentiondays: 30
    ### job, access token
    accessToken:

  executor:
    #jsonpath: D:\\temp\\executor\\json\\
    jsonpath: /root/datax/datax/script

  #pypath: F:\tools\datax\bin\datax.py
  pypath: /root/datax/datax/bin/datax.py

 

 

# environment variables

#JAVA_HOME=""

SERVICE_LOG_PATH=${BIN}/../logs
SERVICE_CONF_PATH=${BIN}/../conf
DATA_PATH=${BIN}/../data


## datax json文件存放位置
JSON_PATH=${BIN}/../json


## executor_port
EXECUTOR_PORT=9999


## 保持和datax-admin端口一致
DATAX_ADMIN_PORT=18080

## PYTHON脚本执行位置
#PYTHON_PATH=/home/hadoop/install/datax/bin/datax.py
PYTHON_PATH=/root/datax/datax/bin/datax.py

SERVER_PORT=18081

#PID_FILE_PATH=${BIN}/service.pid


#debug 远程调试端口
#REMOTE_DEBUG_SWITCH=true
#REMOTE_DEBUG_PORT=7004

 

标签:BIN,web,教程,..,datax,executor,PATH,PORT
来源: https://www.cnblogs.com/zxf330301/p/16354850.html