Your schema is all fields are string:
> val stdSchema= StructType(stdSchemaString.split(",").map(fieldName =>
> StructField(fieldName, StringType, true)))
But looks like you have integer columns in the RDD?
Chetan Khatri wrote
> Resolved above error by creating SparkSession
>
> val spark = Sp
Resolved above error by creating SparkSession
val spark = SparkSession.builder().appName("Hbase - Spark
POC").getOrCreate()
Error after:
spark.sql("SELECT * FROM student").show()
But while doing show() action on Dataframe throws below error:
scala> sqlContext.sql("select * from student").show(