francisoliverlee opened a new issue #5486:
URL: https://github.com/apache/incubator-doris/issues/5486


   **Describe the bug**
   Broker export Duplicate data to hdfs
   
   **To Reproduce**
   - create table sql
     ```sql
     CREATE TABLE `vk_dwd_9m_kpi_new_da` (
       `xxxxxxx` varchar(50) NULL COMMENT "",
       `type` varchar(50) NULL COMMENT " ",
       `kpi` varchar(50) NULL COMMENT "",
       `channel1` varchar(50) NULL COMMENT "",
       `channel2` varchar(50) NULL COMMENT "",
       `target` decimal(18, 4) NULL COMMENT " ",
       `mtd_target` decimal(18, 4) NULL COMMENT " "
     ) ENGINE=OLAP
     DUPLICATE KEY(`xxxxxxx`)
     COMMENT "OLAP"
     DISTRIBUTED BY HASH(`xxxxxxx`) BUCKETS 3
     PROPERTIES (
     "replication_num" = "3",
     "in_memory" = "false",
     "storage_format" = "DEFAULT"
     );
     ```
   - export sql
     ```sql
     EXPORT TABLE vk_dw.vk_dwd_9m_kpi_new_da TO 
"hdfs://vipkidcold/user/lixinshang/" 
     PROPERTIES
     (
         "exec_mem_limit"="2147483648",
         "timeout" = "3600",
         "column_separator"="$"
     )
     WITH BROKER "hdfs_broker"
     (
     "hadoop.security.authentication" = "simple",
     "username" = "xxxx",
     "password" = "xxxxxx+CS",
     "dfs.nameservices" = "vipkidcold",
     "dfs.ha.namenodes.vipkidcold" = "nn1,nn2",
     "dfs.namenode.rpc-address.vipkidcold.nn1" = "l-xxxxxx:8020",
     "dfs.namenode.rpc-address.vipkidcold.nn2" = "l-xxxxx2:8020"
   
     ```
   
   - wrong result on hdfs: checked, same rows in those hdfs files
     
   ![Uploading image.png…]()
   
   - right result on hdfs(use another account to try)
     
![image](https://user-images.githubusercontent.com/5908412/110325275-156bec00-8052-11eb-9dc5-0026cd5e0165.png)
   
   **Expected behavior**
   
   
   **Smartphone (please complete the following information):**
    - Version : 0.12.21
   
   i doublt : exec plan wrong.
   


----------------------------------------------------------------
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.

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