Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Doc] S3File doc contains wrong param requirement #8802

Open
3 tasks done
litiliu opened this issue Feb 24, 2025 · 0 comments
Open
3 tasks done

[Bug] [Doc] S3File doc contains wrong param requirement #8802

litiliu opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@litiliu
Copy link
Contributor

litiliu commented Feb 24, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

job fail based on the params provided by the doc. The doc says the file_format_type is not required, but actually is necessary.

Image

SeaTunnel Version

2.3.9

SeaTunnel Config

{
  "env": {
    "jobMode": "batch",
    "parallelism": 1,
    "checkpoint.interval": 60000
  },
  "source": [
    {
      "plugin_name": "FakeSource",
      "plugin_output": "fake",
      "row.num": 5,
      "schema": {
        "fields": {
          "name": "string",
          "age": "int",
          "card": "int"
        }
      }
    }
  ],
  "sink":[
    {
      "plugin_name":"S3File",
      "bucket": "s3://bb" ,
      "fs.s3a.endpoint": "",
      "fs.s3a.aws.credentials.provider": "org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider",
      "access_key": "a",
      "secret_key": "n",
      "path":"test3.txt",
      "schema_save_mode":"ERROR_WHEN_SCHEMA_NOT_EXIST"
    }
    ]
}

Running Command

org.apache.seatunnel.example.flink.v2.SeaTunnelApiExample

Error Exception

Caused by: org.apache.seatunnel.shade.com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'file_format_type'
	at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
	at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:174)
	at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)
	at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
	at org.apache.seatunnel.shade.com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:250)
	at org.apache.seatunnel.connectors.seatunnel.file.sink.config.FileSinkConfig.<init>(FileSinkConfig.java:209)
	at org.apache.seatunnel.connectors.seatunnel.file.sink.BaseMultipleTableFileSink.<init>(BaseMultipleTableFileSink.java:71)
	at org.apache.seatunnel.connectors.seatunnel.file.s3.sink.S3FileSink.<init>(S3FileSink.java:58)
	at org.apache.seatunnel.connectors.seatunnel.file.s3.sink.S3FileSinkFactory.lambda$createSink$0(S3FileSinkFactory.java:115)
	at org.apache.seatunnel.core.starter.flink.execution.SinkExecuteProcessor.execute(SinkExecuteProcessor.java:141)
	at org.apache.seatunnel.core.starter.flink.execution.FlinkExecution.execute(FlinkExecution.java:115)
	at org.apache.seatunnel.core.starter.flink.command.FlinkTaskExecuteCommand.execute(FlinkTaskExecuteCommand.java:61)
	... 2 more

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@litiliu litiliu added the bug label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant