Home » JVM Languages » Scala

Scala

Database Initialization with play and Scala

Once starting your play prototype application one of the priorities is to initialize your database and also manage the database schema changes. Play provides us with evolutions. By utilizing evolutions we are able to create our database and to manage any futures changes to the schema. To get started we need  to add the jdbc dependency and the evolutions dependency. libraryDependencies ...

Read More »

Your first Web application with Play and Scala

Today we are going to develop a simple play application using Scala. To do so we must have sbt installed to our system. Once installed we issue the command sbt new playframework/play-scala-seed.g8 Then we are presented with an interactive terminal in order to pass valuable information. name [play-scala-seed]: PlayStarter organization [com.example]: com.gkatzioura scala_version [2.11.8]: scalatestplusplay_version [2.0.0]: play_version [2.5.13]: Then let ...

Read More »

A journey with Scala

To those who are regular visitors of this blog, it is well known that when it comes to developing code I am a Spring/Java guy. Also I use different technologies like node or python but this depends largely on the project’s needs. Due to some recent projects and courses involving Spark, stumbling on Scala was inevitable. After some investigation I decided ...

Read More »

WordCount with Storm and Scala

Apache Storm is a free and open source distributed realtime computation system running on the JVM. To get started we will implement a very simple example. Previously we implemented a word count hadoop job using scala and we uploaded it to hdinsight. We will focus on the same word count concept but for real time cases and implement a word ...

Read More »

Run Scala implemented Hadoop Jobs on HDInsight

Previously we set up a Scala application in order to execute a simple word count on hadoop. What comes next is uploading our application to HDInsight. So we shall proceed in creating a Hadoop cluster on HDInsight.               Then we will create the hadoop cluster. As you can see we specify the admin console ...

Read More »

WordCount on Hadoop with Scala

Hadoop is a great technology built with java. Today we will use Scala to implement a simple map reduce job and then run it using HDInsight. We shall add the assembly plugin on our assembly.sbt addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3") Then we will add the Hadoop core dependency on our build.sbt file. Also will we apply some configuration in the ...

Read More »

Deploying akka-http app to Cloud Foundry

In a preceding post I had gone over the steps to deploy a simple akka-http app to Cloud Foundry. The gist of it was that as long there is a way to create a runnable fat(uber) jar, the deployment is very straightforward – Cloud Foundry’s Java buildpack can take the bits and wire up everything needed to get it up an running in ...

Read More »

Deploying akka-http app to Cloud Foundry

It is easy to deploy an akka-http application to Cloud Foundry. I experimented with a few variations recently and will cover ways to deploy an Akka-http based REST app in two parts – first a simple app with no external resource dependencies, the second a little more complex CRUD app that maintains state in a MySQL database. Pre Requisites A quick way to ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns