xyhc edited a comment on issue #1034:
URL: 
https://github.com/apache/incubator-seatunnel/issues/1034#issuecomment-1010871489


   seatunnel config(realtimeaggr.conf):
   
   ```
   spark {
     spark.app.name = "seatunnel"
     spark.executor.instances = 2
     spark.executor.cores = 1
     spark.executor.memory = "1g"
   }
   
   input {
   
     kafkaStream {
       consumer.bootstrap.servers = "127.0.0.1:9092"
       topics = "seatunnel_input"
       consumer.group.id = "seatunnel_input_group_id"
       result_table_name = "seatunnel_message"
     }
   }
   
   filter {
   
     sql {
         sql = "select string(value) as raw_message from seatunnel_message"
     }
   
     json {
       source_field = "raw_message"
       target_field = "jsonMap"
       schema_file = "demo.json"
       result_table_name = "flatten_msg"
     }
   
   }
   
   output {
     stdout {
       streaming_output_mode = "Append"
     }
   }
   ```


-- 
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: commits-unsubscr...@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to