Facing issue while creating a new dataSet in spark2.2.1 in cloux lab

Hello CloudX team,

Good Morning!!

I am facing an issue while creating a new dataSet using spark2.2.1 in cloudX lab.
can you please help me in resolving this issue.

standard error log:

scala> val students1=spark.read.textFIle(“students.txt”)
:23: error: value textFIle is not a member of org.apache.spark.sql.DataFrameReader
val students1=spark.read.textFIle(“students.txt”)
^
scala> val students1=spark.read.textFile(“students.txt”)
18/07/27 06:38:49 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
java.lang.IllegalArgumentException: Error while instantiating ‘org.apache.spark.sql.hive.HiveSessionStateBuilder’:
at org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$$instantiateSessionState(SparkSession.scala:1062)
at org.apache.spark.sql.SparkSession$$anonfun$sessionState$2.apply(SparkSession.scala:137)
at org.apache.spark.sql.SparkSession$$anonfun$sessionState$2.apply(SparkSession.scala:136)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.sql.SparkSession.sessionState$lzycompute(SparkSession.scala:136)
at org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:133)
at org.apache.spark.sql.DataFrameReader.(DataFrameReader.scala:689)
at org.apache.spark.sql.SparkSession.read(SparkSession.scala:645)
… 48 elided
Caused by: java.lang.ClassNotFoundException: java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning when creating Hive client using classpath: fi
le:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64/jre/lib/resources.jar,

Thanks,
Gagan N D

This is something related to the eror that I have just posted in the question
Error while using latest Structured Streaming

1 Like