Ich habe kürzlich Couchbase 4.5 beta auf Windows 10 installiert. Ich folge den kostenlosen Trainingsvideos und Labs unter learn.couchbase.com, speziell dem CB110-Kurs.Couchbase cbdocloader lädt keine Dokumente aus der Zip-Datei
Ein Schritt im Labor erfordert, dass ich Probendaten mit cbdocloader laden. Ich habe das vorher mit der Entwicklervorschau von Couchbase 4.5 gemacht und es hat gut funktioniert, aber jetzt werden keine Dokumente geladen.
Erzeugt den Bucket, lädt aber keine Dokumente hinein. Hier ist meine Powershell-Ausgabe:
PS C:\Users\mgroves\Desktop> cbdocloader -u Administrator -p password -b couchmu
sic1 -n 127.0.0.1:8091 -s 100 .\couchmusic1-countries-20151228-win.zip
[2016-05-12 10:23:50,480] - [rest_client] [6240] - INFO - existing buckets : [u'
couchmusic1', u'hello-couchbase', u'travel-sample']
[2016-05-12 10:23:50,496] - [rest_client] [6240] - INFO - found bucket couchmusi
c1
bucket creation is successful
.
bucket: couchmusic1-countries-20151228-win.zip, msgs transferred...
: total | last | per sec
byte : 0 | 0 | 0.0
done
PS C:\Users\mgroves\Desktop>
ich eine der Zip-Dateien vorgenommen habe, auf Dropbox zur Verfügung, wenn Sie möchten, um zu versuchen: couchmusic1-countries-20151228.zip
Ich vermute, dies ist wahrscheinlich Anwenderfehler und nicht im Zusammenhang mit der Couchbase Release, aber ich weiß es nicht genau.
UPDATE: Ich lief mit dem Flag -v (v für "verbose"), und unten ist die Ausgabe von diesem. Ich sehe noch nicht, was das Problem ist:
PS C:\Users\mgroves\Desktop> cbdocloader -u Administrator -p password -b couchmu
sic1 -n 127.0.0.1:8091 -s 100 -v .\couchmusic1-countries-20151228-win.zip
[2016-05-12 10:40:06,549] - [rest_client] [7764] - INFO - existing buckets : [u'
couchmusic1', u'hello-couchbase', u'travel-sample']
[2016-05-12 10:40:06,561] - [rest_client] [7764] - INFO - found bucket couchmusi
c1
bucket creation is successful
2016-05-12 10:40:06,594: mt cbtransfer...
2016-05-12 10:40:06,595: mt source : json://.\couchmusic1-countries-20151228-wi
n.zip
2016-05-12 10:40:06,605: mt sink : http://127.0.0.1:8091
2016-05-12 10:40:06,612: mt opts : {'username': '<xxx>', 'destination_vbucket
_state': 'active', 'verbose': 1, 'extra': {'max_retry': 10.0, 'rehash': 0.0, 'dc
p_consumer_queue_length': 1000.0, 'data_only': 0.0, 'uncompress': 0.0, 'nmv_retr
y': 1.0, 'conflict_resolve': 1.0, 'cbb_max_mb': 100000.0, 'report': 5.0, 'mcd_co
mpatible': 1.0, 'try_xwm': 1.0, 'backoff_cap': 10.0, 'batch_max_bytes': 400000.0
, 'report_full': 2000.0, 'flow_control': 1.0, 'batch_max_size': 1000.0, 'seqno':
0.0, 'design_doc_only': 0.0, 'recv_min_bytes': 4096.0}, 'ssl': False, 'threads'
: 4, 'key': None, 'password': '<xxx>', 'id': None, 'destination_operation': None
, 'source_vbucket_state': 'active', 'silent': False, 'dry_run': False, 'single_n
ode': False, 'bucket_destination': 'couchmusic1', 'vbucket_list': None, 'bucket_
source': None}
2016-05-12 10:40:06,726: mt bucket: couchmusic1-countries-20151228-win.zip
2016-05-12 10:40:06,749: w3 source : json://.\couchmusic1-countries-20151228-w
in.zip([email protected]/A)
2016-05-12 10:40:06,760: w3 sink : http://127.0.0.1:8091(couchmusic1-countri
[email protected]/A)
2016-05-12 10:40:06,767: w3 : total | last | pe
r sec
2016-05-12 10:40:06,772: w3 batch : 1 | 1 |
28.6
2016-05-12 10:40:06,776: w3 byte : 0 | 0 |
0.0
2016-05-12 10:40:06,779: w3 msg : 0 | 0 |
0.0
.
bucket: couchmusic1-countries-20151228-win.zip, msgs transferred...
: total | last | per sec
batch : 1 | 1 | 8.0
byte : 0 | 0 | 0.0
msg : 0 | 0 | 0.0
done
PS C:\Users\mgroves\Desktop>
Ein Link zum Update ist hier unten. Es ist eine einzeilige Änderung, die Sie in /opt/couchbase/lib/python/pump_json.py anwenden können, um dieses Problem in der Beta zu lösen. Dieser Fix wird in der GA enthalten sein. http://review.couchbase.org/#/c/63985/1/pump_json.py – mikewied