1. 程式人生 > >crusader往postgres中寫資料配置

crusader往postgres中寫資料配置

(1)看當前資料庫在那個伺服器上面;

(2)登入到該資料庫所在的伺服器上面;

(3)進到/home/admin/deep/thor/latest/templates/vsd.json檔案中,檢視kafka中的地址,將crusader中的kafkaObjectConfig中的KafkaBootstrapServers的地址配置成vsd.json中的kafka配置的Addr中的地址

(4)兩個配置如下所示

crusade.conf

"kafkaObjectConfig":{

    "KafkaBootstrapServers":"192.168.2.158:9092,192.168.2.158:9093,192.168.2.158:9094,192.168.2.158:9095,192.168.2.158:9096",

    "KafkaGroupName":"index-vehicle2",

    "KafkaTopic":[

        "index-vehicle2"

    ],

    "Newest":false,

    "Concurrence":1

}

Vsd.json

"Kafka": {

    "Addr": "192.168.2.158:9092,192.168.2.158:9093,192.168.2.158:9094,192.168.2.158:9095,192.168.2.158:9096",

    "ArceeAddr": "192.168.2.158:8502",

    "Enable": true,

    "ImageBindata": false,

    "ImageWeedfs": true,

    "MaxCutboardImage": "9999*9999",

    "MaxSizeBytes": 4000000,

    "MaxSourceImage": "9999*9999",

    "ProtoVersion": "1.0",

    "ThumbImage": false,

    "ThumbImageSize": "320*180",

    "Topic": "index-vehicle2",

    "WLImageSize": false,

    "WeedfsAddr": "",

    "WeedfsAddr_02x": "192.168.2.158:9333"

}