Skip to main content
13-Aquamarine
November 7, 2024
Solved

extension for converting csv files to parquet fails on Thigworx 9.6 installed on kubernetes

  • November 7, 2024
  • 3 replies
  • 891 views

The extension uses the org.apache.parquet library and writes the parquest file to Thingworx repositories. The service works correctly if Thingworx is installed on a Virtual machine. The service fails to write the file to Thingworx repositories if Thingworx is installed on kubernetes containers. In particular the extension fails by going to do a chmod 644 on the file to define the correct privileges. Has anyone had the same problem? Are there any solutions to the problem?

Thanks

Dimitri

Best answer by slangley

Hi @dbologna 

 

Per the case you opened, you were able to develop a new extension for resolving your issues.  If you would like to share more information regarding your fix, please feel free to post it here.

 

Regards.

 

--Sharon

3 replies

16-Pearl
November 7, 2024

This seems specific to how the ThingWorxStorage PVC is mounted in the PTC Cloud. We are aware that you have opened a case and are currently investigating.

18-Opal
November 7, 2024

Hello Dimitri,

 

Just a guess -- some k8s implementations (notably Openshift) do not grant container user root permissions. I guess you mount /ThingworxStorage as a Persistent Volume. In this case you need to specify user IDs explicitly on your pods and volumes, to grant non-root users write access to such mount, as described here.

 

Also, a pretty obvious tip -- try to log into ThingWorx pod and check permissions on the /ThingworxStorage/repository directory itself.

 

/ Constantine

slangleyCommunity ManagerAnswer
Community Manager
March 4, 2025

Hi @dbologna 

 

Per the case you opened, you were able to develop a new extension for resolving your issues.  If you would like to share more information regarding your fix, please feel free to post it here.

 

Regards.

 

--Sharon