I started the shell for spark 2.2.1
and ran this code
scala> val myRange = spark.range(1000).toDF(“number”)
I got this error
18/08/17 11:26:20 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’:
What need to be done here?please help me to fix this