palo小批量導入

palo小批量導入可以通過mysql client連接palo後,通過help mini load來查看:
    主要有如下幾種方式
    (1) 將本地文件'testData'中的數據導入到數據庫'testDb'中'testTbl'的表(用戶是defalut_cluster中的)
           curl --location-trusted -u root -T testData http://host:port/api/testDb/testTbl/_load?label=123
    (2) 將本地文件'testData'中的數據導入到數據庫'testDb'中'testTbl'的表(用戶是test_cluster中的)
           curl --location-trusted -u root@test_cluster:root -T testData http://fe.host:port/api/testDb/testTbl/_load?                           label=123
    (3) 將本地文件'testData'中的數據導入到數據庫'testDb'中'testTbl'的表, 允許20%的錯誤率(用戶是defalut_cluster中的)
           curl --location-trusted -u root -T testData http://host:port/api/testDb/testTbl/_load?label=123                                          \&max_filter_ratio=0.2
    (4) 將本地文件'testData'中的數據導入到數據庫'testDb'中'testTbl'的表, 允許20%的錯誤率,並且指定文件的列名(用戶是                defalut_cluster中的)
           curl --location-trusted -u root -T testData http://host:port/api/testDb/testTbl/_load?label=123                                           \&max_filter_ratio=0.2\&columns=k1,k2,k3
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章