tools/stream_load/README.md
stream load import tools ( multi-threading parallel ) , expect memory use in 500M no matter file size
First , you need to install jdk , and run the script
./stream-load-import.sh --url=http://{fe_ip}:{fe_http_port}/api/{database_name}/{table_name}/_stream_load \
--source_file=/file/path/name.csv \
--H=column_separator:, \
--u=sr_username:sr_password
Necessary:
fe url , it should contain protocol and so on, not be redirect urlOptional:
--enable_debug=true--max_threads=16--timeout=5000-Xmx--H=column_separator:,,column_separator as key,,as valueOther:
When appear error a certain thread, other normal thread transaction will not rollback
Currently, you need ensure your file not contain error data,and can clear table
We are realizing union transaction , it can resolve this problem