cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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

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!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group