I have a MongoDB installed in the ec2 machine, which has around 50 databases. I have set up a Bi connector in order to connect to the tableau.
But it is only mapping up to 4000 tables, and because of that it's not mapping all the dbs.
Here's the mongosqld.conf file
systemLog:
path: '/logs/mongosqld.log'
security:
enabled: true
mongodb:
net:
uri: "mongodb://127.0.0.1:27017/"
auth:
username: <USERNAME>
password: <PASSWORD>
net:
bindIp: 0.0.0.0
port: 3307
ssl:
mode: "allowSSL"
PEMKeyFile: '<PATH>'
Here's the logs:
2020-11-26T12:33:44.645+0000 I SCHEMA [sampler] max num global tables (4000) reached: not mapping any more tables
2020-11-26T12:33:44.645+0000 I SCHEMA [sampler] max num global tables (4000) reached: not mapping any more tables
2020-11-26T12:33:44.646+0000 I SCHEMA [sampler] max num global tables (4000) reached: not mapping any more tables
2020-11-26T12:33:44.646+0000 I SCHEMA [sampler] max num global tables (4000) reached: not mapping any more tables
2020-11-26T12:33:44.646+0000 I SCHEMA [sampler] max num global tables (4000) reached: not mapping any more tables
2020-11-26T12:33:44.646+0000 I SCHEMA [sampler] mapped schema for 424 namespaces: "cust" (12):<NAMESPACES>]
2020-11-26T12:37:55.295+0000 I NETWORK [conn1] connection accepted from <IPADDRESS>:60554 #1 (1 connection now open)
2020-11-26T12:37:55.298+0000 I NETWORK [conn1] end connection <IPADDRESS>:60554 (0 connections now open)
2020-11-26T12:44:02.262+0000 I NETWORK [conn2] connection accepted from <IPADDRESS>:60568 #2 (1 connection now open)
2020-11-26T12:49:31.462+0000 I NETWORK [conn3] connection accepted from <IPADDRESS>:60574 #3 (2 connections now open)
I found max num global tables (4000) reached
is the problem, and I found in here how to set the variables. I tried it using mysql client and when I changed its changing in mysql "show varaiables;" command, but when I restart BI connector and then check mysql client, its again showing 4000.
How to change global system variable max_num_global_tables
in BI connector?