haifxu commented on PR #7780:
URL: https://github.com/apache/inlong/pull/7780#issuecomment-1495292109

   > @haifxu could you please add an example JSON?
   
   Here is an example of `file -> pulsar -> clickhouse`
   ```
   {
       "groupInfo": {
           "inlongGroupId": "test_group_ctl",
           "inlongClusterTag": "default_cluster",
           "mqType": "PULSAR"
       },
       "streamInfo": {
           "inlongStreamId": "test_stream_ctl",
           "dataType": "test",
           "fieldList": [
               {
                   "fieldName": "name",
                   "fieldType": "string"
               }
           ],
           "sourceList": [
               {
                   "sourceType": "FILE",
                   "sourceName": "test_source_ctl",
                   "agentIp": "127.0.0.1",
                   "pattern": "/data/test.txt"
               }
           ],
           "sinkList": [
               {
                   "sinkType": "CLICKHOUSE",
                   "sinkName": "test_sink_ctl",
                   "dataNodeName": "test_clickhouse",
                   "dbName": "db_test",
                   "tableName": "table_test",
                   "flushInterval": 1,
                   "flushRecord": 1000,
                   "retryTimes": 3,
                   "engine": "Log",
                   "isDistributed": 1,
                   "sinkFieldList": [
                       {
                           "sourceFieldName": "name",
                           "sourceFieldType": "string",
                           "fieldName": "name",
                           "fieldType": "string"
                       }
                   ]
               }
           ]
       }
   }
   ```
   For complete examples, I will update the command line documentation: 
   https://inlong.apache.org/zh-CN/docs/next/user_guide/command_line_tools


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to