我试图导入CSV或JSON文件以重新考虑DB,但我总是得到相同的错误:
rethinkdb import -f ~/Downloads/convertcsv.json --table test.stats --format json
[ ] 0%
0 rows imported in 1 table
'indexes'
In file: /home/xxxxx/Downloads/convertcsv.json
Errors occurred during import我没有在日志中看到任何东西,在我的笔记本电脑上也看不到相同的文件导入ok。Import创建表,但仅此而已。
我的系统:-列表项目-Ubuntu10.10-Python2.7.8- rethinkdb 1.16.0+1~0utopic (GCC 4.9.1)
已经尝试重新安装RethinkDB,sudo pip2 install --upgrade rethinkdb。不知道我还能做什么。
发布于 2015-02-05 16:21:35
在添加辅助索引的导出/导入时,这似乎是一个疏忽--导入脚本正在寻找信息中的indexes字段,在导入单个文件时不存在该字段。可以通过提供标志--no-secondary-indexes来解决这个问题。RethinkDB Python版本1.16.0-2中发布了一个修复程序,有关详细信息,请参阅Github发布#3278。
https://stackoverflow.com/questions/28325600
复制相似问题