Created 04-18-2016 02:03 AM
I am a newbie to ambari and HDP, currently playing on HDP2.4, I have gone through a couple of sample exercises mentioned in hortonworks pages, given my interest/focus is on Spark, I understand that I can write spark code in Zepplin-notebook, the exercises that I went through were already in Scala.
Given that I hail from java background,
1) Is it possible to write/run spark code in java on zepplin or any other workaround?
2) Could anyone link me to good starter-intermediate spark examples/questions (not necessarily Java)?
Many thanks in advance,
Naveen
Created 04-18-2016 05:06 PM
Zeppelin comes with a long list of interpreters (including Spark/Scala, Python/Pyspark, Hive, Cassandra, SparkSQL, Phoenix, Markdown and Shell), which basically provide language binding to run code that you type into a notebook cell. Currently, the list of interpreters does not include Java, so you will need to compile your code first and build a jar file, which can be submitted to Spark via spark-submit, as described here:
http://spark.apache.org/docs/latest/submitting-applications.html
Created 04-18-2016 05:56 AM
For Spark on HDP, please check HDP Spark Guide. For general Spark programming check Spark Programming Guide with all examples given in Scala, Java, and Python. If you want to program in Java you need a development environment like Eclipse or IntelliJ.
Created 04-23-2016 01:04 AM
Thanks for the reply, gives me a good start, on that node, is it possible to add GUI to the HDP VM and install intelliJ there?
Created 04-18-2016 05:06 PM
Zeppelin comes with a long list of interpreters (including Spark/Scala, Python/Pyspark, Hive, Cassandra, SparkSQL, Phoenix, Markdown and Shell), which basically provide language binding to run code that you type into a notebook cell. Currently, the list of interpreters does not include Java, so you will need to compile your code first and build a jar file, which can be submitted to Spark via spark-submit, as described here:
http://spark.apache.org/docs/latest/submitting-applications.html
Created 04-23-2016 01:09 AM
good to know, thanks for the sharing that information.