Details
Description
1. Download 5.0 Community edition for mac os 64bit
2. Install server on mac 10.12.6
3. Initialize single node cluster with all services enabled
4. Create a simple json doc:
{
|
"glossary": {
|
"title": "example glossary",
|
"GlossDiv": {
|
"title": "S",
|
"GlossList": {
|
"GlossEntry": {
|
"ID": "SGML",
|
"SortAs": "SGML",
|
"GlossTerm": "Standard Generalized Markup Language",
|
"Acronym": "SGML",
|
"Abbrev": "ISO 8879:1986",
|
"GlossDef": {
|
"para": "A meta-markup language, used to create markup languages such as DocBook.",
|
"GlossSeeAlso": ["GML", "XML"]
|
},
|
"GlossSee": "markup"
|
}
|
}
|
}
|
}
|
}
|
5. Load this json using cbdocloader - error thrown:
Couchbases-MacBook-Pro-17:bin a.senthilnathan$ ./cbdocloader -c 127.0.0.1:8091 -u Administrator -p password -b default -d ~/Desktop/data.json -m 512 -v
|
2017/10/26 19:25:02 Creating `default` bucket
|
2017/10/26 19:25:08 Bucket `default` created
|
2017/10/26 19:25:08 Reading view definitions from /Users/a.senthilnathan/Desktop/data.json
|
2017/10/26 19:25:08 ERRO: Recieved error 405 while executing "PUT http://127.0.0.1:8091/couchBase/default/" -- docloader.(*jsonSampleImporter).Views() at sample_importer.go:129
|
2017/10/26 19:25:08 Loading data into the default bucket
|
2017/10/26 19:25:08 Loaded 1 items into the default bucket
|
Errors occurred during the view creation phase. See logs for details.
|
6. Document created in the bucket though - screenshot attached