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:ย 

How do I run a scala script from the Terminal

Zen
New Contributor III

Hello,

how do I run a scala script from a Terminal on Databricks - Web Terminal, or from a cell with %sh

just doing `scala -nc script.scala` is not working.

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions

User16753724663
Valued Contributor

Hi @Zenโ€‹ 

the web terminal is basically used for shell commands only and specific to driver node only.

You can install the scala on top of the driver node from web terminal with below command and use it:

% sudo apt install scala

Please let me know if this helps.

Regards,

Darshan

View solution in original post

4 REPLIES 4

Zen
New Contributor III

thank you @Kaniz Fatmaโ€‹  - unfortunately, I haven't gotten a response for this - it'd help me greatly if you could help with this question, thanks

Zen
New Contributor III

thank you @Kaniz Fatmaโ€‹  , some additional info about this. I tried the suggestions here:

https://forums.databricks.com/questions/63537/how-do-you-start-a-spark-shell-on-the-cluster-mast.htm...

but got the same errors as in the link

Zen
New Contributor III

Hi @Kaniz Fatmaโ€‹  - I'm following up to check if you were able to find any information on my question. I'd greatly appreciate your help - thank you,

User16753724663
Valued Contributor

Hi @Zenโ€‹ 

the web terminal is basically used for shell commands only and specific to driver node only.

You can install the scala on top of the driver node from web terminal with below command and use it:

% sudo apt install scala

Please let me know if this helps.

Regards,

Darshan

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