zzmzxxxxplong opened a new issue, #4036:
URL: https://github.com/apache/incubator-seatunnel/issues/4036

   ### 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
   
   2.3.0 Hdfs sink Import partition table again, parameter 
is_partition_field_write_in_file=false is invalid. The imported text file still 
contains partition data
   
   ### SeaTunnel Version
   
   2.3.0
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 3
     job.name="test_mysql_source_to_hive"
   }
   
   source {
     Jdbc {
           url = 
"jdbc:mysql://172.18.5.10:23307/source?useUnicode=true&characterEncoding=utf8&useSSL=false"
           driver = "com.mysql.cj.jdbc.Driver"
           connection_check_timeout_sec = 100
           user = "source"
           password = "jP8*dKw,bRjBVos="
           query = "select * from test_seatunnel"
       }
   }
   
   transform {
   }
   
   sink {
     # choose stdout output plugin to output data to console
   
     HdfsFile {
       fs.defaultFS = "hdfs://bigdata-master-01.chinagoods.te:8020"
       path = "/user/hive/warehouse/test.db/test_22"
       partition_by = ["ds"]
       partition_dir_expression = "${k0}=${v0}"
       is_partition_field_write_in_file = false
       #file_name_expression = "${transactionId}_${now}"
       file_format = "text"
       field_delimiter = "\u0001"
       sink_columns = ["id","name","ds"]
       #filename_time_format = "yyyyMMdd"
       #is_enable_transaction = true
   }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   sh $SEATUNNEL_HOME/bin/seatunnel.sh -c 
/root/zyl/my_conf/test_mysql2hdfs.conf -e cluster
   ```
   
   
   ### Error Exception
   
   ```log
   No abnormality found
   ```
   
   
   ### Flink or Spark Version
   
   flink 1.12.0, spark 2.4.0
   
   ### Java or Scala Version
   
   java 
   
   openjdk version "11.0.1" 2018-10-16
   OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
   OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
   
   ### Screenshots
   
   
![image](https://user-images.githubusercontent.com/113419802/216301139-08a457ff-ed65-4422-847e-c7522a3ab1aa.png)
   
![1](https://user-images.githubusercontent.com/113419802/216301778-bfba3e1f-c1c2-4927-9e71-b192b1734dc5.png)
   
![2](https://user-images.githubusercontent.com/113419802/216301779-c2f20222-dd44-463e-a47d-5b82668637f2.png)
   
![3](https://user-images.githubusercontent.com/113419802/216301784-8b4c0843-89d4-483b-9b11-9bf0940853c5.png)
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to