Thanks for letting me know… I have started using spark2.0.1…
But i am facing lot of issues while using the 2.0.1 wherein i was able to perform below command s successfully on 1.5.2. Please guide me…
scala> val data = sc.textFile(“file:///home/maheshharuvaiah8134/scala_j/sreeram/emp_info”)
scala> case class EMP(id:Int, name:String, sal:Int, desig:String, dname:String)
scala> val data1 = data.map(x => x.split(","))
scala> val empd = data1.map(x => EMP(x(0).toInt, x(1).trim, x(2).toInt, x(3).trim, x(4).trim))
scala> val empDF = empd.toDF
Getting the below error::::
Caused by: org.apache.derby.iapi.error.StandardException: Failed to start database ‘metastore_db’ with class loader org.apache.spark.sql.hive.client.IsolatedClientLoader$$anon$1@36b5dbdf, see the next exception for details.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)
… 140 more
Caused by: org.apache.derby.iapi.error.StandardException: Another instance of Derby may have already booted the database /home/maheshharuva
iah8134/scala_j/ramsri_1/metastore_db.
Thanks,
Mahesh .H