cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there the possibility to protect Init script folder on DBFS

MarcoData01
New Contributor III

Hi everyone,

We are looking for a way to protect the folder where init script is hosted from editing.

This because we have implemented inside init script a parameter that blocks the download file from R Studio APP Emulator and we would like to avoid that any user edit it.

Is there a way to reach this goal?

thanks so much

1 ACCEPTED SOLUTION

Accepted Solutions

MarcoData01
New Contributor III

we have solved using global init script but in another way. We have write a script that overwrite the init script on DBFS.

So if someone edit the script at new restart this will be owerwritten by the original.

It's a workaround but it works and we don' t have to install R Studio on all clusters.

View solution in original post

6 REPLIES 6

Hubert-Dudek
Esteemed Contributor III

I think the only solution is to use a global init script. Then, only the admin can edit the Global init setting, and you can paste your code there so it will not be on file on dbfs.

Prabakar
Esteemed Contributor III
Esteemed Contributor III

Yes, the only option is to use the global init script as it is restricted to admins. But it will run on all clusters even if it doesn't require R studio. 😐

MarcoData01
New Contributor III

exact, we'd like to avoid install R Emulator on all clusters

Hubert-Dudek
Esteemed Contributor III

so you can consider having a separate Databricks workspace (set-up) for R servers (hive metastore and mounts can be shared)

MarcoData01
New Contributor III

we have solved using global init script but in another way. We have write a script that overwrite the init script on DBFS.

So if someone edit the script at new restart this will be owerwritten by the original.

It's a workaround but it works and we don' t have to install R Studio on all clusters.

Anonymous
Not applicable

Hi @Marco Data​ 

Thank you for sending in your question. It is awesome that you found a solution. Would you like to mark the answer as best so others can find the solution quickly?

Cheers!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.