(本文档仅供参考)
问题
自助数据集抽取失败,显示 Caused by: smartbix.SmartbiXException: 抽取未完成或抽取失败: 文件监听线程异常 :java.io.IOException: User limit of inotify instances reached or too many open files
解决方案
1、修改SmartbiMPP数据库所在机器的句柄数大小,具体可以参考Wiki文档:解决Too many open files异常
2、调整SmartbiMPP所在机器上实例数的大小,因为/proc/sys/fs/inotify/max_user_instances 默认值“128”的话安卓容器只能打开64个,执行命令如下:
echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf
echo "fs.inotify.max_user_instances=8192" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
修改后需要重启SmartbiMPP服务。