AnsweredAssumed Answered

MapR PACC and Environmental Variables

Question asked by ryanvictory on Apr 6, 2017
Latest reply on Apr 11, 2017 by ryanvictory

We are exploring the MapR PACC Docker Image for deploying models in a distributed processing environment. We have run into an issue, it appears that the MapR PACC performs a user switch (if MAPR_CONTAINER_USER is not "root") in such a way that does not transfer over the environment from the original root user that the container starts as to the final user the container will run as.

 

This causes some serious issues if you use the Environment to configure your final application, say a model that needs to know its input topics and stream and perhaps other configuration information. Am I missing something or is this a bug in the way MapR implemented the PACC?

 

As a workaround, we are currently setting the MAPR_CONTAINER_USER to root on start and then manually performing the `su` after MapR has configured itself.

Outcomes