You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/09/26 03:45:16 UTC

[GitHub] [incubator-seatunnel] enterwhat opened a new issue, #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris

enterwhat opened a new issue, #2893:
URL: https://github.com/apache/incubator-seatunnel/issues/2893

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   在2.1.3的tag基础上进行了如下更改
   
   
   feat:
   
   druid导出数据到doris遇到如下问题,并解决:
   
   
   1,解决-i参数不能传入替换conf的配置文件的source部分占位符的问题,像sql部分一样支持占位符替换。
   
   2,解决druid的start_date,end_date通过命令行-i传参空格,识别成shell命令行的参数分隔符导致yyyy-MM-dd HH:mm:ss的日期格式参数不能被整体识别,导致运行出错的问题,默认使用特定占位符,可自定义
   
   3,对druid的输出分隔符进行自定义,以便支持导入到doris
   
   4,对doris的默认分隔符换成以解决列值里面" "(\t)有影响列识别的问题
   
   5,druid添加user,password的参数认证支持
   
   6,对druid connector能够依赖seatunnel的包进行provided标注
   
   ### SeaTunnel Version
   
   tag 2.1.3
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 1
     execution.planner = blink
     execution.checkpoint.interval = 5000
     execution.checkpoint.data-uri = "hdfs://master/flink/checkpoints/monitorStream"
   }
   
   source {
     DruidSource {
         jdbc_url = "jdbc:avatica:remote:url=http://xxx.xxx.xx.xxx:xxxx/druid/v2/sql/avatica/"
         result_table_name = "xxx"
         user = "xxx"
         password = "xxx"
         datasource = "xxx"
         start_date = ${start_date}
         end_date = ${end_date}  
         columns = ["__time"]
     }
   }
   
   transform {
     Sql {
   sql = "select __time as `time` from xxx"
     }
   }
   
   sink {
     DorisSink {
         fenodes = "192.168.73.218:8030"
         database = "xxx"
         table = "xxx"
         user = "xxx"
         password = "xxx"
         batch_size = 100000
         doris.column_separator = "\\x01"
         doris.escape_delimiters = "true"
         doris.columns="time"
     }
   
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-flink.sh -m yarn-cluster --config /home/mgr/apache-seatunnel-incubating-2.1.3/config/flink.batch.heartbeat-druid.conf -i start_date=2022-04-10 13:00:00 -i end_date=2022-04-10 14:00:00
   ```
   
   
   ### Error Exception
   
   ```log
   1,-i参数不能传入替换conf的配置文件的source部分占位符的问题,像sql部分一样支持占位符替换。
   
   2,druid的start_date,end_date通过命令行-i传参空格,识别成shell命令行的参数分隔符导致yyyy-MM-dd HH:mm:ss的日期格式参数不能被整体识别,导致运行出错的问题,默认使用特定占位符,可自定义
   
   3,对doris的默认分隔符列值里面" "(\t)有影响列识别的问题
   
   4,druid不支持user,password的参数认证
   ```
   
   
   ### Flink or Spark Version
   
   1.13.6
   
   ### Java or Scala Version
   
   2.11
   
   ### Screenshots
   
   ![image](https://user-images.githubusercontent.com/9004317/192189794-109e3eea-e2d3-4b27-907d-830f1e7a74d1.png)
   
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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-unsubscribe@seatunnel.apache.org.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on issue #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on issue #2893:
URL: https://github.com/apache/incubator-seatunnel/issues/2893#issuecomment-1257538208

   Wonderful! Looking forward your PR.


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] github-actions[bot] closed issue #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris
URL: https://github.com/apache/incubator-seatunnel/issues/2893


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] github-actions[bot] commented on issue #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2893:
URL: https://github.com/apache/incubator-seatunnel/issues/2893#issuecomment-1304678466

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on issue #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on issue #2893:
URL: https://github.com/apache/incubator-seatunnel/issues/2893#issuecomment-1257873827

   Hi, thanks for your contribution, could you use English?


-- 
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-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] github-actions[bot] commented on issue #2893: [Bug] [seatunnel-connector-flink-druid] druid导出数据到doris

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2893:
URL: https://github.com/apache/incubator-seatunnel/issues/2893#issuecomment-1292809727

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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-unsubscribe@seatunnel.apache.org

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