我正在使用MOSQL在postgres中创建mongodb数据库的实时数据库副本。我安装了所有要求。
我在终端中运行了我的mosql查询:
mosql -c coll.yaml --sql postgres://postgres:postgres@localhost:5432/test --mongo mongodb://localhost:27017/
我的mongodb系列:
{
"_id" : ObjectId("562dd2ef5bd6681ad0f63868"),
"name" : "manish",
"score" : 23,
"class" : "Engg"
}
...
我的coll.yaml:
Flipkart:
temp:
:columns:
- name: TEXT
- score: INTEGER
- class: TEXT
:meta:
:table: temp
:extra_props: true
错误
/usr/lib/ruby/1.9.1/psych.rb:203:in
parse': (coll.yaml): found character that cannot start any token while scanning for the next token at line 2 column 1 (Psych::SyntaxError) from /usr/lib/ruby/1.9.1/psych.rb:203:in
parse_stream' 来自/usr/lib/ruby/1.9.1/psych.rb:151:inparse' from /usr/lib/ruby/1.9.1/psych.rb:127:in
load' 来自/usr/lib/ruby/1.9.1/psych.rb:297:inblock in load_file' from /usr/lib/ruby/1.9.1/psych.rb:297:in
open' 来自/usr/lib/ruby/1.9.1/psych.rb:297:inload_file' from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/cli.rb:140:in
load_collections' from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/cli.rb:152:inrun' from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/cli.rb:16:in
run' 来自/var/lib/gems/1.9.1/gems/mosql-0.4.3/bin/mosql:5:in<top (required)>' from /usr/local/bin/mosql:23:in
load' 来自/ usr / local / bin / mosql:23:in''
如何删除错误?