Setting up Dashboards and Flow export to PDF or images¶
The Flow and Dashboards can be exported to PDF or image (PNG, JPG) files in order to propagate information inside your organization more easily. The export feature must be setup prior to being usable.
- The export feature does not work on Centos 6 and AmazonLinux
- Internet access is required to install additional dependencies required by the export feature
- The account running DSS needs write access to the DSS installation directory at install time;
The export feature uses an embedded Chrome browser to perform the actual snapshotting. When you install the feature, an up-to-date Chrome browser is downloaded. We recommend that you regularly perform again the install procedure in order to fetch latest updates, which may be required since Chrome regularly releases security updates.
Security updates of the embedded Chrome browser are not the responsibility of Dataiku.
The embedded Chrome browser is in the
resources/graphics-export/node_modules folder of the DSS installation directory. In case of doubt, you can remove this folder, which will prevent the feature from working.
As of DSS 5.1, this will download and install puppeteer 1.10 and its associated headless chromium version (72.0).
Go to the DSS data dir
Run the installation script
If prompted to, run the dependencies installation script as root
Test the feature by going to a dashboard, in view mode, and clicking Actions > Export. Alternatively you can test the feature by going to the Flow of a project and clicking Flow Actions > Export to PDF/Image
If you get an error about sandbox mode, it means that the embedded Chrome browser could not start in the most secure “sandbox” mode
Option 1: Enable user namespaces¶
The sandbox mode of Chrome runs using a feature of the Linux kernel known as user process namespaces. This feature is not always enabled, you may need to enable it.
Run the following command:
If the result is 0, run the following command as root:
Then retry exporting the Flow or dashboard
Option 2: Disable sandbox¶
If you are not able to run the previous, or if it fails (which may be possible if you have a too old kernel), you can disable the additional sandbox protection. The sandbox is a “second level” of security to mitigate exploitation possibilities in case of a security bug in Chrome.
- Edit the
- Add the following line:
- Restart DSS