Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rerun Scala code with -deprecation using Apache Zeppelin

I am using a Zeppelin notebook to create a Spark script in Scala.

Code:

def test: DataFrame= {

     //code

}

I am getting the following warning:

warning: there was one deprecation warning; re-run with -deprecation for details.

Any suggestions of how to run the function with "-deprecation"?

PS. I'm not asking about the warning which will require the complete code of the function. I'm looking for suggestions on how to rerun the function with the depreciation parameter in a zeppelin notebook. Existing solutions for this question covers only running in SBT.

like image 467
data_person Avatar asked Mar 07 '19 22:03

data_person


1 Answers

In the Spark interpreter settings in Zeppelin there is a "args" property that can be set. This corresponds to Spark commandline arguments which is what to change in this case. More infomration about possible configurations can be found in the documentation here.

In short, add "-deprecation" as value for the args property and you will be able to see the details.

like image 170
Shaido Avatar answered Sep 23 '22 15:09

Shaido