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/28 09:47:52 UTC
[GitHub] [incubator-seatunnel] chenhu opened a new issue, #2933: running sample configuration file with error
chenhu opened a new issue, #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933
### 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
running sample configuration file with error
### SeaTunnel Version
2.1.3
### SeaTunnel Config
```conf
{
"env" : {
"spark.app.name" : "SeaTunnel",
"spark.executor.instances" : 2,
"spark.executor.cores" : 1,
"spark.executor.memory" : "1g"
},
"source" : [
{
"result_table_name" : "my_dataset",
"plugin_name" : "Fake"
}
],
"transform" : [],
"sink" : [
{
"plugin_name" : "Console"
}
]
}
```
### Running Command
```shell
./bin/start-seatunnel-spark.sh --master local -c ~/Downloads/test.conf --deploy-mode client
```
### Error Exception
```log
22/09/28 14:37:34 WARN Utils: Your hostname, localhost resolves to a loopback address: 127.0.0.1; using 192.168.11.13 instead (on interface en13)
22/09/28 14:37:34 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
22/09/28 14:37:35 INFO ConfigBuilder: Loading config file: /Users/chenhu/Downloads/test.conf
22/09/28 14:37:35 INFO ConfigBuilder: parsed config file: {
"env" : {
"spark.default.parallelism" : "10"
},
"source" : [
[
"system",
"1",
"com.mysql.jdbc.Driver",
"ID",
"20",
"10",
"orders",
"Jdbc",
"root",
"orders",
"jdbc:mysql://192.168.110.228:3306/parking?useSSL=true&Unicode=true&characterEncoding=UTF-8"
]
],
"transform" : [
[
"orders_t",
"orders",
"Sql",
"select toYYYYMMDD(createdate) as day, * from orders"
]
],
"sink" : [
[
"system",
"com.mysql.jdbc.driver",
"orders",
"orders",
"Jdbc",
"root",
"jdbc:mysql://192.168.110.228:3306/parking",
"true"
]
]
}
22/09/28 14:37:35 ERROR Seatunnel:
===============================================================================
22/09/28 14:37:35 ERROR Seatunnel: Fatal Error,
22/09/28 14:37:35 ERROR Seatunnel: Please submit bug report in https://github.com/apache/incubator-seatunnel/issues
22/09/28 14:37:35 ERROR Seatunnel: Reason:/Users/chenhu/Downloads/test.conf: 5: source has type list of LIST rather than list of OBJECT
22/09/28 14:37:35 ERROR Seatunnel: Exception StackTrace:org.apache.seatunnel.shade.com.typesafe.config.ConfigException$WrongType: /Users/chenhu/Downloads/test.conf: 5: source has type list of LIST rather than list of OBJECT
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getHomogeneousWrappedList(SimpleConfig.java:452)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getObjectList(SimpleConfig.java:460)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getConfigList(SimpleConfig.java:465)
at org.apache.seatunnel.config.EnvironmentFactory.checkIsContainHive(EnvironmentFactory.java:62)
at org.apache.seatunnel.config.EnvironmentFactory.getEnvironment(EnvironmentFactory.java:47)
at org.apache.seatunnel.config.ExecutionContext.<init>(ExecutionContext.java:49)
at org.apache.seatunnel.command.spark.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:44)
at org.apache.seatunnel.command.spark.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:36)
at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:48)
at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:958)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1046)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1055)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
22/09/28 14:37:35 ERROR Seatunnel:
===============================================================================
Exception in thread "main" org.apache.seatunnel.shade.com.typesafe.config.ConfigException$WrongType: /Users/chenhu/Downloads/test.conf: 5: source has type list of LIST rather than list of OBJECT
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getHomogeneousWrappedList(SimpleConfig.java:452)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getObjectList(SimpleConfig.java:460)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getConfigList(SimpleConfig.java:465)
at org.apache.seatunnel.config.EnvironmentFactory.checkIsContainHive(EnvironmentFactory.java:62)
at org.apache.seatunnel.config.EnvironmentFactory.getEnvironment(EnvironmentFactory.java:47)
at org.apache.seatunnel.config.ExecutionContext.<init>(ExecutionContext.java:49)
at org.apache.seatunnel.command.spark.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:44)
at org.apache.seatunnel.command.spark.SparkTaskExecuteCommand.execute(SparkTaskExecuteCommand.java:36)
at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:48)
at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:958)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1046)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1055)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
22/09/28 14:37:35 INFO ShutdownHookManager: Shutdown hook called
22/09/28 14:37:35 INFO ShutdownHookManager: Deleting directory /private/var/folders/0n/3_w5cts173ld0_8lwqns20lc0000gn/T/spark-c546d1ba-d0eb-4c2d-9e7b-c0157ddb6391
[chenhu@localhost] ~/data/seatunnel
❯ ./bin/start-seatunnel-spark.sh --master local -c ~/Downloads/test.conf --deploy-mode client -t ⏎
22/09/28 17:40:30 WARN Utils: Your hostname, localhost resolves to a loopback address: 127.0.0.1; using 192.168.11.13 instead (on interface en13)
22/09/28 17:40:30 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
22/09/28 17:40:30 INFO ConfigBuilder: Loading config file: /Users/chenhu/Downloads/test.conf
22/09/28 17:40:31 INFO ConfigBuilder: parsed config file: {
"env" : {
"spark.app.name" : "SeaTunnel",
"spark.executor.instances" : 2,
"spark.executor.cores" : 1,
"spark.executor.memory" : "1g"
},
"source" : [
[
"my_dataset",
"Fake"
]
],
"transform" : [],
"sink" : [
[
"Console"
]
]
}
22/09/28 17:40:31 ERROR Seatunnel:
===============================================================================
22/09/28 17:40:31 ERROR Seatunnel: Fatal Error,
22/09/28 17:40:31 ERROR Seatunnel: Please submit bug report in https://github.com/apache/incubator-seatunnel/issues
22/09/28 17:40:31 ERROR Seatunnel: Reason:/Users/chenhu/Downloads/test.conf: 9: source has type list of LIST rather than list of OBJECT
22/09/28 17:40:31 ERROR Seatunnel: Exception StackTrace:org.apache.seatunnel.shade.com.typesafe.config.ConfigException$WrongType: /Users/chenhu/Downloads/test.conf: 9: source has type list of LIST rather than list of OBJECT
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getHomogeneousWrappedList(SimpleConfig.java:452)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getObjectList(SimpleConfig.java:460)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getConfigList(SimpleConfig.java:465)
at org.apache.seatunnel.config.EnvironmentFactory.checkIsContainHive(EnvironmentFactory.java:62)
at org.apache.seatunnel.config.EnvironmentFactory.getEnvironment(EnvironmentFactory.java:47)
at org.apache.seatunnel.config.ConfigBuilder.checkConfig(ConfigBuilder.java:83)
at org.apache.seatunnel.command.spark.SparkConfValidateCommand.execute(SparkConfValidateCommand.java:46)
at org.apache.seatunnel.command.spark.SparkConfValidateCommand.execute(SparkConfValidateCommand.java:34)
at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:48)
at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:958)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1046)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1055)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
22/09/28 17:40:31 ERROR Seatunnel:
===============================================================================
Exception in thread "main" org.apache.seatunnel.shade.com.typesafe.config.ConfigException$WrongType: /Users/chenhu/Downloads/test.conf: 9: source has type list of LIST rather than list of OBJECT
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getHomogeneousWrappedList(SimpleConfig.java:452)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getObjectList(SimpleConfig.java:460)
at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getConfigList(SimpleConfig.java:465)
at org.apache.seatunnel.config.EnvironmentFactory.checkIsContainHive(EnvironmentFactory.java:62)
at org.apache.seatunnel.config.EnvironmentFactory.getEnvironment(EnvironmentFactory.java:47)
at org.apache.seatunnel.config.ConfigBuilder.checkConfig(ConfigBuilder.java:83)
at org.apache.seatunnel.command.spark.SparkConfValidateCommand.execute(SparkConfValidateCommand.java:46)
at org.apache.seatunnel.command.spark.SparkConfValidateCommand.execute(SparkConfValidateCommand.java:34)
at org.apache.seatunnel.Seatunnel.run(Seatunnel.java:48)
at org.apache.seatunnel.SeatunnelSpark.main(SeatunnelSpark.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:958)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:203)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1046)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1055)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
22/09/28 17:40:31 INFO ShutdownHookManager: Shutdown hook called
22/09/28 17:40:31 INFO ShutdownHookManager: Deleting directory /private/var/folders/0n/3_w5cts173ld0_8lwqns20lc0000gn/T/spark-cd479951-0494-4d51-8139-e559b6215e89
```
### Flink or Spark Version
spark3.3 on hadoop3
### Java or Scala Version
java8
### Screenshots
_No response_
### Are you willing to submit PR?
- [ ] 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] chenhu commented on issue #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
chenhu commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1261817213
> The format might need to be like this
>
> ```json
> {
> "env": {
> "spark.app.name": "SeaTunnel",
> "spark.executor.instances": 2,
> "spark.executor.cores": 1,
> "spark.executor.memory": "1g"
> },
> "source": [{
> "Fake": {
> "result_table_name": "my_dataset",
> "plugin_name": "Fake"
> }
> }],
> "transform": [],
> "sink": [{
> "Console": {}
> }]
> }
> ```
Not working, the same error
--
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] hk-lrzy commented on issue #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
hk-lrzy commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1261873970
@chenhu
```
{
"env" : {
"spark.app.name" : "SeaTunnel",
"spark.executor.instances" : 2,
"spark.executor.cores" : 1,
"spark.executor.memory" : "1g"
},
"source" : [
{
"result_table_name" : "my_dataset",
"plugin_name" : "Fake"
}
],
"transform" : [],
"sink" : [
{
"plugin_name" : "Console"
}
]
}
```
plz change file name to `test.json` and retry again.
--
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 #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #2933: running with json configuration file not work
URL: https://github.com/apache/incubator-seatunnel/issues/2933
--
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] ashulin commented on issue #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
ashulin commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1261676817
The current plugin configuration has some custom handling, which may be related to the issue;
--
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 #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1296038439
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
[GitHub] [incubator-seatunnel] ashulin commented on issue #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
ashulin commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1261723417
The format might need to be like this
```json
{
"env": {
"spark.app.name": "SeaTunnel",
"spark.executor.instances": 2,
"spark.executor.cores": 1,
"spark.executor.memory": "1g"
},
"source": [{
"Fake": {
"result_table_name": "my_dataset",
"plugin_name": "Fake"
}
}],
"transform": [],
"sink": [{
"Console": {}
}]
}
```
--
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 #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1304944476
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] RickyHuo commented on issue #2933: running with json configuration file not work
Posted by GitBox <gi...@apache.org>.
RickyHuo commented on issue #2933:
URL: https://github.com/apache/incubator-seatunnel/issues/2933#issuecomment-1261846436
AFAIK, the follow config can works:
```
{
"env" : {
"spark.app.name" : "SeaTunnel",
"spark.executor.instances" : 2,
"spark.executor.cores" : 1,
"spark.executor.memory" : "1g"
},
"source" : {
"fake": {
"result_table_name": "my_dataset"
}
},
"transform" : {},
"sink" : {
"console": {}
}
}
```
The error only occurs when there are multiple plugins in one section.
--
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