0

I am trying to insert millios of rows to redis . I gone through the redis massinsertion tutorials and tried

cat data.txt | python redis_proto.py | redis-cli -p 6321 -a "myPassword" --pipe

here the redis_proto.py is the python script which reads the data.txt and convert to redis protocol.

I got some error like as below

All data transferred. Waiting for the last reply... NOAUTH Authentication required. NOAUTH Authentication required.

any help or suggestions would be appreciated ?

John Deep
  • 161
  • 1
  • 2
  • 10

2 Answers2

1

I guess in your password there will be "$". If it is remove that It will work.

keshaw
  • 1,215
  • 2
  • 10
  • 13
1

I think you can add password in the connectionpool parameters like this :

pool=redis.ConnectionPool(host=redis_host,port=int(redis_port),db=int(redis_db),password=redis_pass)
Saeed
  • 3,294
  • 5
  • 35
  • 52
james.peng
  • 373
  • 1
  • 3
  • 13