JeremyXin opened a new issue, #8644:
URL: https://github.com/apache/seatunnel/issues/8644

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   similar to #4873. 
   This improvement only addresses the case when.hive-staging_hive*** is a 
file, not when.hive-staging_hive*** is a temporary folder.
   I encounter the following situation when.hive-staging_hive is a folder, and 
the folder needs to be filtered out.
   
   Is this a bug that needs to be fixed?  If so, I can submit a pr to resolve
   
   
   ### SeaTunnel Version
   
   2.3.8
   
   ### SeaTunnel Config
   
   ```conf
   env {
     job.mode = "BATCH"
     parallelism = 10
   }
   source {
     HdfsFile {
       path = "hdfs://xxx/xxx_mx_change_log_di"
       file_format_type = "parquet"
       fs.defaultFS = "hdfs://cluster1"
       hdfs_site_path = "/opt/soft/seatunnel/hadoop-conf/hdfs-site.xml"
       krb5_path = "/opt/soft/seatunnel/hadoop-conf/krb5.conf"
       kerberos_principal = "xxx"
       kerberos_keytab_path = "/opt/soft/seatunnel/hadoop-conf/kerberos.keytab"
     }
   }
   
   sink {
     Doris {
       fenodes = "xxx:8030"
       username = "root"
       password = "root123"
       database = "test"
       table = "xxx_mx_change_log_di"
       sink.buffer-size = "2621440"
       sink.buffer-count = "10"
       doris.batch.size = "10240"
       doris.config {
         format = "json"
         read_json_by_line = "true"
         }
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   seatunnel.sh --config test.conf --deploy-mode local
   ```
   
   ### Error Exception
   
   ```log
   Caused by: java.lang.RuntimeException: 
hdfs://xxx/xxx_mx_change_log_di/.hive-staging_hive_2021-07-22_13-56-05_587_1779994300234021397-1/-ext-10000/_temporary/0/_temporary/attempt_20210722135614_0000_m_000000_0/part-00000-effc5e0c-deaa-4d2f-941b-6644f5c945cc-c000
 is not a Parquet file. Expected magic number at tail, but found [-2, 12, 0, 8]
                at 
org.apache.seatunnel.shade.connector.file.org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:557)
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   JDK 1.8
   
   ### Screenshots
   
   
![Image](https://github.com/user-attachments/assets/8fd73dc5-9724-4371-8205-44dd060ce96a)
   
   ### 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-unsubscr...@seatunnel.apache.org.apache.org

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

Reply via email to