Skip to content
GaryLee edited this page Mar 15, 2017 · 11 revisions

Deploy Kado

Configuration Kado

  • core-site.xml & hdfs-site.xml
  • web.xml
  • log4j2.xm
  • config.yaml

core-site.xml & hdfs-site.xml

  • 用來配置hdfs的屬性,將結果或log寫入HDFS中
  • 此部分需依照user自行部署的hdfs環境,將此兩個檔案放入portal\src\main\resources,Kado會自行讀取設定

web.xml

  • 用來配置Web的屬性,這邊有filter來過濾副檔名,另外還有一個是用來配置URL router的路徑

log4j2.xml

  • 配置log4j2的設定,必要設定為<Property name="smtphost">127.0.0.1</Property>,使用job report功能時,會需要配置SMTP Server IP 其他都是user 可以自行定義。
  • 特別注意的,是getLogDir這個appender,請不要移除或更動,此部分是用來進行抓取local log file path的dir

Config.yaml

  • Kado主要的配置檔,其詳細描述如下表:
Name Default Value Sescribe
prestoURL http://localhost:8080 Presto Web URL
siteURLBase http://localhost:8889 Kado Web Site URL
csvlocalPath /home/user/presto_temp 結果輸出到本地檔案時的目錄
csvtmphdfsPath /tmp/presto-csvtemp 結果輸出到HDFS檔案時的目錄
database presto_temp presto 暫存表的名稱,存在於Hive 中
hivepath /user/hive/warehouse hive的hdfs路徑
prestoCatalog hive 對應到presto設定hive的檔案名稱
expiration 7 presto暫存表過期時間
deleteLogTTL 30 Kado log過期時間
scheduleLogDir /logs/Schedule/ Schedule 打印log的路徑
sqliteName kado.sqlite SQLite DB 名稱
sqliteHDFSpath /tmp 備份到SQLiteDB的HDFS目錄
sqliteLOCALpath /home/user/kado.sqlite 要備份的SQLiteDB本地目錄
wrtierinjection class$class Kado提供的Writer Class,以$分開

Functions

View

Clone this wiki locally