wyz0130 opened a new issue, #34567:
URL: https://github.com/apache/doris/issues/34567

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   doris 2.0.9 2.1.2
   
   ### What's Wrong?
   
   使用 OUTFILE 导出到hdfs 上面,设置session变量set enable_parallel_outfile = true; 
可以正常并发导出,设置success_file_name 后,hdfs的文件还没有导出完成,success_file就已经生成好了
   
   
   ### What You Expected?
   
   如何导出完成后 在生成这个成功文件
   
   ### How to Reproduce?
   
   1、set  enable_parallel_outfile = true;
   2、set  parallel_fragment_exec_instance_num = 3;
   3、创表
   CREATE TABLE `test1` (
     `id` int(11) NULL,
     `name` varchar(500) NULL,
     `age` DECIMAL(10, 2) NULL,
     `address` boolean NULL,
     `create_date` date NULL,
     `update_date` datetime NULL
   ) ENGINE=OLAP
   DUPLICATE KEY(`id`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`id`) BUCKETS 10
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "is_being_synced" = "false",
   "storage_format" = "V2",
   "light_schema_change" = "true",
   "disable_auto_compaction" = "false",
   "enable_single_replica_compaction" = "false"
   ); 
   
   4、导出
   SELECT * FROM test1
   INTO OUTFILE "hdfs://192.168.31.129:9820/doris/"
   FORMAT AS CSV
   PROPERTIES
   (
       "fs.defaultFS" = "hdfs://192.168.31.129:9820",
        "hadoop.username" = "wyz",
        "column_separator" = ",",
         "success_file_name" = "c1",
        "line_delimiter" = "\n"
   );
   5、结果
   
![7df9c52831a1e1109f60786c24a2506](https://github.com/apache/doris/assets/79512358/2ae55ca9-f594-4fbf-91b1-7a5c165f3c55)
   
   
   
   ### Anything Else?
   
   _No response_
   
   ### 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to