1. which hadoop version support both mongodb and rdbs?
我相信所有支持MongoDB的Hadoop版本都支持RDBMS(RDBMS實現早於MongoDB)。
Hadoop的支持的版本,MongoDB的使用,請參閱:Building the Adapter。檢查版本信息,因爲某些Hadoop版本不支持Streaming Connector(即,如果您想用非JVM語言(如Python)編寫作業)。
2. Is it possible to use multiple collections as input...?
If possible, how we can do that?
的MongoDB的Hadoop連接器V1.0.0不支持多個集合作爲輸入,但也有在社會上這方面的工作了幾個人(參見:Feature/multiple inputs)。
3. I tried mongodb query in hadoop,It's working fine. But when i defined
sort or limit... It is not working properly..even it's not fetching data
from mongodb...
你能提供一個你如何/在哪裏提供這些選項的例子嗎?您是指mongo.input.sort
和mongo.input.limit
屬性?
你可能想嘗試啓用MongoDB中的Database Profiler確認查詢被髮送:
db.setProfilingLevel(2)
你能否提供一些更多的信息,如Hadoop和MongoDB的Hadoop的連接器的版本,您正在使用?查詢和任何特定錯誤的例子也可能有助於某人確定哪些不起作用。 – Stennie