You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "15810785091 (via GitHub)" <gi...@apache.org> on 2023/03/31 07:20:01 UTC
[GitHub] [incubator-seatunnel] 15810785091 opened a new issue, #4465: [Bug] [hive source] read hive partition text error
15810785091 opened a new issue, #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465
### 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

When reading the hive partition file, an error is reported when the partition data exists.
### SeaTunnel Version
2.3.1
### SeaTunnel Config
```conf
env {
execution.parallelism = 1
job.name = "weibo.article.hive2doris"
job.mode = "BATCH"
}
source {
Hive {
table_name = "ims_dim.xxxxx"
metastore_uri = "thrift://xxxxxx:9083"
hdfs_site_path = "/etc/hadoop/conf/hdfs-site.xml"
read_partitions = ["dt=2023-02-08"]
result_table_name = "test2"
}
}
transform {
}
sink {
Console {
source_table_name = "test2"
}
}
```
### Running Command
```shell
/bin/seatunnel.sh --config test.conf -e local
```
### Error Exception
```log
Exception in thread "main" org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:181)
at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
Caused by: org.apache.seatunnel.engine.common.exception.SeaTunnelEngineException: org.apache.seatunnel.connectors.seatunnel.file.exception.FileConnectorException: ErrorCode:[COMMON-01], ErrorDescription:[File operation failed, such as (read,list,write,move,copy,sync) etc...] - Read data from this file [hdfs://nameservice1/user/hive/warehouse/ims_dim.db/ft_user_snwb/dt=2023-02-08/000000_0] failed
at org.apache.seatunnel.connectors.seatunnel.file.source.BaseFileSourceReader.pollNext(BaseFileSourceReader.java:70)
at org.apache.seatunnel.engine.server.task.flow.SourceFlowLifeCycle.collect(SourceFlowLifeCycle.java:135)
at org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.collect(SourceSeaTunnelTask.java:84)
at org.apache.seatunnel.engine.server.task.SeaTunnelTask.stateProcess(SeaTunnelTask.java:161)
at org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.call(SourceSeaTunnelTask.java:89)
at org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:526)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NumberFormatException: For input string: "\N"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at java.lang.Long.parseLong(Long.java:631)
at org.apache.seatunnel.format.text.TextDeserializationSchema.convert(TextDeserializationSchema.java:206)
at org.apache.seatunnel.format.text.TextDeserializationSchema.deserialize(TextDeserializationSchema.java:120)
at org.apache.seatunnel.format.text.TextDeserializationSchema.deserialize(TextDeserializationSchema.java:44)
at org.apache.seatunnel.connectors.seatunnel.file.source.reader.TextReadStrategy.lambda$read$0(TextReadStrategy.java:73)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at org.apache.seatunnel.connectors.seatunnel.file.source.reader.TextReadStrategy.read(TextReadStrategy.java:69)
at org.apache.seatunnel.connectors.seatunnel.file.source.BaseFileSourceReader.pollNext(BaseFileSourceReader.java:66)
... 10 more
at org.apache.seatunnel.engine.client.job.ClientJobProxy.waitForJobComplete(ClientJobProxy.java:119)
at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:174)
... 2 more
2023-03-31 15:15:05,904 INFO org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - run shutdown hook because get close signal
```
### 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
- [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] 15810785091 commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1491437564

hdfs file
--
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] 15810785091 commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1493532555
hive NULL data is stored by default \N
--
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] lightzhao commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "lightzhao (via GitHub)" <gi...@apache.org>.
lightzhao commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1491495979
Check if your hive schema is consistent with the data schema.
--
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] EricJoy2048 commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "EricJoy2048 (via GitHub)" <gi...@apache.org>.
EricJoy2048 commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1492864773
whats `\N` ?
--
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] 15810785091 closed issue #4465: [Bug] [hive source] read hive partition text error
Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 closed issue #4465: [Bug] [hive source] read hive partition text error
URL: https://github.com/apache/incubator-seatunnel/issues/4465
--
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] 15810785091 commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1491632538
The versions are inconsistent. My version is 2.1,Spark is 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] 15810785091 commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1491720725
From the new compilation project, modifying hive to 2.1.1 still reports 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] 15810785091 commented on issue #4465: [Bug] [hive source] read hive partition text error
Posted by "15810785091 (via GitHub)" <gi...@apache.org>.
15810785091 commented on issue #4465:
URL: https://github.com/apache/incubator-seatunnel/issues/4465#issuecomment-1493533986
I understand that the seatunnel did not process \N when cutting hive data, and should convert \N data''
--
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