You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "soy-beanmilk (via GitHub)" <gi...@apache.org> on 2025/01/21 01:35:15 UTC
[I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
soy-beanmilk opened a new issue, #8563:
URL: https://github.com/apache/seatunnel/issues/8563
seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "fcb-xiaobo (via GitHub)" <gi...@apache.org>.
fcb-xiaobo commented on issue #8563:
URL: https://github.com/apache/seatunnel/issues/8563#issuecomment-2603461582
Version 2.3.9 has a method of submitting tasks by uploading files through the REST API. You can refer to it below
https://seatunnel.apache.org/docs/2.3.9/seatunnel-engine/rest-api-v2
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "soy-beanmilk (via GitHub)" <gi...@apache.org>.
soy-beanmilk commented on issue #8563:
URL: https://github.com/apache/seatunnel/issues/8563#issuecomment-2603481457
但是我们暂时还不能升级seatunnel版本,目前有没有hacon转json格式详细说明,或者相关工具。
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "fcb-xiaobo (via GitHub)" <gi...@apache.org>.
fcb-xiaobo commented on issue #8563:
URL: https://github.com/apache/seatunnel/issues/8563#issuecomment-2604269744
At present, in 2.3.8, I understand that it is not possible to submit task configurations in hocon format through the rest API, nor can JSON configurations be converted to hocon configurations. If you want to convert them yourself, I have come up with a method using seattune and verified it,
config = ConfigFactory.parseString(”you hocon file“);
The content is your local hocon file and needs to be converted to a string
origin local hocon file

use parseStirng convert after

You can try it, I hope it can help you
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "liunaijie (via GitHub)" <gi...@apache.org>.
liunaijie commented on issue #8563:
URL: https://github.com/apache/seatunnel/issues/8563#issuecomment-2606330614
> 最好的方式是restapi能够支持hocon格式,如果支持不了的话,能不能提供hacon格式转换为json格式的工具,或者文档说明,因为我发现官方文档对于json格式这块描述的不是很多。我尝试用一些工具直接将hacon格式转换为json,发现是行不通的,因为有一些字段差异。
Hi, the sample code about convert hacon to json is :
```
public static final ConfigRenderOptions CONFIG_RENDER_OPTIONS = ConfigRenderOptions.concise().setFormatted(true);
Config config = ConfigFactory.parseFile(filePath.toFile()).resolve(ConfigResolveOptions.defaults().setAllowUnresolved(true));
log.info(config.root().render(CONFIG_RENDER_OPTIONS))
```
You need import `seatunnel-config-shade:2.3.9` (You need use 2.3.9, 2.3.9 has some fix.)
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "soy-beanmilk (via GitHub)" <gi...@apache.org>.
soy-beanmilk commented on issue #8563:
URL: https://github.com/apache/seatunnel/issues/8563#issuecomment-2603549430
最好的方式是restapi能够支持hocon格式,如果支持不了的话,能不能提供hacon格式转换为json格式的工具,或者文档说明,因为我发现官方文档对于json格式这块描述的不是很多。我尝试用一些工具直接将hacon格式转换为json,发现是行不通的,因为有一些字段差异。
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "fcb-xiaobo (via GitHub)" <gi...@apache.org>.
fcb-xiaobo commented on issue #8563:
URL: https://github.com/apache/seatunnel/issues/8563#issuecomment-2603527438
In 2.3.8, do you want to submit a hocon format configuration file through the REST API to submit the task, or do you want to convert the hocon configuration to JSON configuration through the REST API
--
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
Re: [I] seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式 [seatunnel]
Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 closed issue #8563: seatunnel 2.3.8有没有可以通过restapi执行hocon格式文件的方式
URL: https://github.com/apache/seatunnel/issues/8563
--
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