<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mongodb schema retrieving in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-schema-retrieving/m-p/2221238#M15323</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using Talend Big Data 6.4 and MongoDB 3.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to retrieve d&lt;SPAN&gt;ata from database other than the authentification one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The username that I have needs to connect through the admin database. And data I need to retrieve is in another one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In my db connection in metadata, I get an error when I leave the database field as blank.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The error I get is :&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;{ "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;But when&amp;nbsp;&amp;nbsp;I connect to the serverr with my username through mongo shell, I can execute this command on admin database:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="nx"&gt;db&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;adminCommand&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;listDatabases&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt; &lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. I can connect when I set admin as database in connection creation form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Nader&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:34:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:34:33Z</dc:date>
    <item>
      <title>Mongodb schema retrieving</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-schema-retrieving/m-p/2221238#M15323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using Talend Big Data 6.4 and MongoDB 3.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to retrieve d&lt;SPAN&gt;ata from database other than the authentification one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The username that I have needs to connect through the admin database. And data I need to retrieve is in another one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In my db connection in metadata, I get an error when I leave the database field as blank.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The error I get is :&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;{ "serverUsed" : "*******" , "ok" : 0.0 , "errmsg" : "not authorized on admin to execute command { listDatabases: 1 }" , "code" : 13 , "codeName" : "Unauthorized"}&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;But when&amp;nbsp;&amp;nbsp;I connect to the serverr with my username through mongo shell, I can execute this command on admin database:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="nx"&gt;db&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="nx"&gt;adminCommand&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt; &lt;SPAN class="nx"&gt;listDatabases&lt;/SPAN&gt;&lt;SPAN class="o"&gt;:&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt; &lt;SPAN class="p"&gt;}&lt;/SPAN&gt; &lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. I can connect when I set admin as database in connection creation form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Nader&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-schema-retrieving/m-p/2221238#M15323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mongodb schema retrieving</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Mongodb-schema-retrieving/m-p/2221239#M15324</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;You need have the correct rights when using MongoDB with authentication.&lt;/P&gt; 
&lt;P&gt;We have a similiar jira issue here:&lt;A title="https://jira.talendforge.org/browse/TBD-3405" href="https://jira.talendforge.org/browse/TBD-3405" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TBD-3405&lt;/A&gt; and it has been set as "&lt;SPAN class="value resolved"&gt;Is not a Bug &lt;/SPAN&gt;".&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 07:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Mongodb-schema-retrieving/m-p/2221239#M15324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-28T07:46:50Z</dc:date>
    </item>
  </channel>
</rss>

