Spark Input Formats And Parallel factor
Spark Input Formats And Parallel factor
Spark Input Formats And Parallel factor
In the previous blog we showed how to convert java object to json. In this post we will show how to create java object from json using Jackson library.
In this example we will show you how to convert java object to JSON using Jackson library.
In the previous blog we showed how to convert java object to json. In this post we will show how to create java object from json using GSON library.
In this example we will show you how to convert java object to JSON using Gson library. Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object.
Transition From MapReduce To Spark
In this blog we will insert a record into the database using Statement. For this we need to add following dependencies into our pom.xml. Continue Reading
In the previous post we saw how to create table with Statement. And now we will create the table with PreapareStatement.
In this example we can see how we can create a table with jdbc statement. In the pom.xml we need to add following two dependencies:
In this example I will show how to connect to mysql with JDBC driver. Let’s create the maven project with following pom.xml