Mass insertion to redis does not work on windows

751 views
Skip to first unread message

Shay Yannay

unread,
Dec 29, 2014, 5:18:48 AM12/29/14
to redi...@googlegroups.com
Hi,
i am not able to use redis protocol for mass insertion in windows.
 
I tried the following command:
type protocolOutput.txt | redis-cli.exe --pipe

where protcolOutput.txt content is (\r\n at the end of each line):
*3
$3
SET
$3
key
$5
value

The output i get is: ERR Protocol error: invalid multibulk length

You assistance i highly appreciated hitting rock bottom on that....

Marc Gravell

unread,
Dec 29, 2014, 8:24:37 AM12/29/14
to redi...@googlegroups.com
Is this using the redis-64 Microsoft package? If so yes - "ack" - it looks like there is something broken; your best bet is to contact the MS team directly.

In the interim - any tool that can send file contents as a raw TCP dump should work fine - you don't need anything special to talk to redis - as long as you don't expect it to detect redis errors and stop sending! Worst case, you can hack something crude together by hand (terrible C# example http://pastie.org/9803615)

Marc

Shay Yannay

unread,
Jan 1, 2015, 10:37:25 AM1/1/15
to redi...@googlegroups.com
Thanks Marc that was my feeling about the windows installation
I'll check the link you mentioned.

Alexis Campailla

unread,
Jan 6, 2015, 2:35:59 PM1/6/15
to redi...@googlegroups.com
Thanks for reporting this issue, Shay. 

I just published a new release that contains a fix: https://github.com/MSOpenTech/redis/releases/tag/win-2.8.17.3 
It's not available through nuget or chocolatey yet. You'll have to download the .zip and extract the binaries.

In the future feel free to report any issues with the Windows port through the GitHub issues page.

-Alexis (MSOpenTech)
Reply all
Reply to author
Forward
0 new messages