Problem related to Spark Context's catalog.listTables.show() command


#1

Hi Team,
I m facing problem with below commands, as I was using a simple practice. This code is working fine in my local system.
val df = spark.range(100).toDF()
df.createOrReplaceTempView(“test_table”)
spark.sqlContext.sql(“show tables”).show()
spark.catalog.listTables.show()

scala> spark.catalog.listTables.show()
19/03/08 19:49:41 ERROR log: error in initSerDe: java.lang.ClassNotFoundException Class org.openx.data.jsonserde.JsonSerDe not found
java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found

===================================================
val new_spark = spark.newSession()
new_spark.sqlContext.sql(“show tables”).show()
new_spark.range(100).toDF.createOrReplaceTempView(“test_table”)
new_spark.catalog.listTables.show()

scala> new_spark.catalog.listTables.show()
19/03/08 19:57:23 ERROR log: error in initSerDe: java.lang.ClassNotFoundException Class org.openx.data.jsonserde.JsonSerDe not found
java.lang.ClassNotFoundException: Class org.openx.data.jsonserde.JsonSerDe not found

Thanks
Sudhanshoo Saxena